340 lines
45 KiB
JSON
340 lines
45 KiB
JSON
[
|
|
{
|
|
"id": "Air Quality Alerts (Hourly Notification)",
|
|
"result": {
|
|
"structured": "TRIGGER: When air monitor lite carbon dioxide sensor [sensor.air_monitor_lite_7f01_carbon_dioxide] is above 750 for 1 hour OR When pm25 5min avg sensor [sensor.pm25_5min_avg] is above 3 for 1 hour OR When pm10 5min avg sensor [sensor.pm10_5min_avg] is above 5 for 1 hour OR When air monitor lite carbon dioxide sensor [sensor.air_monitor_lite_7f01_carbon_dioxide] is above 850 for 5 minutes OR When pm25 5min avg sensor [sensor.pm25_5min_avg] is above 5 OR When pm10 5min avg sensor [sensor.pm10_5min_avg] is above 15. CONDITIONS: The automation air quality alerts hourly notification [automation.air_quality_alerts_hourly_notification] was last triggered more than 1 hour ago OR it has never been triggered. ACTIONS: Send a notification to mobile app iphone 2023 [notify.mobile_app_iphone_2023] with a title and a dynamic message describing the alert.",
|
|
"natural_language": {
|
|
"trigger": "This automation triggers when any of the following air quality thresholds are exceeded: the carbon dioxide level remains above 750 for an hour, the PM2.5 average remains above 3 for an hour, the PM10 average remains above 5 for an hour, the carbon dioxide level spikes above 850 for five minutes, the PM2.5 average exceeds 5, or the PM10 average exceeds 15.",
|
|
"conditions": "The automation will only proceed if it has been at least one hour since the last time this automation sent an alert, or if it has never been triggered before.",
|
|
"action": "Sends a push notification to a mobile phone, stating which sensor is elevated, its current reading, and whether it's a sustained exceedance or a spike."
|
|
},
|
|
"human_like": "Sends an hourly air quality alert to your phone when pollutant levels are too high for a sustained period or spike suddenly.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Voice Announcements",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time is 17:55:00 OR When the time is 21:00:00. CONDITIONS: None. ACTIONS: If the trigger was high_rates_start_warning, then add the item 'High power rates are in effect soon.' to living room notifications todo [todo.living_room_notifications]. If the trigger was high_rates_end_announcement, then add the item 'Power is cheap again.' to living room notifications todo [todo.living_room_notifications].",
|
|
"natural_language": {
|
|
"trigger": "The automation runs at two specific times: 5:55 PM and 9:00 PM.",
|
|
"conditions": "There are no conditions that must be met for the automation to proceed.",
|
|
"action": "Depending on which time triggered the automation, a different item is added to the living room notifications todo [todo.living_room_notifications] list. At 5:55 PM, it adds 'High power rates are in effect soon.'. At 9:00 PM, it adds 'Power is cheap again.'."
|
|
},
|
|
"human_like": "Adds reminders about electricity pricing changes to the living room to-do list in the evening.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Dining Room Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When dining room hue motion sensor [binary_sensor.dining_room_hue_motion_sensor] detects motion (on) OR When dining room hue motion sensor [binary_sensor.dining_room_hue_motion_sensor] stops detecting motion (off) for 10 minutes. CONDITIONS: None. ACTIONS: Choose based on conditions: IF (dining room hue motion sensor [binary_sensor.dining_room_hue_motion_sensor] is on) AND (dining room hue motion sensor illuminance [sensor.dining_room_hue_motion_sensor_illuminance] is below 18) THEN Turn on dining room lights [light.dining_room_lights] with a 4-second transition. IF night light mode boolean [input_boolean.night_light_mode] is on, set color to the RGB value from night light color tr text [input_text.night_light_color_tr] and brightness 255. OTHERWISE, set color temperature to 2700K and brightness 255. ELSE IF (dining room hue motion sensor [binary_sensor.dining_room_hue_motion_sensor] is off) THEN Turn off dining room lights [light.dining_room_lights] with a 4-second transition.",
|
|
"natural_language": {
|
|
"trigger": "When motion is detected by the dining room hue motion sensor [binary_sensor.dining_room_hue_motion_sensor], or when the sensor reports no motion for a continuous period of 10 minutes.",
|
|
"conditions": "There are no global conditions for this automation.",
|
|
"action": "If motion is detected and the ambient light level from the dining room hue motion sensor illuminance [sensor.dining_room_hue_motion_sensor_illuminance] is below 18 lux, the dining room lights [light.dining_room_lights] are turned on. The lights are configured with a 4-second transition. If night light mode boolean [input_boolean.night_light_mode] is active, the lights use a custom RGB color defined in night light color tr text [input_text.night_light_color_tr] at full brightness. Otherwise, the lights turn on with a warm white color temperature of 2700K at full brightness. If no motion has been detected for 10 minutes, the dining room lights are turned off with a 4-second transition."
|
|
},
|
|
"human_like": "Automatically turns the dining room lights on when motion is detected in low light, and turns them off after 10 minutes of inactivity, with a special night light color mode.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Downstairs Bathroom Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] turns on OR When ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] turns off OR When tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] turns on OR When tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] turns off. CONDITIONS: None. ACTIONS: Choose an action based on conditions: IF (ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] is on OR tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] is on) THEN Turn on downstairs bathroom lights [light.downstairs_bathroom_lights] with a 1-second transition and brightness percentage set to a variable 'brightness_level' (20% if the current hour is between 23 and 6, otherwise 50%). ELSE IF (ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] is off AND tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] is off) THEN Wait for 10 minutes, then IF (ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] is still off AND tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] is still off) THEN Turn off downstairs bathroom lights [light.downstairs_bathroom_lights] with a 4-second transition.",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered whenever the ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] or the tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] sensor changes its state, either to on (motion detected) or off (no motion).",
|
|
"conditions": "There are no separate conditions that must be met before the actions run. The decision logic is entirely contained within the action sequence.",
|
|
"action": "When triggered, the automation checks the state of the motion sensors. If either the ikea motion 2 occupancy [binary_sensor.ikea_motion_2_occupancy] or the tuya motion 1 occupancy [binary_sensor.tuya_motion_1_occupancy] is detecting motion, it turns on the downstairs bathroom lights [light.downstairs_bathroom_lights]. The brightness is set to 20% at night (between 11 PM and 6 AM) and 50% during the day, with a quick 1-second fade-in. If both motion sensors report no motion, the automation waits for ten minutes. After this delay, it checks both sensors again. If they are both still reporting no motion, it turns off the lights with a slower 4-second fade-out."
|
|
},
|
|
"human_like": "Automatically turns the bathroom lights on when motion is detected and off after a delay when no motion is detected, with different brightness levels for day and night.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Downstairs Hallway Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When mmwave 1 presence [binary_sensor.mmwave_1_presence] becomes on OR When mmwave 1 presence [binary_sensor.mmwave_1_presence] becomes off AND remains off for 30 seconds. CONDITIONS: motion lights master switch [input_boolean.motion_lights_master_switch] is on. ACTIONS: If mmwave 1 presence [binary_sensor.mmwave_1_presence] is on, turn on downstairs hallway lights [light.downstairs_hallway_lights] with brightness 25% and color temperature 2700K, OR if night light mode boolean [input_boolean.night_light_mode] is on, use RGB color from night light color tr text [input_text.night_light_color_tr] and brightness 25%. If mmwave 1 presence [binary_sensor.mmwave_1_presence] is off, turn off downstairs hallway lights [light.downstairs_hallway_lights].",
|
|
"natural_language": {
|
|
"trigger": "When motion is detected by the mmwave 1 presence [binary_sensor.mmwave_1_presence] sensor, or when motion stops being detected and remains absent for 30 seconds.",
|
|
"conditions": "The motion lights master switch [input_boolean.motion_lights_master_switch] must be turned on for the automation to run.",
|
|
"action": "If motion is detected, the downstairs hallway lights [light.downstairs_hallway_lights] are turned on. During normal operation, they are set to 25% brightness with a warm white color temperature of 2700K. If night light mode boolean [input_boolean.night_light_mode] is active, the lights instead use a custom RGB color defined in night light color tr text [input_text.night_light_color_tr] at 25% brightness. If no motion is detected for 30 seconds, the lights are turned off."
|
|
},
|
|
"human_like": "Automatically turns the downstairs hallway lights on when motion is detected and off after a short delay, with a special night light mode for softer lighting.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Dryer Reminder After Wash",
|
|
"result": {
|
|
"structured": "TRIGGER: When washer current status sensor [sensor.washer_current_status] changes to 'end' OR When dryer reminder boolean [input_boolean.dryer_reminder] changes to 'on' OR When dryer reminder boolean [input_boolean.dryer_reminder] changes to 'off'. CONDITIONS: None. ACTIONS: If the trigger is dryer reminder boolean [input_boolean.dryer_reminder] turning off, do nothing. If the trigger is washer current status sensor [sensor.washer_current_status] becoming 'end' OR dryer reminder boolean [input_boolean.dryer_reminder] turning on, then: 1. Turn on dryer reminder boolean [input_boolean.dryer_reminder]. 2. Repeat the following sequence: a. Add an item 'Your dryer is ready to run!' to living room notifications todo [todo.living_room_notifications]. b. Wait for 1 hour. c. Stop repeating when dryer reminder boolean [input_boolean.dryer_reminder] is off OR the sequence has repeated 6 times. 3. Turn off dryer reminder boolean [input_boolean.dryer_reminder].",
|
|
"natural_language": {
|
|
"trigger": "The automation can start in three ways: when the washer current status sensor [sensor.washer_current_status] reports that the washer cycle has ended, when the dryer reminder boolean [input_boolean.dryer_reminder] is manually turned on, or when the dryer reminder boolean [input_boolean.dryer_reminder] is turned off.",
|
|
"conditions": "There are no additional conditions that must be met for the automation to proceed.",
|
|
"action": "If the automation was triggered by the dryer reminder boolean [input_boolean.dryer_reminder] being turned off, it does nothing. If it was triggered by the washer finishing or the reminder being turned on, it first ensures the reminder boolean is on. It then enters a loop where it adds a notification item 'Your dryer is ready to run!' to the living room notifications todo [todo.living_room_notifications] and waits for one hour. This loop repeats until either the dryer reminder boolean is turned off or it has run six times. Finally, it turns the dryer reminder boolean off."
|
|
},
|
|
"human_like": "Sends hourly reminders to run the dryer after the washing machine finishes or when manually activated, stopping after six reminders or when cancelled.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Front Lights - Sunset to Sunrise",
|
|
"result": {
|
|
"structured": "TRIGGER: When sun sun [sun.sun] changes state. CONDITIONS: None. ACTIONS: If sun sun [sun.sun] is above_horizon, then turn off front lights [light.front_lights]. If sun sun [sun.sun] is below_horizon, then turn on front lights [light.front_lights] with color temperature 2700 Kelvin and brightness 5 percent.",
|
|
"natural_language": {
|
|
"trigger": "Whenever the state of the sun [sun.sun] changes.",
|
|
"conditions": "There are no additional conditions for this automation.",
|
|
"action": "Depending on the sun's position: if the sun is above the horizon, the front lights [light.front_lights] are turned off. If the sun is below the horizon, the front lights [light.front_lights] are turned on with a warm white color (2700K) at 5% brightness."
|
|
},
|
|
"human_like": "Automatically turns the front lights on at sunset with a dim, warm glow and turns them off at sunrise.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Laundry Room Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When tuya motion 2 occupancy [binary_sensor.tuya_motion_2_occupancy] changes to on OR When tuya motion 2 occupancy [binary_sensor.tuya_motion_2_occupancy] changes to off OR When tuya motion 3 occupancy [binary_sensor.tuya_motion_3_occupancy] changes to on OR When tuya motion 3 occupancy [binary_sensor.tuya_motion_3_occupancy] changes to off. CONDITIONS: None. ACTIONS: Choose action based on conditions. IF (tuya motion 2 occupancy [binary_sensor.tuya_motion_2_occupancy] is on OR tuya motion 3 occupancy [binary_sensor.tuya_motion_3_occupancy] is on) THEN turn on laundry room lights [light.laundry_room_lights] with brightness 150 and color temperature 4000K. IF (tuya motion 2 occupancy [binary_sensor.tuya_motion_2_occupancy] is off AND tuya motion 3 occupancy [binary_sensor.tuya_motion_3_occupancy] is off) THEN wait 1 minute AND turn off laundry room lights [light.laundry_room_lights].",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered whenever either the tuya motion 2 occupancy [binary_sensor.tuya_motion_2_occupancy] or the tuya motion 3 occupancy [binary_sensor.tuya_motion_3_occupancy] sensor changes its state to either 'on' (motion detected) or 'off' (no motion).",
|
|
"conditions": "There are no global conditions that must be met for the automation to proceed. The decision on which action to take is made internally based on the state of the motion sensors at the time the action runs.",
|
|
"action": "If at least one of the motion sensors (tuya motion 2 occupancy or tuya motion 3 occupancy) reports motion, the laundry room lights [light.laundry_room_lights] are turned on to a brightness of 150 and a color temperature of 4000 Kelvin. If both motion sensors report no motion, the automation waits for one minute and then turns off the laundry room lights."
|
|
},
|
|
"human_like": "Automatically turns on the laundry room lights when motion is detected and turns them off one minute after all motion has stopped.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Living Room Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When hue motion sensor [binary_sensor.hue_motion_sensor] detects motion (on) OR When hue motion sensor [binary_sensor.hue_motion_sensor] stops detecting motion (off) for 10 minutes. CONDITIONS: motion lights master switch [input_boolean.motion_lights_master_switch] is on. ACTIONS: Choose from the following sequences based on conditions: 1. IF hue motion sensor [binary_sensor.hue_motion_sensor] is on AND hue motion sensor illuminance [sensor.hue_motion_sensor_illuminance] is below 10 AND night light mode boolean [input_boolean.night_light_mode] is off THEN turn on living room accents [light.living_room_accents] with color temperature 2000K and brightness 10%, then 11%, AND turn on living room lights [light.living_room_lights] with color temperature 2700K and brightness 100%. 2. ELSE IF hue motion sensor [binary_sensor.hue_motion_sensor] is on AND hue motion sensor illuminance [sensor.hue_motion_sensor_illuminance] is below 10 AND living room lights [light.living_room_lights] is off THEN turn on living room lights [light.living_room_lights] with RGB color from night light color hue text [input_text.night_light_color_hue], brightness 41%, and 4-second transition. 3. ELSE IF hue motion sensor [binary_sensor.hue_motion_sensor] is on AND hue motion sensor illuminance [sensor.hue_motion_sensor_illuminance] is below 10 THEN turn on living room lights [light.living_room_lights] with RGB color from night light color hue text [input_text.night_light_color_hue] and 4-second transition. 4. ELSE IF hue motion sensor [binary_sensor.hue_motion_sensor] is off THEN turn off living room accents [light.living_room_accents] with 10-second transition AND turn off living room lights [light.living_room_lights] with 10-second transition.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when motion is detected by the hue motion sensor [binary_sensor.hue_motion_sensor] or when motion has not been detected for ten minutes.",
|
|
"conditions": "The automation only runs if the motion lights master switch [input_boolean.motion_lights_master_switch] is turned on.",
|
|
"action": "Depending on the state of the sensor and other lights, the automation will perform different actions. If motion is detected, the room is dark, and night light mode is off, it will turn on the accent and main lights to specific warm brightness levels. If motion is detected, the room is dark, and the main lights are off, it will turn on the main lights with a custom night light color and moderate brightness. If motion is detected and the room is dark, it will turn on the main lights with the custom night light color. If motion has been absent for ten minutes, it will turn off both the accent and main lights with a slow fade."
|
|
},
|
|
"human_like": "Automatically turns the living room lights on when motion is detected in the dark, with different scenes based on the night mode setting, and turns them off after a period of inactivity.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Read Queued Announcements in Living Room",
|
|
"result": {
|
|
"structured": "TRIGGER: When hue motion sensor [binary_sensor.hue_motion_sensor] turns on OR when the state of living room notifications todo [todo.living_room_notifications] changes. CONDITIONS: (The number of items in living room notifications todo [todo.living_room_notifications] is greater than 0) AND (hue motion sensor [binary_sensor.hue_motion_sensor] is on). ACTIONS: First, get all items from living room notifications todo [todo.living_room_notifications] with status 'needs_action'. Then, for each item in the retrieved list, perform the following sequence: 1. Use google translate tts [tts.google_translate_en_com] to speak the item's summary through living room display media player [media_player.living_room_display]. 2. Wait for a delay calculated as (length of the summary in characters multiplied by 0.11, rounded to the nearest whole number, plus 2 seconds). 3. Mark the item as completed in living room notifications todo [todo.living_room_notifications].",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers either when motion is detected by the hue motion sensor [binary_sensor.hue_motion_sensor] in the living room, or when the state of the living room notifications todo [todo.living_room_notifications] list changes.",
|
|
"conditions": "For the automation to run, the living room notifications todo [todo.living_room_notifications] list must contain at least one pending item, and the hue motion sensor [binary_sensor.hue_motion_sensor] must be reporting motion (be in the 'on' state).",
|
|
"action": "The automation first fetches all the pending items from the living room notifications todo [todo.living_room_notifications] list. It then processes each item one by one: it uses text-to-speech via google translate tts [tts.google_translate_en_com] to announce the item's summary through the living room display media player [media_player.living_room_display]. After each announcement, it waits for a duration based on the length of the spoken text before marking that specific item as completed in the todo list."
|
|
},
|
|
"human_like": "Announces pending to-do items in the living room when motion is detected, reading them aloud one by one and marking them as done.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Low Humidity Alert (Hourly Notification)",
|
|
"result": {
|
|
"structured": "TRIGGER: When sonoff temp humidity 2 humidity 2 sensor [sensor.sonoff_temp_humidity_2_humidity_2] goes below 38 OR when sonoff snzb 02d humidity 2 sensor [sensor.sonoff_snzb_02d_humidity_2] goes below 36. CONDITIONS: The automation low humidity alert hourly notification [automation.low_humidity_alert_hourly_notification] was last triggered more than 3600 seconds (1 hour) ago OR it has never been triggered. ACTIONS: Send a notification to mobile app iphone 2023 [notify.mobile_app_iphone_2023] with a title '🚨 Low Humidity Alert' and a message containing the area name of the triggering sensor and its current humidity value.",
|
|
"natural_language": {
|
|
"trigger": "When the humidity reported by the sonoff temp humidity 2 humidity 2 sensor [sensor.sonoff_temp_humidity_2_humidity_2] falls below 38%, or when the humidity reported by the sonoff snzb 02d humidity 2 sensor [sensor.sonoff_snzb_02d_humidity_2] falls below 36%.",
|
|
"conditions": "The automation checks that it has been at least one hour since it last sent a notification, or that it has never been triggered before.",
|
|
"action": "Sends a push notification to the mobile app iphone 2023 [notify.mobile_app_iphone_2023] with an alert title and a message stating which area's humidity is low and the current reading."
|
|
},
|
|
"human_like": "Sends an hourly alert to your phone if the humidity in monitored rooms drops below their set thresholds.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Master Bedroom Motion Light",
|
|
"result": {
|
|
"structured": "TRIGGER: When hue motion 4 [binary_sensor.hue_motion_4] detects motion (on) OR When hue motion 4 [binary_sensor.hue_motion_4] stops detecting motion (off) for 1 minute. CONDITIONS: motion lights master switch [input_boolean.motion_lights_master_switch] is on AND the time is between sunset minus 1 hour and sunrise plus 30 minutes. ACTIONS: Choose based on conditions: 1) If hue motion 4 [binary_sensor.hue_motion_4] is on AND time is between 20:00:00 and 06:00:00, then turn on ufo lamp [light.ufo_lamp] with red color and low brightness, then turn on ufo lamp [light.ufo_lamp] with red color and full brightness, then turn off tr plug 1 switch [switch.tr_plug_1], tr plug 3 switch [switch.tr_plug_3], and shelly plug 1 switch [switch.shelly_plug_1]. 2) If hue motion 4 [binary_sensor.hue_motion_4] is on AND time is between 15:00:00 and 20:00:00, then turn on ufo lamp [light.ufo_lamp] with warm white color and low brightness, then turn on ufo lamp [light.ufo_lamp] with warm white color and full brightness, then turn on tr plug 1 switch [switch.tr_plug_1], tr plug 3 switch [switch.tr_plug_3], and shelly plug 1 switch [switch.shelly_plug_1]. 3) If hue motion 4 [binary_sensor.hue_motion_4] is off, then turn off ufo lamp [light.ufo_lamp] and turn off tr plug 1 switch [switch.tr_plug_1], tr plug 3 switch [switch.tr_plug_3], and shelly plug 1 switch [switch.shelly_plug_1].",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when motion is detected by the hue motion 4 [binary_sensor.hue_motion_4] sensor, or when motion has not been detected by the same sensor for one full minute.",
|
|
"conditions": "Two conditions must be met: the motion lights master switch [input_boolean.motion_lights_master_switch] must be turned on, and the current time must be within a window that starts one hour before sunset and ends thirty minutes after sunrise.",
|
|
"action": "Depending on the state of the motion sensor and the time of day, different actions are taken. If motion is detected between 8 PM and 6 AM, the ufo lamp [light.ufo_lamp] is turned on with a red light, first dim and then bright, and three plug switches are turned off. If motion is detected between 3 PM and 8 PM, the ufo lamp [light.ufo_lamp] is turned on with a warm white light, first dim and then bright, and the same three plug switches are turned on. If no motion is detected for a minute, the ufo lamp [light.ufo_lamp] and all three plug switches are turned off."
|
|
},
|
|
"human_like": "Automatically controls the bedroom lights and plugs based on motion and time of day, using different light colors and brightness levels for evening and night-time.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Master Closet Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When ikea motion 3 occupancy [binary_sensor.ikea_motion_3_occupancy] changes to on OR When ikea motion 3 occupancy [binary_sensor.ikea_motion_3_occupancy] changes to off. CONDITIONS: None. ACTIONS: Choose based on the state of ikea motion 3 occupancy [binary_sensor.ikea_motion_3_occupancy]. If state is on, turn on master closet lights [light.master_closet_lights] with a 1-second transition and brightness set to night_brightness (75) if the current hour is between 23 and 6, otherwise day_brightness (255). If state is off, wait 30 seconds, then turn off master closet lights [light.master_closet_lights] with a 4-second transition.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when motion is detected (ikea motion 3 occupancy [binary_sensor.ikea_motion_3_occupancy] turns on) or when motion is no longer detected (it turns off).",
|
|
"conditions": "There are no additional conditions that must be met for the automation to run.",
|
|
"action": "If motion is detected, the master closet lights [light.master_closet_lights] are turned on. The brightness is set to a lower level (75) at night (between 11 PM and 6 AM) and a higher level (255) during the day, with a 1-second fade-in. If motion is no longer detected, the automation waits 30 seconds and then turns off the lights with a 4-second fade-out."
|
|
},
|
|
"human_like": "Automatically turns the closet lights on when motion is detected and off after a short delay when motion stops, using a dimmer light level at night.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Pantry motion lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When ikea motion 1 occupancy [binary_sensor.ikea_motion_1_occupancy] detects motion (on) OR When ikea motion 1 occupancy [binary_sensor.ikea_motion_1_occupancy] stops detecting motion (off) AND remains off for 30 seconds. ACTIONS: If ikea motion 1 occupancy [binary_sensor.ikea_motion_1_occupancy] is on, turn on pantry lights [light.pantry_lights] with brightness 38. If ikea motion 1 occupancy [binary_sensor.ikea_motion_1_occupancy] is off, turn off pantry lights [light.pantry_lights].",
|
|
"natural_language": {
|
|
"trigger": "When motion is detected by the ikea motion 1 occupancy [binary_sensor.ikea_motion_1_occupancy], or when motion is no longer detected and remains absent for 30 seconds.",
|
|
"conditions": "There are no explicit conditions outside of the trigger evaluation.",
|
|
"action": "If motion is detected, the pantry lights [light.pantry_lights] are turned on to a low brightness level of 38. If motion is not detected for 30 seconds, the pantry lights [light.pantry_lights] are turned off."
|
|
},
|
|
"human_like": "Turns the pantry lights on when motion is detected and off after motion has been absent for 30 seconds.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "HVAC for time-of-use rates",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time is 21:50:00 OR 22:40:00 OR 23:30:00 OR 17:40:00 OR 17:55:00 OR 21:01:00. CONDITIONS: The current month is May, June, July, August, or September. ACTIONS: Set variables: time_action_map mapping times to actions ('21:50' to 'decrease_1', '22:40' to 'decrease_1', '23:30' to 'decrease_1', '17:40' to 'decrease_1', '17:55' to 'off', '21:01' to 'on') and current_time to the current hour and minute. Then, call the python_script.hvac_pre_cool_and_time_of_use service with the action parameter set to the value from time_action_map for the current_time.",
|
|
"natural_language": {
|
|
"trigger": "The automation runs at six specific times of day: 5:40 PM, 5:55 PM, 9:01 PM, 9:50 PM, 10:40 PM, and 11:30 PM.",
|
|
"conditions": "The automation only runs during the summer months, specifically from May through September.",
|
|
"action": "It maps the current time to a specific action command ('decrease_1', 'off', or 'on') and then runs a custom Python script called 'hvac_pre_cool_and_time_of_use', passing that command to it."
|
|
},
|
|
"human_like": "Adjusts the HVAC system at specific times during summer months to take advantage of time-of-use electricity rates, typically by pre-cooling or turning the system off.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Projector IR control",
|
|
"result": {
|
|
"structured": "TRIGGER: When an MQTT message is published to topic 'zigbee2mqtt/Button 1/action' OR When the state of xbox 2 media player [media_player.xbox_2] OR Living Room Display [media_player.living_room] changes. CONDITIONS: None (conditions are evaluated within the choose action). ACTIONS: Choose an action based on the trigger. If the trigger is an MQTT message with payload 'single', set moes ir blaster ir code to send text [text.moes_ir_blaster_ir_code_to_send] to the 'ir_on' code. If the trigger is an MQTT message with payload 'double', repeat twice: set moes ir blaster ir code to send text [text.moes_ir_blaster_ir_code_to_send] to the 'ir_off' code, then wait 2 seconds. If the trigger is a state change to 'on' for either media player, set moes ir blaster ir code to send text [text.moes_ir_blaster_ir_code_to_send] to the 'ir_on' code. If the trigger is a state change to 'off', 'standby', or 'unavailable' for either media player, wait 5 seconds, then check if xbox 2 media player [media_player.xbox_2] is 'off' AND Living Room Display [media_player.living_room] is 'off', 'standby', or 'unavailable'. If true, repeat twice: set moes ir blaster ir code to send text [text.moes_ir_blaster_ir_code_to_send] to the 'ir_off' code, then wait 2 seconds.",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered either by an MQTT message on the topic 'zigbee2mqtt/Button 1/action' or by a change in the state of the xbox 2 media player [media_player.xbox_2] or the Living Room Display [media_player.living_room].",
|
|
"conditions": "There are no global conditions. The specific conditions for each action path are evaluated within the 'choose' block.",
|
|
"action": "The automation selects one of four possible action sequences based on what triggered it. If triggered by a single button press via MQTT, it sends the 'on' IR code. If triggered by a double button press, it sends the 'off' IR code twice with a 2-second delay between each. If triggered by a media player turning on, it sends the 'on' IR code. If triggered by a media player turning off, going to standby, or becoming unavailable, it waits 5 seconds, then checks if both media players are off/standby/unavailable. If they are, it sends the 'off' IR code twice with a 2-second delay between each."
|
|
},
|
|
"human_like": "Controls a projector via IR codes, either from a physical button or by monitoring the state of media players, turning it on or off accordingly.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "Schedule - Switches On/Off (with Month Filtering)",
|
|
"result": {
|
|
"structured": "TRIGGER: Every minute (time_pattern trigger). CONDITIONS: None. ACTIONS: For each entity in the schedule (currently only fan switch [switch.fan]): If the current month is within the configured months (June, July, August, September) AND the current time matches the configured 'on' time (15:00), then turn on fan switch [switch.fan]. If the current month is within the configured months AND the current time matches the configured 'off' time (22:00), then turn off fan switch [switch.fan].",
|
|
"natural_language": {
|
|
"trigger": "The automation runs every minute.",
|
|
"conditions": "There are no explicit conditions outside the action logic.",
|
|
"action": "For each scheduled device, it checks the current month and time. For the fan switch [switch.fan], if the current month is June, July, August, or September, it will turn the switch on at 3:00 PM and turn it off at 10:00 PM."
|
|
},
|
|
"human_like": "Turns the fan on and off at scheduled times, but only during the summer months.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Auto-set Night Light Mode",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time is exactly 23:00:00 OR 08:00:00. CONDITIONS: None. ACTIONS: Set variable 'time_action_map' with mapping '23:00' to 'turn_on' and '08:00' to 'turn_off'. Set variable 'current_time' to the current hour and minute. Turn on or turn off night light mode boolean [input_boolean.night_light_mode] based on the 'time_action_map' lookup using 'current_time'.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers at two specific times: 11:00 PM (23:00) and 8:00 AM (08:00).",
|
|
"conditions": "There are no conditions that must be met for the action to run.",
|
|
"action": "When triggered, the automation determines the current hour and minute. It then looks up the required action in a predefined map: at 11:00 PM, it turns on the night light mode boolean [input_boolean.night_light_mode], and at 8:00 AM, it turns it off."
|
|
},
|
|
"human_like": "Automatically turns on night light mode at 11 PM and turns it off at 8 AM.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Auto turn off switches after delay",
|
|
"result": {
|
|
"structured": "TRIGGER: When tr plug 4 switch [switch.tr_plug_4] turns on OR ikea smart plug 1 switch [switch.ikea_smart_plug_1] turns on OR ikea smart plug 3 switch [switch.ikea_smart_plug_3] turns on. CONDITIONS: None. ACTIONS: Wait for a delay (3600 seconds for tr plug 4 switch [switch.tr_plug_4], 14400 seconds for ikea smart plug 1 switch [switch.ikea_smart_plug_1] and ikea smart plug 3 switch [switch.ikea_smart_plug_3]), then turn off the specific switch that triggered the automation.",
|
|
"natural_language": {
|
|
"trigger": "When any of the three switches (tr plug 4 switch [switch.tr_plug_4], ikea smart plug 1 switch [switch.ikea_smart_plug_1], or ikea smart plug 3 switch [switch.ikea_smart_plug_3]) is turned on.",
|
|
"conditions": "There are no conditions that must be met for the action to run.",
|
|
"action": "After a specific delay (1 hour for the tr plug 4 switch, or 4 hours for the IKEA smart plugs), the automation turns off the exact switch that was turned on."
|
|
},
|
|
"human_like": "Automatically turns off specific smart plugs after a set amount of time has passed since they were turned on.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Tablet Charging Control",
|
|
"result": {
|
|
"structured": "TRIGGER: When ipad 2023 battery level sensor [sensor.ipad_2023_battery_level] falls below 50 OR When ipad 2023 battery level sensor [sensor.ipad_2023_battery_level] rises above 80 OR When onn battery level sensor [sensor.onn_battery_level] falls below 50 OR When onn battery level sensor [sensor.onn_battery_level] rises above 80. CONDITIONS: None. ACTIONS: Choose based on trigger: If triggered by ipad_low, turn on smart plug 4 switch [switch.smart_plug_4]. If triggered by ipad_high, turn off smart plug 4 switch [switch.smart_plug_4]. If triggered by onn_low, turn on ikea smart plug 4 switch [switch.ikea_smart_plug_4]. If triggered by onn_high, turn off ikea smart plug 4 switch [switch.ikea_smart_plug_4].",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when the battery level of the iPad 2023 [sensor.ipad_2023_battery_level] drops below 50% or goes above 80%, or when the battery level of the Onn device [sensor.onn_battery_level] drops below 50% or goes above 80%.",
|
|
"conditions": "There are no conditions that must be met for the action to run.",
|
|
"action": "Depending on which battery level triggered the automation, it will control a specific smart plug. If the iPad battery is low, it turns on the smart plug 4 [switch.smart_plug_4] to charge it. If the iPad battery is high, it turns off that same plug. If the Onn device battery is low, it turns on the Ikea smart plug 4 [switch.ikea_smart_plug_4] to charge it. If the Onn device battery is high, it turns off that Ikea plug."
|
|
},
|
|
"human_like": "Automatically charges two tablets by turning on their respective smart plugs when their batteries are low and stops charging when they are sufficiently full.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Tablet Charger or Battery Warning",
|
|
"result": {
|
|
"structured": "TRIGGER: When smart plug 4 switch [switch.smart_plug_4] remains in its current state for 48 hours OR When ikea smart plug 4 switch [switch.ikea_smart_plug_4] remains in its current state for 9 hours OR When ipad 2023 battery level sensor [sensor.ipad_2023_battery_level] is below 30 OR When onn battery level sensor [sensor.onn_battery_level] is below 30 OR When samsung a9 battery level sensor [sensor.samsung_a9_battery_level] is below 30. CONDITIONS: None. ACTIONS: Send a notification to mobile app iphone 2023 [notify.mobile_app_iphone_2023] with a message. The message includes a warning about charger or battery issues and lists each tablet (iPad, ONN, A9) only if its battery level is below 30%, showing the current percentage.",
|
|
"natural_language": {
|
|
"trigger": "This automation triggers if any of the following events occur: the smart plug 4 switch [switch.smart_plug_4] has not changed state for 48 hours; the ikea smart plug 4 switch [switch.ikea_smart_plug_4] has not changed state for 9 hours; the ipad 2023 battery level sensor [sensor.ipad_2023_battery_level] drops below 30%; the onn battery level sensor [sensor.onn_battery_level] drops below 30%; or the samsung a9 battery level sensor [sensor.samsung_a9_battery_level] drops below 30%.",
|
|
"conditions": "There are no conditions that must be met for the action to run.",
|
|
"action": "Sends a notification to the mobile app iphone 2023 [notify.mobile_app_iphone_2023]. The notification message warns of a charger or battery issue and dynamically lists only the tablets with a battery level below 30%, including their current battery percentage."
|
|
},
|
|
"human_like": "Sends a phone notification if any tablet charger has been inactive for too long or if any tablet's battery level falls below 30%.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Update Calendar",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time matches a pattern of every 15 minutes. CONDITIONS: None. ACTIONS: Update the family calendar [calendar.family] entity.",
|
|
"natural_language": {
|
|
"trigger": "Every 15 minutes.",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "Updates the family calendar [calendar.family] to fetch the latest data."
|
|
},
|
|
"human_like": "Updates the family calendar every 15 minutes to keep its events current.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Upstairs Hallway Motion Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When hue motion 3 [binary_sensor.hue_motion_3] detects motion (state changes to on). CONDITIONS: None. ACTIONS: Turn on upstairs hallway lights [light.upstairs_hallway_lights] with a 2-second transition and a brightness level determined by the current time (night_brightness: 20 if the hour is 23 or later OR earlier than 6, otherwise day_brightness: 200). Wait until hue motion 3 [binary_sensor.hue_motion_3] no longer detects motion (state changes to off). Then, wait for 8 seconds. Finally, turn off upstairs hallway lights [light.upstairs_hallway_lights] with a 4-second transition.",
|
|
"natural_language": {
|
|
"trigger": "When the hue motion 3 [binary_sensor.hue_motion_3] sensor detects motion.",
|
|
"conditions": "There are no specific conditions that must be met for the automation to run.",
|
|
"action": "The automation turns on the upstairs hallway lights [light.upstairs_hallway_lights] with a smooth 2-second transition. The brightness is set to a lower level (20) at night (between 11 PM and 6 AM) and a higher level (200) during the day. It then waits for motion to stop, as reported by the same sensor. After motion stops, it waits an additional 8 seconds before turning off the lights with a slower 4-second transition."
|
|
},
|
|
"human_like": "Automatically turns on the upstairs hallway lights when motion is detected, adjusting brightness based on the time of day, and turns them off a short while after motion stops.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Water Leak Detected (Hourly Notification)",
|
|
"result": {
|
|
"structured": "TRIGGER: When any of the following water leak sensors changes state to 'on' (detects a leak): ikea leak sensor 1 water leak [binary_sensor.ikea_leak_sensor_1_water_leak], ikea leak sensor 2 water leak [binary_sensor.ikea_leak_sensor_2_water_leak], ikea leak sensor 3 water leak [binary_sensor.ikea_leak_sensor_3_water_leak], ikea leak sensor 4 water leak [binary_sensor.ikea_leak_sensor_4_water_leak], ikea leak sensor 5 water leak [binary_sensor.ikea_leak_sensor_5_water_leak], ikea leak sensor 6 water leak [binary_sensor.ikea_leak_sensor_6_water_leak], ikea leak sensor 7 water leak [binary_sensor.ikea_leak_sensor_7_water_leak], ikea leak sensor 8 water leak [binary_sensor.ikea_leak_sensor_8_water_leak], ikea leak sensor 9 water leak [binary_sensor.ikea_leak_sensor_9_water_leak], ikea leak sensor 10 water leak [binary_sensor.ikea_leak_sensor_10_water_leak], tr leak 1 [binary_sensor.tr_leak_1], tr leak 2 [binary_sensor.tr_leak_2], tr leak 3 [binary_sensor.tr_leak_3], tr leak 4 [binary_sensor.tr_leak_4]. CONDITIONS: More than 3600 seconds (1 hour) have passed since the automation water leak detected hourly notification [automation.water_leak_detected_hourly_notification] was last triggered (or it has never been triggered). ACTIONS: Send a notification titled '🚨 Water Leak Detected' with the message 'One of the leak sensors has detected water!' to mobile app iphone 2023 [notify.mobile_app_iphone_2023].",
|
|
"natural_language": {
|
|
"trigger": "When any of the fourteen water leak sensors detects a leak and changes its state to 'on'.",
|
|
"conditions": "The automation will only proceed if it has been more than an hour since the last time this automation ran, or if it has never run before.",
|
|
"action": "Sends a push notification with a warning title and message to the user's iPhone."
|
|
},
|
|
"human_like": "Sends an urgent notification to your phone if any water leak sensor is triggered, but limits alerts to once per hour to avoid spam.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Sync Master Thermostat to Other Thermostats",
|
|
"result": {
|
|
"structured": "TRIGGER: When the temperature attribute of master thermostat [climate.master_thermostat] changes. CONDITIONS: The state of master thermostat [climate.master_thermostat] is not 'none' AND its temperature attribute is not 'none'. ACTIONS: Set the temperature of thermostat [climate.thermostat] to the current temperature value of master thermostat [climate.master_thermostat]. Set the temperature of thermostat 2 [climate.thermostat_2] to the current temperature value of master thermostat [climate.master_thermostat] plus 2 degrees.",
|
|
"natural_language": {
|
|
"trigger": "Whenever the temperature setting of the master thermostat [climate.master_thermostat] changes.",
|
|
"conditions": "The master thermostat [climate.master_thermostat] must be available and have a valid temperature setting.",
|
|
"action": "Set the temperature of the thermostat [climate.thermostat] to match the master thermostat's temperature. Then, set the temperature of thermostat 2 [climate.thermostat_2] to be 2 degrees higher than the master thermostat's temperature."
|
|
},
|
|
"human_like": "Synchronizes the temperature settings of other thermostats to follow the master thermostat, with a 2-degree offset for the second thermostat.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Sync Thermostat to Master Thermostat",
|
|
"result": {
|
|
"structured": "TRIGGER: When thermostat [climate.thermostat] temperature attribute changes. CONDITIONS: The temperature value of master thermostat [climate.master_thermostat] is not equal to the temperature value of thermostat [climate.thermostat]. ACTIONS: Set the temperature of master thermostat [climate.master_thermostat] to the current temperature value of thermostat [climate.thermostat].",
|
|
"natural_language": {
|
|
"trigger": "Whenever the temperature setting of the thermostat [climate.thermostat] changes.",
|
|
"conditions": "Only if the temperature setting of the master thermostat [climate.master_thermostat] is different from the temperature setting of the thermostat [climate.thermostat].",
|
|
"action": "Updates the master thermostat [climate.master_thermostat] to match the temperature setting of the thermostat [climate.thermostat]."
|
|
},
|
|
"human_like": "Keeps the master thermostat's temperature in sync with another thermostat whenever it changes.",
|
|
"complexity": "low"
|
|
}
|
|
}
|
|
] |