AutomationDataset/Zorks/automation-descriptions.json

548 lines
58 KiB
JSON

[
{
"id": "arrival_unlock_door",
"result": {
"structured": "TRIGGER: When Trevor person [person.trevor] changes from not_home to home OR when Emily person [person.emily] changes from not_home to home. CONDITIONS: Front door lock [lock.lock_front_door_lock] is locked AND the current time is between 06:00:00 and 23:00:00. ACTIONS: Unlock Front door lock [lock.lock_front_door_lock], then wait up to 5 minutes for Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] to become open (on), then run Relock Front Door Script [script.relock_front_door].",
"natural_language": {
"trigger": "When either Trevor person [person.trevor] or Emily person [person.emily] arrives home, changing their state from 'not_home' to 'home'.",
"conditions": "The Front door lock [lock.lock_front_door_lock] must be locked, and the current time must be between 6:00 AM and 11:00 PM.",
"action": "Unlock the Front door lock [lock.lock_front_door_lock]. Then, wait for up to five minutes for the Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] to detect that the door is open. Once the door is open (or after five minutes), run the Relock Front Door Script [script.relock_front_door]."
},
"human_like": "Automatically unlocks the front door when Trevor or Emily arrives home during the day, then waits for the door to be opened before re-locking it.",
"complexity": "medium"
}
},
{
"id": "bathroom_humidity_difference",
"result": {
"structured": "TRIGGER: When Bathroom sensor humidity [sensor.bathroom_sensor_humidity] rises above 70%. CONDITIONS: Bathroom humidity diff [sensor.bathroom_humidity_diff] is above 10. ACTIONS: Wait for 5 minutes, then start the Bathroom Humidity Script [script.bathroom_humidity].",
"natural_language": {
"trigger": "When the humidity level reported by the Bathroom sensor humidity [sensor.bathroom_sensor_humidity] exceeds 70 percent.",
"conditions": "The humidity difference value from the Bathroom humidity diff [sensor.bathroom_humidity_diff] sensor must be greater than 10.",
"action": "After a five-minute delay, the automation activates the Bathroom Humidity Script [script.bathroom_humidity]."
},
"human_like": "Turns on a bathroom humidity control script when the humidity is high and has increased significantly.",
"complexity": "low"
}
},
{
"id": "bathroom_movement",
"result": {
"structured": "TRIGGER: When Bathroom presence [binary_sensor.bathroom_presence_presence] detects presence (on) OR When Bathroom presence [binary_sensor.bathroom_presence_presence] stops detecting presence (off) for 1 minute. ACTIONS: (IF Bathroom presence [binary_sensor.bathroom_presence_presence] triggers on AND Bathroom light [light.bathroom_light] is off AND current time is between 05:00:00 and 22:00:00 THEN turn on Bathroom light [light.bathroom_light] with a 2-second transition and brightness determined by the hour: 3 if hour >=19, 30 if hour >=17, 100 if hour >=8, otherwise 20) OR (IF Bathroom presence [binary_sensor.bathroom_presence_presence] triggers off THEN turn off Bathroom light [light.bathroom_light]).",
"natural_language": {
"trigger": "When the Bathroom presence [binary_sensor.bathroom_presence_presence] sensor first detects someone entering the room, or when it reports that the room has been empty for a full minute.",
"conditions": "If the trigger was for presence detected, the automation also checks that the Bathroom light [light.bathroom_light] is currently off and that the current time is between 5 AM and 10 PM.",
"action": "If presence is detected and the conditions are met, the Bathroom light [light.bathroom_light] is turned on with a smooth 2-second transition. The brightness is set based on the time of day: very dim (3) after 7 PM, dim (30) after 5 PM, full brightness (100) after 8 AM, and a low level (20) during the early morning. If presence has been absent for a minute, the light is simply turned off."
},
"human_like": "Automatically turns the bathroom light on when you enter and off after you leave, adjusting the brightness based on the time of day for comfort.",
"complexity": "medium"
}
},
{
"id": "bathroom_switch_doubletap",
"result": {
"structured": "TRIGGER: When a Z-Wave JS value notification event occurs for device Bathroom switch [device_id: 8cb32c0ca9f0f5ed4c376b0cb02470fa]. CONDITIONS: None. ACTIONS: Turn on Bathroom light [light.bathroom_light] with brightness set to 100% if the event value is 255, or set to 4% if the event value is 0.",
"natural_language": {
"trigger": "When the Bathroom switch [device_id: 8cb32c0ca9f0f5ed4c376b0cb02470fa] sends a specific Z-Wave notification event.",
"conditions": "There are no additional conditions that must be met.",
"action": "Turns on the Bathroom light [light.bathroom_light]. The brightness is set to full (100%) if the switch notification value is 255, or to a very low level (4%) if the notification value is 0."
},
"human_like": "Uses a double-tap on the bathroom switch to control the bathroom light, setting it to either full brightness or a night light level.",
"complexity": "medium"
}
},
{
"id": "bedroom_switch_doubletap",
"result": {
"structured": "TRIGGER: When a zwave_js_value_notification event occurs for device Bedroom switch [device_id: b5f2fcf85f9b0d26d287adc42f27100a]. CONDITIONS: None. ACTIONS: Turn on Bedroom light [light.bedroom_light] with brightness set to 100% if the event value is 255 OR brightness set to 10% if the event value is 0.",
"natural_language": {
"trigger": "When the Bedroom switch [device_id: b5f2fcf85f9b0d26d287adc42f27100a] sends a specific Z-Wave notification event.",
"conditions": "There are no additional conditions that must be met.",
"action": "Turns on the Bedroom light [light.bedroom_light]. The brightness is set to 100% if the notification value is 255, or to 10% if the notification value is 0."
},
"human_like": "Controls the bedroom light brightness based on a double-tap action from the bedroom switch.",
"complexity": "medium"
}
},
{
"id": "christmas_tree_movement",
"result": {
"structured": "TRIGGER: When Living room presence [binary_sensor.living_room_presence_presence] becomes active (on) OR When Living room presence [binary_sensor.living_room_presence_presence] becomes inactive (off) and remains so for 10 minutes OR When Kitchen presence [binary_sensor.kitchen_presence_presence] becomes active (on) OR When Kitchen presence [binary_sensor.kitchen_presence_presence] becomes inactive (off) and remains so for 10 minutes OR When Hallway sensor motion [binary_sensor.hallway_sensor_motion] becomes active (on) OR When Hallway sensor motion [binary_sensor.hallway_sensor_motion] becomes inactive (off) and remains so for 10 minutes. CONDITIONS: Presence group [group.presence] is home AND Christmas tree node status [sensor.christmas_tree_node_status] is alive. ACTIONS: (IF (trigger id is 'on') AND (Presence group [group.presence] is home) AND (Christmas tree switch [switch.christmas_tree] is off) AND (time is between 04:00:00 and before 22:00:00) THEN turn on Christmas tree switch [switch.christmas_tree]) OR (IF (trigger id is 'off') AND (time is between 20:30:00 and before 05:30:00) THEN turn off Christmas tree switch [switch.christmas_tree]).",
"natural_language": {
"trigger": "The automation triggers when motion or presence is detected or stops being detected in key areas. Specifically, it runs when the Living room presence [binary_sensor.living_room_presence_presence] turns on, or when it turns off and stays off for 10 minutes. It also triggers for the same on/off events from Kitchen presence [binary_sensor.kitchen_presence_presence] and Hallway sensor motion [binary_sensor.hallway_sensor_motion], with the 'off' events requiring a 10-minute duration.",
"conditions": "For the automation to proceed, two global conditions must be true: at least one person must be home, as indicated by the Presence group [group.presence] being 'home', and the Christmas tree node status [sensor.christmas_tree_node_status] must report 'alive', meaning the device is online and functional.",
"action": "The automation performs one of two actions based on the trigger and additional time checks. If the trigger was an 'on' event (motion detected), and it's between 4 AM and 10 PM, and the Christmas tree is currently off, then the Christmas tree switch [switch.christmas_tree] is turned on. If the trigger was an 'off' event (motion absent for 10 minutes), and it's between 8:30 PM and 5:30 AM, then the Christmas tree switch [switch.christmas_tree] is turned off."
},
"human_like": "Automatically turns the Christmas tree lights on when someone is home and motion is detected during the day, and turns them off when no motion is detected for a while during the evening and night.",
"complexity": "medium"
}
},
{
"id": "christmas_tree_schedule",
"result": {
"structured": "TRIGGER: When the time is 05:30:00 OR when the time is 20:30:00. CONDITIONS: Presence group [group.presence] is home AND Christmas tree node status [sensor.christmas_tree_node_status] is alive. ACTIONS: If the trigger was the start time (05:30:00), then turn on Christmas tree switch [switch.christmas_tree]. If the trigger was the end time (20:30:00), then turn off Christmas tree switch [switch.christmas_tree].",
"natural_language": {
"trigger": "The automation runs at 5:30 AM or at 8:30 PM.",
"conditions": "Both the Presence group [group.presence] must report that someone is home, and the Christmas tree node status [sensor.christmas_tree_node_status] must be 'alive', indicating the device is online.",
"action": "If the trigger was the 5:30 AM time, the Christmas tree switch [switch.christmas_tree] is turned on. If the trigger was the 8:30 PM time, the Christmas tree switch [switch.christmas_tree] is turned off."
},
"human_like": "Turns the Christmas tree lights on in the morning and off in the evening, but only when someone is home and the tree's device is online.",
"complexity": "medium"
}
},
{
"id": "climate_arrive",
"result": {
"structured": "TRIGGER: When Climate presence group [group.climate_presence] changes state from not_home to home. CONDITIONS: None. ACTIONS: Set Home climate [climate.home] preset mode to home, then wait 30 minutes, then resume the program on Home climate [climate.home] (resuming all schedules if Sun sun [sun.sun] is below_horizon, otherwise not resuming all schedules).",
"natural_language": {
"trigger": "When the Climate presence group [group.climate_presence] changes from 'not_home' to 'home'.",
"conditions": "There are no conditions for this automation.",
"action": "First, it sets the Home climate [climate.home] to the 'home' preset mode. Then, after a 30-minute delay, it resumes the program on the Home climate [climate.home] thermostat. The program will resume all schedules only if the sun is below the horizon (as indicated by Sun sun [sun.sun]), otherwise it will not resume all schedules."
},
"human_like": "When someone arrives home, this automation sets the climate to 'home' mode and, after 30 minutes, resumes the thermostat's program, adjusting for whether it's night or day.",
"complexity": "medium"
}
},
{
"id": "climate_left",
"result": {
"structured": "TRIGGER: When Climate presence group [group.climate_presence] changes state from home to not_home. CONDITIONS: None. ACTIONS: Set Home climate [climate.home] preset mode to away.",
"natural_language": {
"trigger": "When the Climate presence group [group.climate_presence] changes from a state of 'home' to 'not_home'.",
"conditions": "There are no additional conditions that must be met.",
"action": "Sets the Home climate [climate.home] to its 'away' preset mode."
},
"human_like": "Sets the home climate to away mode when everyone leaves.",
"complexity": "low"
}
},
{
"id": "coffee_light",
"result": {
"structured": "TRIGGER: When Hallway sensor motion [binary_sensor.hallway_sensor_motion] turns on. CONDITIONS: (Sun sun [sun.sun] elevation is below 4) AND (Coffee switch [switch.coffee] is on) AND (Kitchen light 2 [light.kitchen_light_2] is off). ACTIONS: Turn off Kitchen Movement Automation [automation.kitchen_movement]. Turn on Kitchen light 2 [light.kitchen_light_2] to 3% brightness. Wait until Kitchen presence [binary_sensor.kitchen_presence_presence] is on (timeout 10 minutes, continue on timeout). Wait until Kitchen presence [binary_sensor.kitchen_presence_presence] is off (timeout 10 minutes, continue on timeout). Turn on Kitchen Movement Automation [automation.kitchen_movement]. If Kitchen light 1 [light.kitchen_light_1] is off, then turn off Kitchen light 2 [light.kitchen_light_2].",
"natural_language": {
"trigger": "When motion is detected by the Hallway sensor motion [binary_sensor.hallway_sensor_motion].",
"conditions": "The sun's elevation must be below 4 degrees, the Coffee switch [switch.coffee] must be on, and the Kitchen light 2 [light.kitchen_light_2] must be off.",
"action": "First, the Kitchen Movement Automation [automation.kitchen_movement] is turned off. Then, Kitchen light 2 [light.kitchen_light_2] is turned on at 3% brightness. The automation then waits for the Kitchen presence [binary_sensor.kitchen_presence_presence] sensor to detect someone in the kitchen, waiting up to 10 minutes before proceeding. It then waits for the Kitchen presence [binary_sensor.kitchen_presence_presence] sensor to report the kitchen is empty, again waiting up to 10 minutes. After this, the Kitchen Movement Automation [automation.kitchen_movement] is turned back on. Finally, if Kitchen light 1 [light.kitchen_light_1] is off, Kitchen light 2 [light.kitchen_light_2] is turned off."
},
"human_like": "Turns on a dim kitchen light when motion is detected in the hallway at night while the coffee maker is on, then turns the light off after the kitchen is used and vacated.",
"complexity": "medium"
}
},
{
"id": "coffee_monitor",
"result": {
"structured": "TRIGGER: When Coffee switch [switch.coffee] turns on. CONDITIONS: None. ACTIONS: Wait until Coffee switch [switch.coffee] is off, with a timeout of 1 hour and 25 minutes. After the wait (whether it ends because the switch turned off or the timeout was reached), turn off Coffee switch [switch.coffee].",
"natural_language": {
"trigger": "When the Coffee switch [switch.coffee] is turned on.",
"conditions": "There are no conditions for this automation.",
"action": "After the trigger, the automation waits for the Coffee switch [switch.coffee] to turn off, but will proceed after a maximum wait time of 1 hour and 25 minutes. Regardless of whether the switch turned off on its own or the time limit was reached, the automation then turns the Coffee switch [switch.coffee] off."
},
"human_like": "Automatically turns off the coffee maker after it has been running for a set time, or as soon as it finishes, whichever comes first.",
"complexity": "medium"
}
},
{
"id": "coffee_start_ready_off",
"result": {
"structured": "TRIGGER: When Coffee switch [switch.coffee] turns on. CONDITIONS: None. ACTIONS: Turn off Coffee set input boolean [input_boolean.coffee_set].",
"natural_language": {
"trigger": "When the Coffee switch [switch.coffee] is turned on.",
"conditions": "There are no conditions.",
"action": "Turns off the Coffee set input boolean [input_boolean.coffee_set]."
},
"human_like": "Turns off the coffee ready indicator when the coffee machine starts.",
"complexity": "low"
}
},
{
"id": "hallway_movement",
"result": {
"structured": "TRIGGER: When Hallway sensor motion [binary_sensor.hallway_sensor_motion] detects motion (on) OR When Hallway sensor motion [binary_sensor.hallway_sensor_motion] stops detecting motion (off) for 1 minute. ACTIONS: (IF (trigger is 'on') AND Hallway light [light.hallway_light] is off AND Hallway light auto on [input_boolean.hallway_light_auto_on] is on THEN Turn on Hallway light [light.hallway_light] with a 2-second transition and a brightness determined by the current hour: 3 after 19:00, 30 between 17:00 and 19:00, 100 between 08:00 and 17:00, and 20 otherwise) OR (IF (trigger is 'off') THEN Turn off Hallway light [light.hallway_light]).",
"natural_language": {
"trigger": "When the Hallway sensor motion [binary_sensor.hallway_sensor_motion] first detects motion, or when it reports no motion for a full minute.",
"conditions": "The automation uses conditional actions. To turn the light on, it checks that the motion trigger was the 'on' event, that the Hallway light [light.hallway_light] is currently off, and that the automatic control switch, Hallway light auto on [input_boolean.hallway_light_auto_on], is enabled. To turn the light off, it only checks that the motion trigger was the 'off' event.",
"action": "If the conditions for turning the light on are met, the Hallway light [light.hallway_light] is turned on with a smooth 2-second transition. The brightness is set based on the time of day: very dim (3) after 7 PM, dim (30) between 5 PM and 7 PM, bright (100) between 8 AM and 5 PM, and a low level (20) during the night and early morning. If the motion sensor has been inactive for a minute, the light is turned off."
},
"human_like": "Automatically turns the hallway light on when motion is detected and off after a minute of no motion, adjusting the brightness based on the time of day.",
"complexity": "medium"
}
},
{
"id": "hallway_switch_doubletap",
"result": {
"structured": "TRIGGER: When a Z-Wave value notification event occurs for device Hallway switch [device_id: db9121a9896e3f93d42ef75a8fc05ed1]. CONDITIONS: None. ACTIONS: Turn on Hallway light [light.hallway_light] with brightness percentage set to 100% if the event value is 255, or set to 10% if the event value is 0.",
"natural_language": {
"trigger": "When the Hallway switch [device_id: db9121a9896e3f93d42ef75a8fc05ed1] sends a Z-Wave value notification event.",
"conditions": "There are no additional conditions that must be met.",
"action": "Turn on the Hallway light [light.hallway_light]. The brightness is set to 100% if the event value is 255, or to 10% if the event value is 0."
},
"human_like": "Sets the hallway light to full or low brightness based on a double-tap action from the hallway switch.",
"complexity": "medium"
}
},
{
"id": "hippo_clear",
"result": {
"structured": "TRIGGER: When Next hippo departure hrs [sensor.next_hippo_departure_hrs] is above 24 OR When The hippo charger [binary_sensor.the_hippo_charger] changes from on to off OR When The hippo charger [binary_sensor.the_hippo_charger] changes from off to on. ACTIONS: Choose one of two sequences based on conditions. SEQUENCE 1 CONDITIONS: (The first scheduled entity in the 'scheduler' domain that is on has a next_trigger attribute value greater than 70) AND (Next hippo departure hrs [sensor.next_hippo_departure_hrs] is greater than 6) AND (Next hippo departure hrs [sensor.next_hippo_departure_hrs] is less than 24) AND (The hippo battery [sensor.the_hippo_battery] is below 65). SEQUENCE 1 ACTION: Run script Hippo Minimum Charge Script [script.hippo_minimum_charge]. SEQUENCE 2 CONDITIONS: (Next hippo departure hrs [sensor.next_hippo_departure_hrs] is greater than 24) AND (The hippo location tracker [device_tracker.the_hippo_location_tracker] is home). SEQUENCE 2 ACTION: Wait until The hippo shift state [sensor.the_hippo_shift_state] is P, then call service tesla_custom.api with command SCHEDULED_DEPARTURE to enable a departure time of 1, then call service tesla_custom.api with command CHANGE_CHARGE_LIMIT to set the charge limit to 70 percent.",
"natural_language": {
"trigger": "This automation triggers in three situations: when the Next hippo departure hrs [sensor.next_hippo_departure_hrs] sensor reports a value greater than 24 hours, when the The hippo charger [binary_sensor.the_hippo_charger] turns off, or when it turns on.",
"conditions": "The automation does not have global conditions. Instead, it has two separate sets of conditions that determine which action to take. The first set checks if a scheduled entity is set to trigger after a specific time, if the next departure is between 6 and 24 hours away, and if the The hippo battery [sensor.the_hippo_battery] is below 65%. The second set checks if the next departure is more than 24 hours away and if the The hippo location tracker [device_tracker.the_hippo_location_tracker] shows the vehicle is at home.",
"action": "Depending on which set of conditions is met, the automation performs one of two actions. If the first set of conditions is true, it runs a script called Hippo Minimum Charge Script [script.hippo_minimum_charge] to ensure a minimum charge level. If the second set of conditions is true, it first waits for the vehicle's shift state to be in 'P' (Park), then it enables a scheduled departure time and sets the vehicle's charge limit to 70%."
},
"human_like": "Manages the vehicle's charging schedule and battery level, either ensuring a minimum charge is reached or setting up a future departure time with a specific charge limit.",
"complexity": "high"
}
},
{
"id": "hippo_departure",
"result": {
"structured": "TRIGGER: Every 15 minutes (time pattern on minutes). CONDITIONS: (Next hippo departure hrs [sensor.next_hippo_departure_hrs] integer value is less than 14) AND (The hippo scheduled departure [binary_sensor.the_hippo_scheduled_departure] attribute 'Departure timestamp' does not equal the timestamp of Next Hippo Departure [sensor.next_hippo_departure]) AND (The hippo shift state [sensor.the_hippo_shift_state] is P) AND (The hippo location tracker [device_tracker.the_hippo_location_tracker] is home). ACTIONS: 1. Call service tesla_custom.api with command CHANGE_CHARGE_LIMIT for vehicle ID from The hippo online [binary_sensor.the_hippo_online] attribute 'id', wake if asleep, with percent value derived from the first active scheduler entity's next_trigger attribute (extracting numeric value, default 69). 2. Delay for 45 seconds. 3. Turn off The hippo charger switch [switch.the_hippo_charger]. 4. Call service tesla_custom.api with command SCHEDULED_DEPARTURE for the same vehicle ID, enable true, departure_time calculated from Next Hippo Departure [sensor.next_hippo_departure] (HH*60 + MM), preconditioning_enabled true, preconditioning_weekdays_only false, off_peak_charging_enabled derived from the same scheduler value being greater than 70, off_peak_charging_weekdays_only false, end_off_peak_time same calculation as departure_time. 5. Set Hippo departure input datetime [input_datetime.hippo_departure] to the value of Next Hippo Departure [sensor.next_hippo_departure]. 6. Delay for 7 minutes. 7. Send notification to phones with title 'Hippo charge level set' and a message containing the current charge limit and next departure time, and charging status from The hippo charging [binary_sensor.the_hippo_charging]. 8. Conditional choose block: If (the same scheduler derived value is greater than 70) AND (Next hippo departure hrs [sensor.next_hippo_departure_hrs] integer value is greater than 6) AND (The hippo battery [sensor.the_hippo_battery] is below 65), then run script Hippo Minimum Charge Script [script.hippo_minimum_charge].",
"natural_language": {
"trigger": "The automation runs every 15 minutes.",
"conditions": "All of the following must be true: The time until the next scheduled departure, as reported by Next hippo departure hrs [sensor.next_hippo_departure_hrs], is less than 14 hours. The stored departure timestamp on The hippo scheduled departure [binary_sensor.the_hippo_scheduled_departure] is different from the timestamp of the upcoming departure from Next Hippo Departure [sensor.next_hippo_departure]. The vehicle's gear state, from The hippo shift state [sensor.the_hippo_shift_state], is 'P' (Park). The vehicle's location, from The hippo location tracker [device_tracker.the_hippo_location_tracker], is 'home'.",
"action": "The automation performs a sequence of actions to prepare the vehicle for its next trip. First, it adjusts the vehicle's charge limit via a Tesla API call, using a percentage value determined by the next scheduled event from a scheduler. After a 45-second delay, it turns off the physical charger switch. It then sets up a scheduled departure time in the vehicle, enabling preconditioning and potentially off-peak charging based on the scheduler value. The calculated departure time is also saved to a datetime input helper. After a 7-minute delay, it sends a notification to phones confirming the charge level set, the departure time, and the current charging status. Finally, if specific conditions are met—namely, if the scheduler-derived value is high, the departure is more than 6 hours away, and the battery is below 65%—it runs an additional script to ensure a minimum charge level."
},
"human_like": "This automation prepares the 'Hippo' electric vehicle for its next scheduled departure by setting the charge limit, scheduling preconditioning, and notifying the user, running every 15 minutes to ensure it's ready in time.",
"complexity": "high"
}
},
{
"id": "hippo_psi",
"result": {
"structured": "TRIGGER: When The hippo tpms front right [sensor.the_hippo_tpms_front_right] OR The hippo tpms rear right [sensor.the_hippo_tpms_rear_right] OR The hippo tpms front left [sensor.the_hippo_tpms_front_left] OR The hippo tpms rear left [sensor.the_hippo_tpms_rear_left] reports a value below 37.5. CONDITIONS: None. ACTIONS: Send a notification to phones with title 'Below optimal tire pressure' and a message stating the name of the triggering sensor and its rounded pressure value.",
"natural_language": {
"trigger": "When any of the four tire pressure sensors for The Hippo (front right, rear right, front left, or rear left) reports a pressure value that falls below 37.5.",
"conditions": "There are no additional conditions that must be met.",
"action": "Sends a notification to the user's phone, alerting them that a tire pressure is below the optimal level. The notification includes the name of the specific tire sensor and its current pressure reading."
},
"human_like": "Sends a phone alert if any tire on The Hippo vehicle has low pressure.",
"complexity": "low"
}
},
{
"id": "hottub_freezing",
"result": {
"structured": "TRIGGER: When Temperature 0d [sensor.temperature_0d] is below 32. CONDITIONS: Temperature 1d [sensor.temperature_1d] is below 32 AND Temperature 2d [sensor.temperature_2d] is below 32. ACTIONS: Send a notification to phones with title 'Freeze Warning' and a message containing the current temperature values from Temperature 0d [sensor.temperature_0d], Temperature 1d [sensor.temperature_1d], and Temperature 2d [sensor.temperature_2d].",
"natural_language": {
"trigger": "When the temperature sensor for the current period, Temperature 0d [sensor.temperature_0d], drops below 32 degrees.",
"conditions": "If the forecasted temperature for the next period, Temperature 1d [sensor.temperature_1d], is also below 32 degrees, and the forecasted temperature for the period after that, Temperature 2d [sensor.temperature_2d], is also below 32 degrees.",
"action": "Sends a push notification to designated phones with a 'Freeze Warning' title, advising to turn on the hot tub. The message includes the specific temperature readings for the current and next two forecast periods."
},
"human_like": "Sends a freeze warning notification if the current and forecasted temperatures are all below freezing, suggesting the hot tub be turned on to prevent damage.",
"complexity": "low"
}
},
{
"id": "hvac_controls",
"result": {
"structured": "TRIGGER: When Home climate [climate.home] OR Window a c climate [climate.window_a_c] changes state from 'off' to any other state. CONDITIONS: NOT (Home climate [climate.home] is unknown OR Window a c climate [climate.window_a_c] is unknown). ACTIONS: If the triggering entity is 'home', then turn on Ac or furnace switch [switch.ac_or_furnace] AND turn off Window a c climate [climate.window_a_c]. If the triggering entity is 'window_a_c', then turn off Ac or furnace switch [switch.ac_or_furnace] AND turn off Home climate [climate.home].",
"natural_language": {
"trigger": "When either the Home climate [climate.home] or the Window a c climate [climate.window_a_c] changes from being off to any other state.",
"conditions": "Both the Home climate [climate.home] and the Window a c climate [climate.window_a_c] must not be in an 'unknown' state.",
"action": "Depending on which climate device triggered the automation, it will either turn on the central HVAC system and turn off the window unit, or turn off the central HVAC system and turn off the main thermostat to ensure only one system is active."
},
"human_like": "Ensures only one HVAC system is active at a time by turning off the other system when one is switched on.",
"complexity": "medium"
}
},
{
"id": "kitchen_lights_sync",
"result": {
"structured": "TRIGGER: When Kitchen light 1 [light.kitchen_light_1] OR Kitchen light 2 [light.kitchen_light_2] changes from on to off AND remains off for 30 minutes. CONDITIONS: (Kitchen light 1 [light.kitchen_light_1] is on) OR (Kitchen light 2 [light.kitchen_light_2] is on). ACTIONS: Turn off Kitchen light 1 [light.kitchen_light_1] AND Kitchen light 2 [light.kitchen_light_2].",
"natural_language": {
"trigger": "When either Kitchen light 1 [light.kitchen_light_1] or Kitchen light 2 [light.kitchen_light_2] is turned off and stays off for 30 minutes.",
"conditions": "If, at the moment the automation runs, either Kitchen light 1 [light.kitchen_light_1] or Kitchen light 2 [light.kitchen_light_2] is still reporting as being on.",
"action": "Turns off both Kitchen light 1 [light.kitchen_light_1] and Kitchen light 2 [light.kitchen_light_2]."
},
"human_like": "Ensures both kitchen lights are turned off if one has been off for 30 minutes but the other is still reported as on.",
"complexity": "medium"
}
},
{
"id": "kitchen_movement",
"result": {
"structured": "TRIGGER: When Kitchen presence [binary_sensor.kitchen_presence_presence] becomes on OR When Kitchen presence [binary_sensor.kitchen_presence_presence] becomes off AND remains off for 1 minute. ACTIONS: (IF (trigger is on) AND (All kitchen lights [light.all_kitchen_lights] is off) AND (time is between 05:00:00 and 22:00:00) THEN turn on All kitchen lights [light.all_kitchen_lights] with a 2-second transition and brightness determined by the current hour: 3 if hour >= 19, 30 if hour >= 17, 100 if hour >= 8, otherwise 20) OR (IF (trigger is off) THEN turn off All kitchen lights [light.all_kitchen_lights]).",
"natural_language": {
"trigger": "When the Kitchen presence [binary_sensor.kitchen_presence_presence] detects someone entering (turns on), or when it detects no presence (turns off) and that state persists for one minute.",
"conditions": "For turning the lights on, the automation checks that the All kitchen lights [light.all_kitchen_lights] are currently off and that the current time is between 5:00 AM and 10:00 PM. For turning the lights off, there are no additional conditions beyond the trigger.",
"action": "If presence is detected, the lights turn on with a smooth transition. The brightness is set based on the time of day: very dim (3%) after 7 PM, dim (30%) between 5 PM and 7 PM, bright (100%) between 8 AM and 5 PM, and a low level (20%) between 5 AM and 8 AM. If presence is not detected for one minute, the lights turn off."
},
"human_like": "Automatically turns the kitchen lights on when someone enters and off when they leave, adjusting the brightness based on the time of day.",
"complexity": "medium"
}
},
{
"id": "kitchen_switch_1_doubletap",
"result": {
"structured": "TRIGGER: When a zwave_js_value_notification event occurs for device Kitchen switch 1 [device_id: 7d27e04aa4d14b076542e5b92dc999a0]. ACTIONS: Turn on Kitchen light 1 [light.kitchen_light_1] with brightness set to 100% if the event value is 255, or 10% if the event value is 0. AND Turn on Kitchen light 2 [light.kitchen_light_2] with brightness set to 100% if the event value is 255, or 10% if the event value is 0.",
"natural_language": {
"trigger": "When the Kitchen switch 1 [device_id: 7d27e04aa4d14b076542e5b92dc999a0] sends a specific Z-Wave notification event.",
"conditions": "There are no conditions for this automation.",
"action": "Turns on both Kitchen light 1 [light.kitchen_light_1] and Kitchen light 2 [light.kitchen_light_2]. The brightness for each light is set to 100% if the event value is 255, or 10% if the event value is 0."
},
"human_like": "Sets the kitchen lights to either full or low brightness when a specific double-tap event is detected on the Kitchen switch.",
"complexity": "medium"
}
},
{
"id": "kitchen_switch_2_doubletap",
"result": {
"structured": "TRIGGER: When a Z-Wave JS value notification event occurs for device Kitchen switch 2 [device_id: 38f0169c956322eb2cb54645abc733be]. ACTIONS: Turn on Kitchen light 2 [light.kitchen_light_2] with brightness set to 100% if the event value is 255, or 10% if the event value is 0. Also, turn on Kitchen light 1 [light.kitchen_light_1] with brightness set to 100% if the event value is 255, or 10% if the event value is 0.",
"natural_language": {
"trigger": "When the Kitchen switch 2 [device_id: 38f0169c956322eb2cb54645abc733be] sends a specific Z-Wave notification event, typically indicating a double-tap action.",
"conditions": "There are no conditions for this automation.",
"action": "Sets the brightness of both Kitchen light 2 [light.kitchen_light_2] and Kitchen light 1 [light.kitchen_light_1] based on the event value. If the value is 255, the lights are turned on to full brightness (100%). If the value is 0, the lights are turned on to a low brightness (10%)."
},
"human_like": "Uses a double-tap on Kitchen switch 2 to set the kitchen lights to either full or low brightness.",
"complexity": "medium"
}
},
{
"id": "night_security_check",
"result": {
"structured": "TRIGGER: When All lights group [group.all_lights] turns from on to off. CONDITIONS: The current time is between 19:00:00 and 05:00:00. ACTIONS: Execute Relock Front Door Script [script.relock_front_door].",
"natural_language": {
"trigger": "When all the lights in the house, represented by the group All lights group [group.all_lights], are turned off.",
"conditions": "This check only runs if the time is between 7:00 PM and 5:00 AM.",
"action": "Runs the Relock Front Door Script [script.relock_front_door] to ensure the front door is locked."
},
"human_like": "Automatically checks and re-locks the front door at night when all the lights are turned off.",
"complexity": "low"
}
},
{
"id": "office_movement",
"result": {
"structured": "TRIGGER: When Office presence [binary_sensor.office_presence_presence] becomes on OR When Office presence [binary_sensor.office_presence_presence] becomes off and remains off for 2 minutes. ACTIONS: When triggered by 'on': IF (Office light [light.office_light] is off) AND (Office light auto on [input_boolean.office_light_auto_on] is on) THEN turn on Office lamp [light.office_lamp] with a 2-second transition and brightness determined by the current hour (20 if hour < 8, 100 if 8 ≤ hour < 17, 30 if 17 ≤ hour < 19, 3 if hour ≥ 19). THEN IF (Office light [light.office_light] is off) AND (current time is between 08:00:00 and 18:00:00) THEN turn on Office light [light.office_light] with a 2-second transition and brightness determined by the same hour-based template. When triggered by 'off': IF (Office light auto on [input_boolean.office_light_auto_on] is on) THEN turn off Office light [light.office_light] AND turn off Office lamp [light.office_lamp].",
"natural_language": {
"trigger": "When the Office presence [binary_sensor.office_presence_presence] detects someone entering (turns on), or when it detects that the room has been empty for two consecutive minutes (turns off and stays off for 2 minutes).",
"conditions": "The actions depend on which trigger fired and other conditions. For the 'on' trigger, the automation checks if the Office light [light.office_light] is currently off and if the auto-on feature is enabled via Office light auto on [input_boolean.office_light_auto_on]. A further check for the main light action also requires the current time to be between 8 AM and 6 PM. For the 'off' trigger, the only condition is that the auto-on feature is enabled.",
"action": "If presence is detected and conditions are met, the Office lamp [light.office_lamp] is turned on with a smooth transition, and its brightness is set based on the time of day (dimmer in the evening, brightest during core daytime hours). If it's also during daytime hours, the main Office light [light.office_light] is turned on with the same brightness logic. If presence has been absent for two minutes and auto-on is enabled, both the Office light [light.office_light] and the Office lamp [light.office_lamp] are turned off."
},
"human_like": "Automatically turns the office lights on when someone enters the room and off after they leave, adjusting brightness based on the time of day.",
"complexity": "medium"
}
},
{
"id": "office_switch_doubletap",
"result": {
"structured": "TRIGGER: When a zwave_js_value_notification event occurs for device Office switch [device_id: 6adf396592828be8ab788674e9113f43]. ACTIONS: Turn on Office light [light.office_light] with brightness set to 100% if the event value is 255 OR set to 10% if the event value is 0. Then turn off Office light auto on [input_boolean.office_light_auto_on].",
"natural_language": {
"trigger": "When the Office switch [device_id: 6adf396592828be8ab788674e9113f43] sends a specific Z-Wave notification event.",
"conditions": "There are no explicit conditions for this automation.",
"action": "Turns on the Office light [light.office_light] to either full brightness (100%) or a low brightness (10%) depending on the value in the event data. It then turns off the Office light auto on [input_boolean.office_light_auto_on] input boolean."
},
"human_like": "Responds to a double-tap on the office switch by setting the office light to a specific brightness and disabling its automatic on feature.",
"complexity": "medium"
}
},
{
"id": "office_switch_turned_off",
"result": {
"structured": "TRIGGER: When Office light [light.office_light] turns off. CONDITIONS: Office light auto on [input_boolean.office_light_auto_on] is off. ACTIONS: Turn on Office light auto on [input_boolean.office_light_auto_on].",
"natural_language": {
"trigger": "When the Office light [light.office_light] is turned off.",
"conditions": "If the Office light auto on [input_boolean.office_light_auto_on] is currently set to off.",
"action": "Turns on the Office light auto on [input_boolean.office_light_auto_on] input boolean."
},
"human_like": "When the office light is manually turned off, this automation re-enables the automatic light-on feature.",
"complexity": "low"
}
},
{
"id": "open_windows",
"result": {
"structured": "TRIGGER: When (Kbfi temperature [sensor.kbfi_temperature] minus House avg temp [sensor.house_avg_temp] plus 3) is less than or equal to 0 OR when Temperature 1d [sensor.temperature_1d] is less than or equal to 60. CONDITIONS: House avg temp [sensor.house_avg_temp] is greater than or equal to 72 AND it is after sunset minus 4 hours AND time is before 22:00:00 AND Presence group [group.presence] is home AND Home climate [climate.home] is off. ACTIONS: If time is after 18:00:00, then send a notification with the current outside temperature, inside temperature, and the overnight low from Temperature 0d [sensor.temperature_0d]. Otherwise, send a notification with the current outside temperature, inside temperature, and the overnight low from Temperature 1d [sensor.temperature_1d].",
"natural_language": {
"trigger": "When the outside temperature from Kbfi temperature [sensor.kbfi_temperature] is at least 3 degrees cooler than the average house temperature from House avg temp [sensor.house_avg_temp], or when the forecasted temperature from Temperature 1d [sensor.temperature_1d] is 60°F or lower.",
"conditions": "The average house temperature from House avg temp [sensor.house_avg_temp] must be at least 72°F. It must be after 4 hours before sunset and before 10:00 PM. Someone must be home, as indicated by Presence group [group.presence], and the Home climate [climate.home] system must be turned off.",
"action": "If it is after 6:00 PM, a notification is sent showing the current outside temperature, the current inside temperature, and the overnight low from Temperature 0d [sensor.temperature_0d]. If it is before 6:00 PM, a similar notification is sent, but it uses the overnight low from Temperature 1d [sensor.temperature_1d]."
},
"human_like": "Sends a notification suggesting to open the windows when it's cooler outside than inside, but only if the house is warm enough, it's the right time of day, someone is home, and the HVAC is off.",
"complexity": "medium"
}
},
{
"id": "plant_schedule_off",
"result": {
"structured": "TRIGGER: When the time is 19:45:00. CONDITIONS: Plants group [group.plants] is on. ACTIONS: Turn off Plants group [group.plants].",
"natural_language": {
"trigger": "At 7:45 PM every day.",
"conditions": "If the Plants group [group.plants] is currently turned on.",
"action": "Turns off the Plants group [group.plants]."
},
"human_like": "Turns off the plant lights every evening at 7:45 PM.",
"complexity": "low"
}
},
{
"id": "plant_schedule_on",
"result": {
"structured": "TRIGGER: At 07:30:00. CONDITIONS: Plants group [group.plants] is off. ACTIONS: Delay for 1 hour IF Workday sensor [binary_sensor.workday_sensor] is off, otherwise delay for 1 second. THEN turn on Plants group [group.plants].",
"natural_language": {
"trigger": "The automation triggers every day at 7:30 AM.",
"conditions": "It only runs if the Plants group [group.plants] is currently off.",
"action": "First, it waits. If it's not a workday (Workday sensor [binary_sensor.workday_sensor] is off), it waits for one hour. If it is a workday, it waits for only one second. After the delay, it turns on the Plants group [group.plants]."
},
"human_like": "Turns on the plants on a schedule at 7:30 AM, but delays for an hour on non-workdays.",
"complexity": "medium"
}
},
{
"id": "porch_light_door_open",
"result": {
"structured": "TRIGGER: When Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] changes from closed (off) to open (on) OR When a device from the include file changes from not_home to home OR When Front door lock [lock.lock_front_door_lock] changes from locked to unlocked. CONDITIONS: Sun sun [sun.sun] elevation is less than 4 AND Porch light switch [switch.porch_light] is off. ACTIONS: Turn on Porch light switch [switch.porch_light], then wait until Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] is closed (off) for up to 5 minutes, then wait for 2 minutes, then turn off Porch light switch [switch.porch_light].",
"natural_language": {
"trigger": "The automation triggers when the Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] opens, when a tracked device arrives home, or when the Front door lock [lock.lock_front_door_lock] is unlocked.",
"conditions": "The automation only runs if it is dark enough, determined by the Sun sun [sun.sun] elevation being below 4 degrees, and if the Porch light switch [switch.porch_light] is currently off.",
"action": "It turns on the Porch light switch [switch.porch_light]. It then waits for the front door to close, monitoring for up to 5 minutes. After the door closes, it waits an additional 2 minutes before turning the porch light off again."
},
"human_like": "Turns on the porch light when someone arrives home or opens the door at night, and turns it off a short while after the door is closed.",
"complexity": "medium"
}
},
{
"id": "spare_bedroom_movement",
"result": {
"structured": "TRIGGER: When Spare bedroom presence [binary_sensor.spare_bedroom_presence_presence] changes to on OR When Spare bedroom presence [binary_sensor.spare_bedroom_presence_presence] changes to off AND remains off for 1 minute. CONDITIONS: For the first action path: (Trigger ID is 'on') AND (Spare bedroom light [light.spare_bedroom_light] is off) AND (Spare bedroom light auto on [input_boolean.spare_bedroom_light_auto_on] is on). For the second action path: (Trigger ID is 'off'). ACTIONS: If the first set of conditions is met, turn on Spare bedroom light [light.spare_bedroom_light] with a 2-second transition and a brightness determined by the current hour: 3 if hour >= 19, 30 if hour >= 17, 100 if hour >= 8, otherwise 20. If the second set of conditions is met, turn off Spare bedroom light [light.spare_bedroom_light].",
"natural_language": {
"trigger": "The automation triggers when the Spare bedroom presence [binary_sensor.spare_bedroom_presence_presence] sensor detects presence (changes to 'on') or when it stops detecting presence (changes to 'off' and remains off for one minute).",
"conditions": "If the trigger was due to presence being detected, the automation checks that the Spare bedroom light [light.spare_bedroom_light] is currently off and that the Spare bedroom light auto on [input_boolean.spare_bedroom_light_auto_on] setting is enabled. If the trigger was due to presence being absent for a minute, there are no additional conditions.",
"action": "When presence is detected and the conditions are met, the Spare bedroom light [light.spare_bedroom_light] is turned on with a smooth 2-second transition. The brightness is set based on the time of day: very dim (3) after 7 PM, dim (30) between 5 PM and 7 PM, bright (100) between 8 AM and 5 PM, and moderately dim (20) before 8 AM. When presence has been absent for a minute, the light is simply turned off."
},
"human_like": "Automatically turns the spare bedroom light on when someone enters the room (with brightness adjusted for the time of day) and turns it off after they've been gone for a minute.",
"complexity": "medium"
}
},
{
"id": "spare_bedroom_switch_double_tap",
"result": {
"structured": "TRIGGER: When a zwave_js_value_notification event occurs for device Spare bedroom switch [device_id: 035feddac732eb4681d7fb3800f2fd56]. CONDITIONS: None. ACTIONS: Turn on Spare bedroom light [light.spare_bedroom_light] with brightness set to 100% if the event value is 255, or with brightness set to 10% if the event value is 0.",
"natural_language": {
"trigger": "When the Spare bedroom switch [device_id: 035feddac732eb4681d7fb3800f2fd56] sends a specific Z-Wave value notification event.",
"conditions": "There are no conditions that must be met.",
"action": "Turns on the Spare bedroom light [light.spare_bedroom_light]. The brightness is set to full (100%) if the notification value is 255, or to a low level (10%) if the notification value is 0."
},
"human_like": "Controls the spare bedroom light brightness based on a double-tap action from the wall switch, turning it either fully on or to a dim level.",
"complexity": "low"
}
},
{
"id": "start_tv",
"result": {
"structured": "TRIGGER: When Smart tv pro remote [remote.smart_tv_pro] turns on. CONDITIONS: None. ACTIONS: Send the 'PowerToggle' command to Harmony hub remote [remote.harmony_hub].",
"natural_language": {
"trigger": "When the Smart tv pro remote [remote.smart_tv_pro] is turned on.",
"conditions": "There are no conditions for this automation.",
"action": "Sends a 'PowerToggle' command to the Harmony hub remote [remote.harmony_hub]."
},
"human_like": "Automatically turns on the sound system (via the Harmony hub) when the living room TV is started.",
"complexity": "low"
}
},
{
"id": "stop_tv",
"result": {
"structured": "TRIGGER: When Smart tv pro remote [remote.smart_tv_pro] changes state from on to off. CONDITIONS: None. ACTIONS: Send the command 'PowerToggle' to Harmony hub remote [remote.harmony_hub].",
"natural_language": {
"trigger": "When the Smart tv pro remote [remote.smart_tv_pro] changes its state from on to off.",
"conditions": "There are no conditions for this automation.",
"action": "Sends the 'PowerToggle' command to the Harmony hub remote [remote.harmony_hub]."
},
"human_like": "Turns off the sound system when the living room TV is turned off.",
"complexity": "low"
}
},
{
"id": "stop_tv_auto",
"result": {
"structured": "TRIGGER: When Living room tv media player [media_player.living_room_tv] remains unavailable for 3 minutes OR when Living room tv media player [media_player.living_room_tv] remains off for 10 minutes OR when Living room tv media player [media_player.living_room_tv] remains idle for 30 minutes. CONDITIONS: Harmony hub remote [remote.harmony_hub] is on AND Plex living room tv [media_player.plex_living_room_tv] is NOT playing. ACTIONS: Turn off Harmony hub remote [remote.harmony_hub].",
"natural_language": {
"trigger": "When the Living room tv media player [media_player.living_room_tv] has been in the 'unavailable' state for 3 minutes, or in the 'off' state for 10 minutes, or in the 'idle' state for 30 minutes.",
"conditions": "The Harmony hub remote [remote.harmony_hub] must be on, and the Plex living room tv [media_player.plex_living_room_tv] must not be playing any content.",
"action": "Turns off the Harmony hub remote [remote.harmony_hub]."
},
"human_like": "Automatically turns off the Harmony remote if the TV is off, idle, or unavailable for a set time and Plex is not playing.",
"complexity": "medium"
}
},
{
"id": "trevor_sunrise_alarm",
"result": {
"structured": "TRIGGER: When an MQTT message is received on topic 'trevor/alarm'. CONDITIONS: None. ACTIONS: Turn on Coffee Start Script [script.coffee_start]. IF One two lamps input boolean [input_boolean.one_two_lamps] is on, THEN turn on Bedroom color 2 [light.bedroom_color_2] with brightness 1% and red color. Turn on Bedroom color 1 [light.bedroom_color_1] with brightness 1% and red color. Wait for 10 seconds. IF One two lamps input boolean [input_boolean.one_two_lamps] is on, THEN turn on Bedroom color 2 [light.bedroom_color_2] with brightness 100% and warm white color (2700K) over 260 seconds AND turn off One two lamps input boolean [input_boolean.one_two_lamps]. Turn on Bedroom color 1 [light.bedroom_color_1] with brightness 100% and warm white color (2700K) over 260 seconds.",
"natural_language": {
"trigger": "The automation is triggered when an MQTT message is published to the topic 'trevor/alarm'.",
"conditions": "There are no conditions that must be met for the actions to run.",
"action": "First, it starts the Coffee Start Script [script.coffee_start]. Then, if the One two lamps input boolean [input_boolean.one_two_lamps] is on, it turns on the Bedroom color 2 [light.bedroom_color_2] light to a very dim red. It also turns on the Bedroom color 1 [light.bedroom_color_1] light to a very dim red. After a 10-second delay, if the One two lamps input boolean [input_boolean.one_two_lamps] is still on, it gradually brightens the Bedroom color 2 [light.bedroom_color_2] to full brightness with a warm white color over 260 seconds and turns off the One two lamps input boolean [input_boolean.one_two_lamps]. Finally, it also gradually brightens the Bedroom color 1 [light.bedroom_color_1] to full brightness with a warm white color over 260 seconds."
},
"human_like": "Starts a sunrise alarm sequence for Trevor, beginning with coffee preparation and a gentle red light that slowly transitions to a bright, warm white light to simulate a natural sunrise.",
"complexity": "medium"
}
},
{
"id": "sunset_response",
"result": {
"structured": "TRIGGER: When sunset occurs with an offset of -45 minutes (i.e., 45 minutes before sunset). CONDITIONS: Presence group [group.presence] is home AND Dining lights [light.dining_lights] are off AND the current time is before 20:00:00. ACTIONS: Turn on Dining lights [light.dining_lights] with brightness at 1%, wait 1 second, then turn on Dining lights [light.dining_lights] with brightness at 100% and a transition of 900 seconds.",
"natural_language": {
"trigger": "When it is 45 minutes before sunset.",
"conditions": "If the Presence group [group.presence] indicates someone is home, the Dining lights [light.dining_lights] are currently off, and the current time is before 8:00 PM.",
"action": "Turn on the Dining lights [light.dining_lights] to a very dim 1% brightness, wait one second, and then gradually increase the brightness to 100% over 15 minutes (900 seconds)."
},
"human_like": "Gradually brightens the dining lights in the evening before sunset when someone is home, creating a smooth transition from dim to full light.",
"complexity": "medium"
}
},
{
"id": "theme_set",
"result": {
"structured": "TRIGGER: When Home Assistant starts OR When Sun sun [sun.sun] elevation rises above 4 degrees OR When Sun sun [sun.sun] elevation falls below 4 degrees. CONDITIONS: None. ACTIONS: If Sun sun [sun.sun] elevation is above 4 degrees, then set the frontend theme to 'Google Theme Light' with dark mode. Otherwise, set the frontend theme to 'Google Theme Dark' with dark mode.",
"natural_language": {
"trigger": "The automation runs when Home Assistant first starts, or when the sun's elevation rises above 4 degrees, or when the sun's elevation falls below 4 degrees.",
"conditions": "There are no conditions that must be met after the trigger.",
"action": "If the sun's elevation is above 4 degrees, it sets the user interface theme to 'Google Theme Light' in dark mode. If the sun's elevation is 4 degrees or below, it sets the theme to 'Google Theme Dark' in dark mode."
},
"human_like": "Automatically switches the Home Assistant interface between a light and dark theme based on whether the sun is above or below the horizon.",
"complexity": "medium"
}
},
{
"id": "update_groups_all",
"result": {
"structured": "TRIGGER: When Home Assistant starts. CONDITIONS: None. ACTIONS: Execute Update All Lights Group Script [script.update_all_lights_group].",
"natural_language": {
"trigger": "When the Home Assistant system starts up.",
"conditions": "There are no conditions that must be met.",
"action": "Runs the script named Update All Lights Group Script [script.update_all_lights_group]."
},
"human_like": "Updates all light groups automatically when Home Assistant starts.",
"complexity": "low"
}
},
{
"id": "goodbye_sequence",
"result": {
"structured": "TRIGGER: When Presence group [group.presence] changes state from home to not_home. CONDITIONS: (Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] is open (on)) AND (Front door sensor last seen [sensor.front_door_sensor_last_seen] is less than 7200 seconds (2 hours) old). ACTIONS: If conditions are met, send a notification to phones with a custom message indicating the front door might be open and the sensor's last seen time. Otherwise, turn off all lights [all] and run the Relock Front Door Script [script.relock_front_door].",
"natural_language": {
"trigger": "When the Presence group [group.presence] indicates that the last person has left home.",
"conditions": "If the Front door sensor [binary_sensor.front_door_sensor_window_door_is_open] reports the door is open, and the Front door sensor last seen [sensor.front_door_sensor_last_seen] data is recent (less than two hours old).",
"action": "If the conditions are true, a notification is sent to phones warning that the front door might be open, including how many minutes ago the sensor was last seen. If the conditions are false, all lights are turned off and the Relock Front Door Script [script.relock_front_door] is executed."
},
"human_like": "When everyone leaves home, it checks if the front door is open and the sensor is working; if so, it sends a warning notification, otherwise it turns off all lights and locks the front door.",
"complexity": "medium"
}
},
{
"id": "zwave_battery_update",
"result": {
"structured": "TRIGGER: When the time is 03:00:00. CONDITIONS: The current day number modulo 3 equals 1 (i.e., the automation runs every third day). ACTIONS: Refresh all values for all Z-Wave battery entities.",
"natural_language": {
"trigger": "The automation is triggered daily at 3:00 AM.",
"conditions": "It only runs if the current day number (since the epoch) is 1 modulo 3, meaning it executes every third day.",
"action": "It refreshes the values for all Z-Wave battery entities."
},
"human_like": "Updates the battery levels for all Z-Wave devices every third day at 3 AM.",
"complexity": "medium"
}
}
]