[ { "id": "alarm_triggered_armed_away", "automation": "- alias: Alarm - Triggered Armed Away\n id: alarm_triggered_armed_away\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.alarm\n to: triggered\n conditions: []\n actions:\n - action: notify.mobile_apps\n data:\n title: Alarm Triggered!\n message: The alarm was triggered\n data:\n group: alarm\n notification_icon: mdi:shield-home-outline\n ttl: 0\n priority: high", "config": [ { "name": "alarm control panel", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.alarm", "device_id": null } } ] }, { "id": "alarm_away_door_alarm", "automation": "- alias: Alarm - Away Door Alarm\n id: alarm_away_door_alarm\n triggers:\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_3\n to: 'on'\n variables:\n location_name: Kitchen\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_7\n to: 'on'\n variables:\n location_name: Front\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5\n to: 'on'\n variables:\n location_name: Laundry\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open\n to: 'on'\n variables:\n location_name: Office\n conditions:\n - condition: state\n entity_id: alarm_control_panel.alarm\n state: armed_away\n actions:\n - action: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.alarm\n - action: notify.mobile_apps\n data:\n title: Door Alarm Triggered!\n message: '{{ location_name }} Door Alarm Triggered!'\n data:\n group: alarm\n notification_icon: mdi:shield-home-outline\n ttl: 0\n priority: high\n - action: notify.email\n data_template:\n title: Door Alarm Triggered\n message: '{{ location_name }} door alarm triggered!'", "config": [ { "name": "alarm control panel", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.alarm", "device_id": null } }, { "name": "kitchen door window sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_3", "device_id": null } }, { "name": "front door window sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_7", "device_id": null } }, { "name": "laundry door window sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5", "device_id": null } }, { "name": "office door window sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open", "device_id": null } } ] }, { "id": "bedtime_routine", "automation": "- alias: Bedtime routine\n id: bedtime_routine\n description: Trigger bedtime routine at 10:30pm.\n triggers:\n platform: time\n at: '22:30:00'\n actions:\n action: script.bedtime", "config": [] }, { "id": "announce_door_opened", "automation": "- alias: Announce Door Opened\n id: announce_door_opened\n triggers:\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_3\n to: 'on'\n variables:\n location_name: Kitchen\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_7\n to: 'on'\n variables:\n location_name: Front\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5\n to: 'on'\n variables:\n location_name: Laundry\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open\n to: 'on'\n variables:\n location_name: Office\n mode: queued\n conditions:\n - condition: state\n entity_id: binary_sensor.halloween_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.thanksgiving_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.christmas_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.today_is_someones_birthday\n state: 'off'\n actions:\n action: script.sonos_say\n data:\n message: '{{ location_name }} door open'\n delay: 00:00:03", "config": [ { "name": "kitchen door window sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_3", "device_id": null } }, { "name": "front door window sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_7", "device_id": null } }, { "name": "laundry door window sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5", "device_id": null } }, { "name": "office door window sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open", "device_id": null } }, { "name": "halloween month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.halloween_month", "device_id": null } }, { "name": "thanksgiving month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.thanksgiving_month", "device_id": null } }, { "name": "christmas month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.christmas_month", "device_id": null } }, { "name": "birthday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.today_is_someones_birthday", "device_id": null } } ] }, { "id": "announce_door_closed", "automation": "- alias: Announce Door Closed\n id: announce_door_closed\n triggers:\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_3\n to: 'off'\n variables:\n location_name: Kitchen\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open_7\n to: 'off'\n variables:\n location_name: Front\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5\n to: 'off'\n variables:\n location_name: Laundry\n - trigger: state\n entity_id: binary_sensor.z_wave_door_window_sensor_window_door_is_open\n to: 'off'\n variables:\n location_name: Office\n mode: queued\n conditions:\n - condition: state\n entity_id: binary_sensor.halloween_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.thanksgiving_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.christmas_month\n state: 'off'\n - condition: state\n entity_id: binary_sensor.today_is_someones_birthday\n state: 'off'\n actions:\n action: script.sonos_say\n data:\n message: '{{ location_name }} door closed'\n delay: 00:00:03", "config": [ { "name": "kitchen door window sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_3", "device_id": null } }, { "name": "front door window sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_7", "device_id": null } }, { "name": "laundry door window sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5", "device_id": null } }, { "name": "office door window sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open", "device_id": null } }, { "name": "halloween month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.halloween_month", "device_id": null } }, { "name": "thanksgiving month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.thanksgiving_month", "device_id": null } }, { "name": "christmas month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.christmas_month", "device_id": null } }, { "name": "birthday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.today_is_someones_birthday", "device_id": null } } ] }, { "id": "announce_door_opened_event", "automation": "- alias: Announce Door Opened (Event)\n id: announce_door_opened_event\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open_7\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open_3\n - binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5\n to: 'on'\n mode: queued\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.today_is_someones_birthday\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/birthday01.mp3\n delay: 00:00:16\n - conditions:\n - condition: state\n entity_id: binary_sensor.halloween_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/ghost01.mp3\n delay: 00:00:08\n - conditions:\n - condition: state\n entity_id: binary_sensor.thanksgiving_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/turkey01.mp3\n delay: 00:00:08\n - conditions:\n - condition: state\n entity_id: binary_sensor.christmas_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/christmas01.mp3\n delay: 00:00:08", "config": [ { "name": "kitchen door window sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_3", "device_id": null } }, { "name": "front door window sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_7", "device_id": null } }, { "name": "laundry door window sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5", "device_id": null } }, { "name": "office door window sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open", "device_id": null } }, { "name": "halloween month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.halloween_month", "device_id": null } }, { "name": "thanksgiving month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.thanksgiving_month", "device_id": null } }, { "name": "christmas month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.christmas_month", "device_id": null } }, { "name": "birthday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.today_is_someones_birthday", "device_id": null } } ] }, { "id": "announce_door_closed_event", "automation": "- alias: Announce Door Closed (Event)\n id: announce_door_closed_event\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open_7\n - binary_sensor.z_wave_door_window_sensor_window_door_is_open_3\n - binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5\n to: 'off'\n mode: queued\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.today_is_someones_birthday\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/birthday01.mp3\n delay: 00:00:16\n - conditions:\n - condition: state\n entity_id: binary_sensor.halloween_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/howl01.mp3\n delay: 00:00:08\n - conditions:\n - condition: state\n entity_id: binary_sensor.thanksgiving_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/turkey01.mp3\n delay: 00:00:08\n - conditions:\n - condition: state\n entity_id: binary_sensor.christmas_month\n state: 'on'\n sequence:\n - action: script.sonos_play_file\n data:\n audio_url: audio/christmas01.mp3\n delay: 00:00:08", "config": [ { "name": "kitchen door window sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_3", "device_id": null } }, { "name": "front door window sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open_7", "device_id": null } }, { "name": "laundry door window sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_access_control_window_door_is_open_5", "device_id": null } }, { "name": "office door window sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_window_door_is_open", "device_id": null } }, { "name": "halloween month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.halloween_month", "device_id": null } }, { "name": "thanksgiving month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.thanksgiving_month", "device_id": null } }, { "name": "christmas month sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.christmas_month", "device_id": null } }, { "name": "birthday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.today_is_someones_birthday", "device_id": null } } ] }, { "id": "turn_off_air_purifier_weekdays", "automation": "- alias: Turn Off Air Purifier Weekdays\n id: turn_off_air_purifier_weekdays\n triggers:\n trigger: time\n at: 07:00:00\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n action: script.air_purifier", "config": [] }, { "id": "turn_off_air_purifier_weekends", "automation": "- alias: Turn Off Air Purifier Weekends\n id: turn_off_air_purifier_weekends\n triggers:\n trigger: time\n at: 09:00:00\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n action: script.air_purifier", "config": [] }, { "id": "motion_turn_off_guest_bathroom_fan_when_no_motion_detected", "automation": "- alias: Motion - Turn Off Guest Bathroom Fan When No Motion Detected\n id: motion_turn_off_guest_bathroom_fan_when_no_motion_detected\n triggers:\n - trigger: state\n entity_id: binary_sensor.4_in_1_sensor_motion_detection\n from: 'on'\n to: 'off'\n for: 00:05:00\n conditions:\n - condition: state\n entity_id: switch.double_switch_1\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.double_switch_1", "config": [ { "name": "motion sensor", "room": "guest_bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.4_in_1_sensor_motion_detection", "device_id": null } }, { "name": "guest bathroom fan switch", "room": "guest_bathroom", "type": "switch", "id": { "entity_id": "switch.double_switch_1", "device_id": null } } ] }, { "id": "turn_off_main_bathroom_fan_after_period_of_time", "automation": "- alias: Turn Off Main Bathroom Fan After Period Of Time\n id: turn_off_main_bathroom_fan_after_period_of_time\n description: 'Turn off the fan if it''s been on for 20 minutes. There isn''t motion\n detection available.\n\n '\n triggers:\n - trigger: state\n entity_id: switch.double_switch_1_2\n to: 'on'\n for: 00:20:00\n conditions: []\n actions:\n - action: switch.turn_off\n entity_id: switch.double_switch_1_2", "config": [ { "name": "guest bathroom fan switch", "room": "guest_bathroom", "type": "switch", "id": { "entity_id": "switch.double_switch_1", "device_id": null } }, { "name": "main bathroom fan switch", "room": "main_bathroom", "type": "switch", "id": { "entity_id": "switch.double_switch_1_2", "device_id": null } } ] }, { "id": "turn_on_light_to_wake_us_up", "automation": "- alias: Turn on Lights to Wake Us Up\n id: turn_on_light_to_wake_us_up\n description: Fade lights in on weekday mornings to simulate a sunrise next to our\n faces to wake us up.\n initial_state: true\n triggers:\n trigger: time\n at: 06:00:00\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n action: light.turn_on\n data:\n entity_id: light.hue_white_lamp_1\n brightness: 255\n transition: 1800", "config": [ { "name": "lee bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_1", "device_id": null } } ] }, { "id": "turn_off_lights_before_work", "automation": "- alias: Turn Off Lights Before Work\n id: turn_off_lights_before_work\n description: Turn off lights weekday mornings after sunrise.\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 6.0\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n action: light.turn_off\n entity_id: light.hue_white_lamp_1", "config": [ { "name": "lee bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_1", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "Turn On Lights Before Sunset", "automation": "- alias: Turn On Lights Before Sunset\n description: Gradually fade in lights as the sun sets into the night.\n initial_state: true\n triggers:\n trigger: sun\n event: sunset\n offset: '-1:15:00'\n actions:\n action: light.turn_on\n data:\n entity_id:\n - light.hue_white_lamp_1\n - light.hue_white_lamp_2\n brightness: 255\n transition: 1500", "config": [ { "name": "lee bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_1", "device_id": null } }, { "name": "andrei bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_2", "device_id": null } } ] }, { "id": "Turn Off Lee's Bedside at Night", "automation": "- alias: Turn Off Lee's Bedside at Night\n initial_state: true\n triggers:\n trigger: time\n at: '20:00:00'\n actions:\n action: light.turn_off\n data:\n entity_id: light.hue_white_lamp_2\n transition: 1800", "config": [ { "name": "andrei bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_2", "device_id": null } } ] }, { "id": "turn_off_andrei_s_bedside_by_9_00pm", "automation": "- alias: Turn Off Andrei's Bedside By 9:00pm\n id: turn_off_andrei_s_bedside_by_9_00pm\n triggers:\n trigger: time\n at: '20:30:00'\n actions:\n action: light.turn_off\n data:\n entity_id: light.hue_white_lamp_1\n transition: 1800", "config": [ { "name": "lee bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_1", "device_id": null } } ] }, { "id": "turn_on_night_light_at_sunset", "automation": "- alias: Turn On Night-Light at Sunset\n id: turn_on_night_light_at_sunset\n initial_state: true\n triggers:\n trigger: sun\n event: sunset\n offset: -0:30:00\n actions:\n action: light.turn_on\n data:\n entity_id: light.controller_rgb_44_key_ir_cde6d9\n brightness: 13", "config": [ { "name": "night light", "room": null, "type": "light", "id": { "entity_id": "light.controller_rgb_44_key_ir_cde6d9", "device_id": null } } ] }, { "id": "turn_off_night_light_after_sunrise", "automation": "- alias: Turn Off Night-Light After Sunrise\n id: turn_off_night_light_after_sunrise\n description: Turn off night-light 15 minutes after sunrise.\n initial_state: true\n triggers:\n trigger: sun\n event: sunrise\n offset: 00:15:00\n actions:\n action: light.turn_off\n data:\n entity_id: light.controller_rgb_44_key_ir_cde6d9", "config": [ { "name": "night light", "room": null, "type": "light", "id": { "entity_id": "light.controller_rgb_44_key_ir_cde6d9", "device_id": null } } ] }, { "id": "Turn On Dining Room Lamp Before Sunset", "automation": "- alias: Turn On Dining Room Lamp Before Sunset\n initial_state: true\n triggers:\n trigger: sun\n event: sunset\n offset: '-1:00:00'\n actions:\n action: switch.turn_on\n data:\n entity_id: switch.tp_link_smart_plug_ac23", "config": [ { "name": "dining room lamp", "room": "dining_room", "type": "switch", "id": { "entity_id": "switch.tp_link_smart_plug_ac23", "device_id": null } } ] }, { "id": "Turn Off Dining Room Lamp", "automation": "- alias: Turn Off Dining Room Lamp\n initial_state: true\n triggers:\n trigger: time\n at: '22:30:00'\n actions:\n action: switch.turn_off\n data:\n entity_id: switch.tp_link_smart_plug_ac23", "config": [ { "name": "dining room lamp", "room": "dining_room", "type": "switch", "id": { "entity_id": "switch.tp_link_smart_plug_ac23", "device_id": null } } ] }, { "id": "Toggle Live Sign When Busy in Teams", "automation": "- alias: Toggle Live Sign When Busy in Teams\n triggers:\n trigger: state\n entity_id: binary_sensor.teams_on_call\n actions:\n - action: switch.turn_{{ trigger.to_state.state }}\n target:\n entity_id: switch.tp_link_smart_plug_d6d2", "config": [ { "name": "teams live sign", "room": "office", "type": "switch", "id": { "entity_id": "switch.tp_link_smart_plug_d6d2", "device_id": null } }, { "name": "teams on call sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.teams_on_call", "device_id": null } } ] }, { "id": "turn_on_both_living_room_bookshelf_lamps_from_single_switch", "automation": "- alias: Turn On Both Living Room Bookshelf Lamps From Single Switch\n id: turn_on_both_living_room_bookshelf_lamps_from_single_switch\n description: Physically toggling the one reachable switch should toggle the other\n switch in tandem\n triggers:\n - trigger: state\n entity_id: switch.tp_link_smart_plug_ac7b\n actions:\n - action: switch.turn_{{ trigger.to_state.state }}\n target:\n entity_id: switch.tp_link_smart_plug_1106", "config": [ { "name": "living room bookshelf lamp 1", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.tp_link_smart_plug_ac7b", "device_id": null } }, { "name": "living room bookshelf lamp 2", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.tp_link_smart_plug_1106", "device_id": null } } ] }, { "id": "motion_turn_on_guest_bathroom_when_motion_detected_daytime", "automation": "- alias: Motion - Turn On Guest Bathroom When Motion Detected Daytime\n id: motion_turn_on_guest_bathroom_when_motion_detected_daytime\n triggers:\n - trigger: state\n entity_id: binary_sensor.4_in_1_sensor_motion_detection\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.double_switch\n state: 'off'\n - condition: time\n after: 06:00:00\n before: '22:15:00'\n actions:\n - action: light.turn_on\n entity_id: light.double_switch\n data:\n brightness_pct: 100", "config": [ { "name": "motion sensor", "room": "guest_bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.4_in_1_sensor_motion_detection", "device_id": null } }, { "name": "guest bathroom light", "room": "guest_bathroom", "type": "light", "id": { "entity_id": "light.double_switch", "device_id": null } } ] }, { "id": "motion_turn_on_guest_bathroom_when_motion_detected_night", "automation": "- alias: Motion - Turn On Guest Bathroom When Motion Detected Night\n id: motion_turn_on_guest_bathroom_when_motion_detected_night\n triggers:\n - trigger: state\n entity_id: binary_sensor.4_in_1_sensor_motion_detection\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.double_switch\n state: 'off'\n - condition: time\n after: '22:15:00'\n before: 06:15:00\n actions:\n - action: light.turn_on\n entity_id: light.double_switch\n data:\n brightness_pct: 21", "config": [ { "name": "motion sensor", "room": "guest_bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.4_in_1_sensor_motion_detection", "device_id": null } }, { "name": "guest bathroom light", "room": "guest_bathroom", "type": "light", "id": { "entity_id": "light.double_switch", "device_id": null } } ] }, { "id": "motion_turn_off_guest_bathroom_when_no_motion_detected", "automation": "- alias: Motion - Turn Off Guest Bathroom When No Motion Detected\n id: motion_turn_off_guest_bathroom_when_no_motion_detected\n triggers:\n - trigger: state\n entity_id: binary_sensor.4_in_1_sensor_motion_detection\n from: 'on'\n to: 'off'\n for: 00:03:00\n conditions:\n - condition: state\n entity_id: light.double_switch\n state: 'on'\n actions:\n - action: light.turn_off\n entity_id: light.double_switch", "config": [ { "name": "motion sensor", "room": "guest_bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.4_in_1_sensor_motion_detection", "device_id": null } }, { "name": "guest bathroom light", "room": "guest_bathroom", "type": "light", "id": { "entity_id": "light.double_switch", "device_id": null } } ] }, { "id": "motion_send_camera_snapshot_notification_on_motion", "automation": "- alias: Motion - Send Camera Snapshot Notification On Motion\n id: motion_send_camera_snapshot_notification_on_motion\n description: 'Send a notification to the Companion App with a camera snapshot.\n\n '\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.office_motion_alarm\n to: 'on'\n variables:\n camera_name: camera.office_main\n - trigger: state\n entity_id: binary_sensor.laundry_motion_alarm\n to: 'on'\n variables:\n camera_name: camera.laundry_main\n - trigger: state\n entity_id: binary_sensor.front_door_smart_motion_human\n to: 'on'\n variables:\n camera_name: camera.front_door_main\n variables:\n snapshot_filename: '{{ camera_name }}-{{ now().strftime(''%Y%m%d-%H%M%S.%f'')\n }}.jpg\n\n '\n snapshot_absolute_path: www/images/snapshots/{{ snapshot_filename }}\n snapshot_base_url: secret camera_snapshots_public_url\n actions:\n - delay:\n seconds: 4\n - action: camera.snapshot\n data:\n entity_id: '{{ camera_name }}'\n filename: '{{ snapshot_absolute_path }}'\n - action: notify.mobile_apps\n data:\n title: Camera Motion Detected\n message: ''\n data:\n image: '{{ snapshot_base_url }}/{{ snapshot_filename }}'", "config": [ { "name": "office motion alarm", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_motion_alarm", "device_id": null } }, { "name": "laundry motion alarm", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.laundry_motion_alarm", "device_id": null } }, { "name": "front door motion sensor", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.front_door_smart_motion_human", "device_id": null } }, { "name": "office camera", "room": "office", "type": "camera", "id": { "entity_id": "camera.office_main", "device_id": null } }, { "name": "laundry camera", "room": "laundry", "type": "camera", "id": { "entity_id": "camera.laundry_main", "device_id": null } }, { "name": "front door camera", "room": "front", "type": "camera", "id": { "entity_id": "camera.front_door_main", "device_id": null } } ] }, { "id": "laundry_flooding", "automation": "- alias: Laundry flooding\n id: laundry_flooding\n triggers:\n trigger: state\n entity_id: binary_sensor.flood_sensor_water_leak_state\n from: 'off'\n to: 'on'\n for: 00:00:15\n actions:\n - action: notify.email\n data_template:\n title: Laundry room is flooding\n message: You should probably check it out.\n - action: script.sonos_say\n data:\n message: Crikey! We've sprunga leak in the laundry room! I said crikey! We've\n sprunga leak in the laundry room!\n delay: 00:00:15\n - action: notify.mobile_apps\n data:\n message: The laundry room is flooding", "config": [ { "name": "laundry flood sensor", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.flood_sensor_water_leak_state", "device_id": null } } ] }, { "id": "low_battery_notification", "automation": "- alias: Low Battery Notification\n id: low_battery_notification\n description: Notify of low battery level in devices which have batteries.\n mode: parallel\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.flood_sensor_low_battery_level\n - binary_sensor.z_wave_door_window_sensor_low_battery_level\n - binary_sensor.z_wave_door_window_sensor_low_battery_level_2\n - binary_sensor.z_wave_door_window_sensor_low_battery_level_4\n - binary_sensor.z_wave_door_window_sensor_low_battery_level_5\n from: 'off'\n to: 'on'\n for:\n hours: 1\n - trigger: numeric_state\n entity_id:\n - sensor.4_in_1_sensor_battery_level\n below: 11\n for:\n hours: 8\n - trigger: numeric_state\n entity_id:\n - sensor.zcombo_g_smoke_co_alarm_battery_level\n - sensor.zcombo_g_smoke_co_alarm_battery_level_2\n - sensor.zcombo_g_smoke_co_alarm_battery_level_3\n below: 78\n for:\n hours: 8\n actions:\n - action: notify.mobile_apps\n data:\n message: The {{ trigger.to_state.attributes.friendly_name }} is Low\n data:\n tag: bettery\n group: battery\n - action: notify.email\n data_template:\n title: Low Battery Detected\n message: The {{ trigger.to_state.attributes.friendly_name }} is low. You should\n probably check it out.", "config": [ { "name": "flood sensor battery", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.flood_sensor_low_battery_level", "device_id": null } }, { "name": "door window sensor battery 1", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_low_battery_level", "device_id": null } }, { "name": "door window sensor battery 2", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_low_battery_level_2", "device_id": null } }, { "name": "door window sensor battery 4", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_low_battery_level_4", "device_id": null } }, { "name": "door window sensor battery 5", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.z_wave_door_window_sensor_low_battery_level_5", "device_id": null } }, { "name": "motion sensor battery", "room": "guest_bathroom", "type": "sensor", "id": { "entity_id": "sensor.4_in_1_sensor_battery_level", "device_id": null } }, { "name": "workshop smoke alarm battery", "room": "workshop", "type": "sensor", "id": { "entity_id": "sensor.zcombo_g_smoke_co_alarm_battery_level", "device_id": null } }, { "name": "laundry smoke alarm battery", "room": "laundry", "type": "sensor", "id": { "entity_id": "sensor.zcombo_g_smoke_co_alarm_battery_level_2", "device_id": null } }, { "name": "hallway smoke alarm battery", "room": "hallway", "type": "sensor", "id": { "entity_id": "sensor.zcombo_g_smoke_co_alarm_battery_level_3", "device_id": null } } ] }, { "id": "smoke_alarm_alert", "automation": "- alias: Smoke Alarm - Alert\n id: smoke_alarm_alert\n triggers:\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Smoke\n location_detected: workshop\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Carbon monoxide\n location_detected: workshop\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Smoke\n location_detected: laundry\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Carbon monoxide\n location_detected: laundry\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Smoke\n location_detected: hallway\n - trigger: state\n entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3\n to: 'on'\n for: 00:00:15\n variables:\n type_detected: Carbon monoxide\n location_detected: hallway\n actions:\n - action: notify.email\n data_template:\n title: Alert! {{ type_detected }} detected in {{ location_detected }} room\n message: '{{ type_detected }} was detected in the {{ location_detected }} room!\n Investigate immediately and evacuate!'\n - action: script.sonos_say\n data:\n message: '{{ type_detected }} was detected in the {{ location_detected }} room!\n Investigate immediately and evacuate!'\n delay: 00:00:06\n - action: notify.mobile_apps\n data:\n message: Alert! {{ type_detected }} detected in {{ location_detected }} room!\n Investigate immediately and evacuate!", "config": [ { "name": "workshop smoke detector", "room": "workshop", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected", "device_id": null } }, { "name": "workshop carbon monoxide detector", "room": "workshop", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected", "device_id": null } }, { "name": "laundry smoke detector", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2", "device_id": null } }, { "name": "laundry carbon monoxide detector", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2", "device_id": null } }, { "name": "hallway smoke detector", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3", "device_id": null } }, { "name": "hallway carbon monoxide detector", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3", "device_id": null } } ] }, { "id": "smoke_alarm_turn_on_lights", "automation": "- alias: Smoke Alarm - Turn On Lights\n id: smoke_alarm_turn_on_lights\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected\n - binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected\n - binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2\n - binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2\n - binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3\n - binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3\n to: 'on'\n for: 00:00:15\n actions:\n action: light.turn_on\n data:\n entity_id:\n - light.hue_color_lamp_1\n - light.hue_white_lamp_1\n - light.hue_white_lamp_2\n - light.double_switch\n - light.double_switch_2\n - switch.living_room_bookshelf_lamps\n - switch.in_wall_paddle_switch_qfsw_500s_2", "config": [ { "name": "lee bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_1", "device_id": null } }, { "name": "andrei bedside lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_white_lamp_2", "device_id": null } }, { "name": "guest bathroom light", "room": "guest_bathroom", "type": "light", "id": { "entity_id": "light.double_switch", "device_id": null } }, { "name": "workshop smoke detector", "room": "workshop", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected", "device_id": null } }, { "name": "workshop carbon monoxide detector", "room": "workshop", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected", "device_id": null } }, { "name": "laundry smoke detector", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2", "device_id": null } }, { "name": "laundry carbon monoxide detector", "room": "laundry", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2", "device_id": null } }, { "name": "hallway smoke detector", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3", "device_id": null } }, { "name": "hallway carbon monoxide detector", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3", "device_id": null } }, { "name": "color lamp", "room": "bedroom", "type": "light", "id": { "entity_id": "light.hue_color_lamp_1", "device_id": null } }, { "name": "guest bathroom light 2", "room": "guest_bathroom", "type": "light", "id": { "entity_id": "light.double_switch_2", "device_id": null } }, { "name": "living room bookshelf lamps", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_bookshelf_lamps", "device_id": null } }, { "name": "in wall paddle switch", "room": null, "type": "switch", "id": { "entity_id": "switch.in_wall_paddle_switch_qfsw_500s_2", "device_id": null } } ] }, { "id": "system_clean_up_camera_snapshots_directory_periodically", "automation": "- alias: System - Clean Up Camera Snapshots Directory Periodically\n id: system_clean_up_camera_snapshots_directory_periodically\n description: 'Daily delete of all camera shapshots files older than 3 days.\n\n '\n triggers:\n - trigger: time\n at: 05:27:18\n actions:\n - action: shell_command.clean_camera_snapshots\n data:\n days_threshold: 3", "config": [] } ]