[ { "id": "Entryway Smart Welcome - Door & Motion Confirmed", "result": { "structured": "TRIGGER: When an SIA event with code BA and ri 7 occurs (door_opened) OR When an SIA event with code BA and ri 8 occurs (motion_detected). CONDITIONS: None. ACTIONS: If the trigger was door_opened, wait for up to 60 seconds for an SIA event with code BA and ri 8 (motion_detected). If motion_detected occurs within the timeout, then use text to speech google en com [tts.google_en_com] to make entryway speaker [media_player.entryway_speaker] say 'Entryway door opened. Welcome home, brave traveller!'.", "natural_language": { "trigger": "The automation is triggered when either a specific door opening event (SIA event code BA, ri 7) or a specific motion detection event (SIA event code BA, ri 8) occurs.", "conditions": "There are no conditions that must be met before the action can run.", "action": "If the automation was triggered by the door opening event, it will wait for up to one minute for the corresponding motion detection event. If motion is detected within that minute, the system will play a welcome message on the entryway speaker [media_player.entryway_speaker] using the Google text-to-speech service [tts.google_en_com]." }, "human_like": "Plays a welcome message when the entryway door is opened and motion is detected shortly after, confirming someone has entered.", "complexity": "medium" } }, { "id": "HVAC Auto Pause/Resume - Door & Window with Grace Periods", "result": { "structured": "TRIGGER: When an SIA event with code BA and ri 7 occurs (door_opened) OR when an SIA event with code BR and ri 7 occurs (door_closed). CONDITIONS: None. ACTIONS: (IF door_opened trigger fires THEN wait 5 minutes, THEN wait up to 1 second for an SIA event with code BR and ri 2, THEN IF no such event occurred within the timeout (wait.trigger is none) THEN set living room climate [climate.living_room] HVAC mode to off AND use text to speech google en com [tts.google_en_com] to speak 'HVAC paused. Door or Window remained open for over 5 minutes.' on living room speaker [media_player.living_room_speaker]) OR (IF door_closed trigger fires THEN wait 5 minutes, THEN wait up to 1 second for an SIA event with code BA and ri 2, THEN IF no such event occurred within the timeout (wait.trigger is none) THEN set living room climate [climate.living_room] HVAC mode to heat AND use text to speech google en com [tts.google_en_com] to speak 'HVAC resumed. Door stayed closed for 5 minutes.' on living room speaker [media_player.living_room_speaker]).", "natural_language": { "trigger": "The automation is triggered by one of two specific security system (SIA) events: either a 'door opened' event (code BA, ri 7) or a 'door closed' event (code BR, ri 7).", "conditions": "There are no conditions that must be met before the actions can run.", "action": "If the trigger was a 'door opened' event, the automation waits for 5 minutes. After this delay, it checks for a very brief moment (1 second) for a specific 'door closed' event (code BR, ri 2). If that specific closing event does not happen within that second, it assumes the door has remained open. It then turns off the living room climate [climate.living_room] and announces via the living room speaker [media_player.living_room_speaker] that the HVAC is paused because a door or window was open for over 5 minutes. Conversely, if the trigger was a 'door closed' event, it waits 5 minutes and then checks for a specific 'door opened' event (code BA, ri 2) for 1 second. If that opening event does not occur, it assumes the door has stayed closed. It then sets the living room climate [climate.living_room] to heat mode and announces that the HVAC has resumed." }, "human_like": "Pauses the living room heating or cooling if a door or window is left open for more than 5 minutes, and resumes it once the door has been securely closed for the same amount of time, with voice announcements for both actions.", "complexity": "high" } }, { "id": "Alarm State Visual & TTS Indication (No Helpers)", "result": { "structured": "TRIGGER: When a SIA event with code CL and ri 10 occurs (armed_away) OR When a SIA event with code OP and ri 10 occurs (disarmed) OR When a SIA event with code NL and ri 10 occurs (night_mode) OR When a SIA event with code BA and ri 10 occurs (triggered). CONDITIONS: For the triggered path only, the last_state variable (derived from the last_state attribute of room x pir motion sensor [alarm_control_panel.room_x_pir_motion_sensor]) must be armed_away OR night_mode. ACTIONS: If triggered is armed_away: Turn on ambient rgb led [light.ambient_rgb_led] to 70% brightness, red color, AND speak 'Security Alarm was Armed Away' via house speaker [media_player.house_speaker] using text to speech google en com [tts.google_en_com], AND set the state of alarm state visual tts indication no helpers [automation.alarm_state_visual_tts_indication_no_helpers] to armed_away. If triggered is disarmed: Turn on ambient rgb led [light.ambient_rgb_led] to 50% brightness, green color, AND speak 'Alarm was Disarmed' via house speaker [media_player.house_speaker] using text to speech google en com [tts.google_en_com], AND set the state of alarm state visual tts indication no helpers [automation.alarm_state_visual_tts_indication_no_helpers] to disarmed. If triggered is night_mode: Turn on ambient rgb led [light.ambient_rgb_led] to 25% brightness, purple color, AND speak 'Night Mode engaged for Security Alarm' via house speaker [media_player.house_speaker] using text to speech google en com [tts.google_en_com], AND set the state of alarm state visual tts indication no helpers [automation.alarm_state_visual_tts_indication_no_helpers] to night_mode. If triggered is triggered AND last_state is armed_away OR night_mode: Repeat the following sequence while last_state is armed_away OR night_mode: Turn on ambient rgb led [light.ambient_rgb_led] to 100% brightness, red color, wait 3 seconds, turn off ambient rgb led [light.ambient_rgb_led], wait 3 seconds, speak 'Security Alarm Triggered!' via house speaker [media_player.house_speaker] using text to speech google en com [tts.google_en_com], wait 15 seconds.", "natural_language": { "trigger": "The automation is triggered by specific SIA alarm system events: when the alarm is armed away (code CL), disarmed (code OP), set to night mode (code NL), or triggered (code BA). All events have a common receiver identifier (ri) of 10.", "conditions": "For the alarm triggered event, there is an additional condition that the alarm's last known state, retrieved from the room x pir motion sensor [alarm_control_panel.room_x_pir_motion_sensor], must have been either 'armed_away' or 'night_mode'. The other trigger paths (armed away, disarmed, night mode) have no additional conditions.", "action": "Depending on which event triggered the automation, it performs a specific sequence. For 'armed away', it sets the ambient rgb led [light.ambient_rgb_led] to red at 70% brightness, announces 'Security Alarm was Armed Away' on the house speaker [media_player.house_speaker], and records this state in the automation itself. For 'disarmed', it sets the light to green at 50% brightness, announces 'Alarm was Disarmed', and records the state. For 'night mode', it sets the light to purple at 25% brightness, announces 'Night Mode engaged for Security Alarm', and records the state. For a 'triggered' event, but only if the alarm was previously armed, it enters a flashing and announcement loop: it repeatedly turns the light to bright red, waits, turns it off, waits, announces 'Security Alarm Triggered!', and waits again, continuing as long as the alarm's last state remains armed." }, "human_like": "This automation provides visual and spoken feedback for the alarm system's state, changing a light's color and making announcements when the alarm is armed, disarmed, set to night mode, or triggered.", "complexity": "high" } }, { "id": "Room X Lights On for 1m30s", "result": { "structured": "TRIGGER: When an event of type sia_event occurs with event_data code BA AND ri 8. CONDITIONS: room x lights [light.room_x_lights] is off. ACTIONS: Turn on room x lights [light.room_x_lights], wait for 1 minute and 30 seconds, then turn off room x lights [light.room_x_lights].", "natural_language": { "trigger": "When a specific security system event (sia_event) with the code BA and identifier ri 8 is received.", "conditions": "The room x lights [light.room_x_lights] must be off.", "action": "Turn on the room x lights [light.room_x_lights], keep them on for one minute and thirty seconds, and then turn them off." }, "human_like": "Turns on the lights in Room X for a minute and a half when a specific security alarm event occurs, provided the lights are off.", "complexity": "low" } } ]