- id: '1601034054491' alias: 'alarm: trigger when external door opened whilst armed' description: '' trigger: - platform: state entity_id: - binary_sensor.back_door_contact - binary_sensor.front_door_contact - binary_sensor.shed_door_contact - binary_sensor.shed_motion_occupancy to: 'on' condition: - condition: or conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_away - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_night - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_custom_bypass action: - service: alarm_control_panel.alarm_trigger entity_id: alarm_control_panel.ha_alarm mode: single - id: '1601034054492' alias: 'alarm: trigger when motion detected whilst armed_away' description: '' trigger: - platform: state entity_id: - binary_sensor.living_room_motion_occupancy - binary_sensor.hallway_motion_occupancy - binary_sensor.study_motion_occupancy - binary_sensor.kitchen_motion_occupancy - binary_sensor.laundry_motion_occupancy - binary_sensor.spare_room_motion_occupancy - binary_sensor.bedroom_motion_occupancy to: 'on' condition: - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_away action: - service: alarm_control_panel.alarm_trigger entity_id: alarm_control_panel.ha_alarm mode: single - id: '160103405444873' alias: 'alarm: trigger when motion detected whilst armed_custom_bypass' description: '' trigger: - platform: state entity_id: - binary_sensor.study_motion_occupancy - binary_sensor.spare_room_motion_occupancy to: 'on' condition: - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_custom_bypass action: - service: alarm_control_panel.alarm_trigger entity_id: alarm_control_panel.ha_alarm mode: single - id: '83294732987' alias: 'alarm: save state before trigger' description: '' mode: single triggers: - trigger: state entity_id: - alarm_control_panel.ha_alarm from: - armed_night - armed_away - armed_custom_bypass to: pending conditions: [] actions: - action: input_select.select_option metadata: {} data: option: '{{ trigger.from_state.state }}' target: entity_id: input_select.alarm_state_before_trigger - id: '1601034697138' alias: 'alarm: send notification when triggered' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: triggered conditions: [] action: - service: notify.everyone data: title: Alarm Triggered message: The alarm was triggered at {{ now().strftime('%I:%M %p') }}{% if states('sensor.recently_triggered_sensors') %} by {{ states('sensor.recently_triggered_sensors') }}{% endif %} data: group: alarm-status url: /lovelace/security entity_id: camera.front_yard_high actions: - action: DISARM_ALARM title: Disarm authenticationRequired: true destructive: true push: sound: name: default critical: 1 volume: '{%- if is_state(''input_select.alarm_state_before_trigger'', ''armed_night'') -%} 0.5 {%- else -%} 0 {%- endif -%}' mode: single - id: '1601035010807' alias: 'alarm: send notification on disarm if triggered or pending' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: disarmed condition: - condition: or conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: pending - condition: state entity_id: alarm_control_panel.ha_alarm state: triggered action: - service: notify.everyone data: title: Alarm Disarmed message: The alarm was disarmed at {{ now().strftime('%I:%M %p') }} data: group: alarm-status tag: alarm-status mode: single - id: '1601035037271' alias: 'alarm: send notification when pending' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: pending condition: [] action: - service: notify.everyone data: title: Alarm Pending message: The alarm was pending at {{ now().strftime('%I:%M %p') }}{% if states('sensor.recently_triggered_sensors') %} by {{ states('sensor.recently_triggered_sensors') }}{% endif %} data: url: /lovelace/security entity_id: camera.front_yard_high group: alarm-status tag: alarm-status actions: - action: DISARM_ALARM title: Disarm authenticationRequired: true destructive: true mode: single - id: '1601035065291' alias: 'alarm: send notification when armed' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: - armed_away - armed_night - armed_custom_bypass condition: [] action: - service: notify.everyone data: title: Alarm Armed message: '{% set state = trigger.to_state.state %} {% set state_names = {''armed_away'': ''armed for Away'', ''armed_night'': ''armed for Night'', ''armed_custom_bypass'': ''armed for Doors and Shed''} %} The alarm was {{ state_names[state] }} at {{ now().strftime(''%I:%M %p'') }} ' data: group: alarm-status tag: alarm-status actions: - action: DISARM_ALARM title: Disarm authenticationRequired: true destructive: true mode: single - id: '1601035419737' alias: 'alarm: disarm when everyone arrives home and armed/triggered/pending' description: '' trigger: - platform: state entity_id: group.all_people to: home condition: - condition: not conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_night action: - service: alarm_control_panel.alarm_disarm data: code: secret alarm_code entity_id: alarm_control_panel.ha_alarm mode: single - id: '1601035712824' alias: 'alarm: arm_away when everyone leaves home and disarmed' description: '' trigger: - platform: state entity_id: group.all_people to: not_home condition: - condition: state entity_id: alarm_control_panel.ha_alarm state: disarmed - condition: state entity_id: input_boolean.guest_mode state: 'off' action: - if: - condition: state entity_id: binary_sensor.internal_motion_expected state: 'on' then: - action: alarm_control_panel.alarm_arm_custom_bypass data: {} entity_id: alarm_control_panel.ha_alarm else: - action: alarm_control_panel.alarm_arm_away data: {} entity_id: alarm_control_panel.ha_alarm mode: single - id: '1601036735034' alias: 'alarm: disarm when mobile app disarm action fired' description: '' trigger: - platform: event event_type: ios.notification_action_fired event_data: actionName: DISARM_ALARM condition: [] action: - service: alarm_control_panel.alarm_disarm data: code: secret alarm_code entity_id: alarm_control_panel.ha_alarm mode: single - id: '1601103558889' alias: 'alarm: arm_night when no motion/activity detected' description: '' trigger: - platform: state entity_id: - binary_sensor.living_room_motion_occupancy - binary_sensor.hallway_motion_occupancy - binary_sensor.study_motion_occupancy - binary_sensor.laundry_motion_occupancy - binary_sensor.front_door_contact - binary_sensor.back_door_contact to: - 'on' - 'off' condition: - condition: time after: '22:30:00' before: 06:00:00 - condition: not conditions: - condition: state entity_id: media_player.living_room_tv state: 'off' action: - delay: 00:15:00 - condition: and conditions: - condition: state entity_id: binary_sensor.living_room_motion_occupancy state: 'off' - condition: state entity_id: binary_sensor.hallway_motion_occupancy state: 'off' - condition: state entity_id: binary_sensor.study_motion_occupancy state: 'off' - condition: state entity_id: binary_sensor.laundry_motion_occupancy state: 'off' - condition: time after: '22:30:00' before: 06:00:00 - condition: state entity_id: alarm_control_panel.ha_alarm state: disarmed - service: alarm_control_panel.alarm_arm_night entity_id: alarm_control_panel.ha_alarm mode: restart - id: '1601101160650' alias: 'alarm: disarm night at 7am or when internal motion detected' description: '' trigger: - platform: state entity_id: - binary_sensor.hallway_motion_occupancy to: 'on' - platform: time at: 07:00:00 condition: - condition: state entity_id: alarm_control_panel.ha_alarm state: armed_night action: - service: alarm_control_panel.alarm_disarm data: code: secret alarm_code entity_id: alarm_control_panel.ha_alarm mode: single - id: '1601104910978' alias: 'alarm: play sound on pending/triggered (armed_away)' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: pending - platform: state entity_id: alarm_control_panel.ha_alarm to: triggered condition: - condition: state entity_id: input_select.alarm_state_before_trigger state: armed_away action: - choose: - conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: pending sequence: - service: script.set_siren data: siren_entity: switch.study_siren_alarm melody_entity: select.study_siren_melody melody: '8' volume_entity: select.study_siren_volume volume: medium duration_entity: number.study_siren_duration duration: 1800 - conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: triggered sequence: - service: script.set_siren data: siren_entity: switch.study_siren_alarm melody_entity: select.study_siren_melody melody: '6' volume_entity: select.study_siren_volume volume: high duration_entity: number.study_siren_duration duration: 1800 default: [] - delay: 00:00:02 - wait_template: '{{ states(''alarm_control_panel.ha_alarm'') not in (''pending'', ''triggered'') }}' continue_on_timeout: false - service: switch.turn_off target: entity_id: switch.study_siren_alarm mode: restart - id: '16011049109782' alias: 'alarm: play sound on pending/triggered (armed_night)' description: '' trigger: - platform: state entity_id: alarm_control_panel.ha_alarm to: pending - platform: state entity_id: alarm_control_panel.ha_alarm to: triggered condition: - condition: state entity_id: input_select.alarm_state_before_trigger state: armed_night action: - choose: - conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: pending sequence: - service: script.set_siren data: siren_entity: switch.study_siren_alarm melody_entity: select.study_siren_melody melody: '8' volume_entity: select.study_siren_volume volume: medium duration_entity: number.study_siren_duration duration: 1800 - conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: triggered sequence: - service: script.set_siren data: siren_entity: switch.study_siren_alarm melody_entity: select.study_siren_melody melody: '6' volume_entity: select.study_siren_volume volume: high duration_entity: number.study_siren_duration duration: 1800 default: [] - delay: 00:00:02 - wait_template: '{{ states(''alarm_control_panel.ha_alarm'') not in (''pending'', ''triggered'') }}' continue_on_timeout: false - service: switch.turn_off target: entity_id: switch.study_siren_alarm mode: restart - id: '1753839651513' alias: 'alarm: rearm with custom bypass when internal motion expected' description: '' triggers: - trigger: state entity_id: - binary_sensor.internal_motion_expected to: 'on' conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: - pending - triggered - armed_away actions: - action: alarm_control_panel.alarm_arm_custom_bypass metadata: {} data: {} target: entity_id: alarm_control_panel.ha_alarm mode: single - id: '1753839651577' alias: 'alarm: rearm with armed_away when internal motion not expected' description: '' triggers: - trigger: state entity_id: - binary_sensor.internal_motion_expected to: 'off' conditions: - condition: state entity_id: alarm_control_panel.ha_alarm state: - pending - triggered - armed_custom_bypass actions: - action: alarm_control_panel.alarm_arm_away metadata: {} data: {} target: entity_id: alarm_control_panel.ha_alarm mode: single - alias: 'dog_door: allow pets to leave in morning' id: '2398473894732472362' mode: single trigger: - platform: time at: 07:00:00 condition: - condition: state entity_id: group.all_people state: home action: - service: lock.unlock data: {} target: entity_id: lock.backyard_locked_in - id: '1753871589158' alias: vacuum 4 way button switch description: '' use_blueprint: path: rdeangel/zigbee2mqtt-tuya-4-button-switch-mqtt-device-trigger_rdeangel.yaml input: zigbee_device: 27af488873a369503ad82cc03d2dd6c5 button_one_short_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_6 button_one_double_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_8 button_one_long_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_7 button_two_short_press: - action: button.press metadata: {} data: {} target: entity_id: - button.x40_ultra_shortcut_3 button_two_long_press: - action: button.press metadata: {} data: {} target: entity_id: - button.x40_ultra_shortcut_3 button_three_short_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_1 button_three_long_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_4 button_four_short_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_2 button_four_long_press: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_5 - id: '1754297735451' alias: 'backyard: turn on fountain on person detected' description: '' triggers: - trigger: state entity_id: - binary_sensor.shed_fp2_presence_sensor_deck to: 'on' for: hours: 0 minutes: 2 seconds: 0 conditions: - condition: state entity_id: binary_sensor.back_yard_person_detected_last_hour state: 'on' - condition: state entity_id: group.all_people state: home - condition: sun after: sunrise - condition: time before: '21:00:00' - condition: state entity_id: switch.front_garden_fountain state: 'off' actions: - action: switch.turn_on metadata: {} data: {} target: entity_id: switch.front_garden_fountain - wait_for_trigger: - trigger: state entity_id: - binary_sensor.back_yard_person_detected to: 'off' for: hours: 0 minutes: 30 seconds: 0 timeout: hours: 2 minutes: 0 seconds: 0 milliseconds: 0 - action: switch.turn_off metadata: {} data: {} target: entity_id: switch.front_garden_fountain mode: single - id: '1754298218488' alias: 'backyard: turn on ambiance on door open' description: '' triggers: - trigger: state entity_id: - binary_sensor.back_door_contact to: 'on' conditions: - condition: numeric_state entity_id: sensor.ecowitt_hub_solar_lux below: 500 - condition: time before: '23:59:00' - condition: state entity_id: light.back_yard_ambiance state: 'off' actions: - action: light.turn_on metadata: {} data: {} target: entity_id: light.back_yard_ambiance - wait_for_trigger: - trigger: state entity_id: - binary_sensor.back_yard_person_detected to: 'off' for: hours: 0 minutes: 15 seconds: 0 - trigger: state entity_id: - light.back_yard_ambiance to: 'off' timeout: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 - action: light.turn_off metadata: {} data: {} target: entity_id: light.back_yard_ambiance mode: restart - id: '1754298435531' alias: 'backyard: turn on ambiance on person detection' description: '' triggers: - trigger: numeric_state entity_id: - sensor.ecowitt_hub_solar_lux for: hours: 0 minutes: 5 seconds: 0 below: 500 - trigger: state entity_id: - binary_sensor.back_yard_person_detected to: 'on' conditions: - condition: time before: '23:59:00' - condition: numeric_state entity_id: sensor.ecowitt_hub_solar_lux below: 500 - condition: state entity_id: binary_sensor.back_yard_person_detected_last_hour state: 'on' - condition: state entity_id: light.back_yard_ambiance state: 'off' actions: - action: light.turn_on metadata: {} data: {} target: entity_id: light.back_yard_ambiance - wait_for_trigger: - trigger: state entity_id: - binary_sensor.back_yard_person_detected to: 'off' for: hours: 0 minutes: 15 seconds: 0 - trigger: state entity_id: - light.back_yard_ambiance to: 'off' timeout: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 - action: light.turn_off metadata: {} data: {} target: entity_id: light.back_yard_ambiance mode: single - id: '1754299925764' alias: 'front door: lock front door after 15m unlock timeout with door closed' description: '' triggers: - trigger: state entity_id: - binary_sensor.front_door_contact to: 'off' for: hours: 0 minutes: 15 seconds: 0 - trigger: state entity_id: - lock.front_door to: unlocked for: hours: 0 minutes: 15 seconds: 0 conditions: - condition: state entity_id: lock.front_door state: unlocked - condition: state entity_id: binary_sensor.front_door_contact state: 'off' actions: - action: lock.lock metadata: {} data: {} target: entity_id: lock.front_door - action: notify.mobile_app_nicks_iphone metadata: {} data: title: Front Door message: Front door was locked after timeout mode: single - id: '1592101534049328' alias: 'laundry: broadcast on dryer completed' description: '' mode: single trigger: - entity_id: binary_sensor.dryer from: 'on' platform: state to: 'off' condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: binary_sensor.in_bed state: 'off' action: - repeat: count: 3 sequence: - service: media_player.turn_on data: {} target: entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod - service: media_player.volume_set entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: volume_level: 0.5 - service: tts.google_translate_say entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: message: The dryer has finished! - delay: 00:25:00 - id: '1592102651795' alias: 'laundry: broadcast on washing machine completed whilst away when arriving home' description: '' trigger: - entity_id: binary_sensor.washing_machine from: 'on' platform: state to: 'off' condition: - condition: state entity_id: group.all_people state: not_home action: - wait_template: '{{ is_state("group.all_people", "home") }}' timeout: '24:00:00' - delay: 00:05:00 - service: media_player.turn_on data: {} target: entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod - service: media_player.volume_set entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: volume_level: 0.5 - service: tts.google_translate_say entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: message: The washing machine finished whilst away - id: '1592101514693' alias: 'laundry: broadcast on washing machine completed' description: '' mode: single trigger: - entity_id: binary_sensor.washing_machine from: 'on' platform: state to: 'off' condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: binary_sensor.in_bed state: 'off' action: - repeat: count: 3 sequence: - service: media_player.turn_on data: {} target: entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod - service: media_player.volume_set entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: volume_level: 0.5 - service: tts.google_translate_say entity_id: - media_player.living_room_homepod - media_player.bedroom_homepod data: message: The washing machine has finished! - delay: 00:25:00 - id: '1592101534043894789' alias: 'laundry: cancel broadcasts' description: '' mode: single trigger: - platform: state entity_id: group.all_people to: not_home - platform: state entity_id: binary_sensor.in_bed to: 'on' - platform: state entity_id: binary_sensor.laundry_motion_occupancy to: 'on' action: - choose: - conditions: - condition: state entity_id: automation.laundry_broadcast_on_dryer_completed state: 'on' sequence: - service: automation.turn_off target: entity_id: automation.laundry_broadcast_on_dryer_completed - service: automation.turn_on target: entity_id: automation.laundry_broadcast_on_dryer_completed - choose: - conditions: - condition: state entity_id: automation.when_washing_machine_completed_broadcast state: 'on' sequence: - service: automation.turn_off target: entity_id: automation.when_washing_machine_completed_broadcast - service: automation.turn_on target: entity_id: automation.when_washing_machine_completed_broadcast - id: '1585648623740' alias: 'every hour, call the check-in URL ' description: '' trigger: - hours: '*' minutes: '0' platform: time_pattern seconds: '0' condition: [] action: - data: {} service: rest_command.check_in - id: '1680575754656' alias: 'osmo: clean bedrooms on weekday afternoons' description: '' trigger: - platform: time at: '17:15:00' condition: - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: not conditions: - condition: state entity_id: vacuum.crystal state: cleaning - condition: time weekday: - mon - tue - wed - thu - fri action: - choose: - conditions: - condition: time weekday: - wed sequence: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_4 default: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_1 mode: single - id: '1680575875557' alias: 'osmo: clean living areas before bed' description: '' trigger: - platform: time at: '22:15:00' condition: - condition: state entity_id: group.all_people state: home - condition: not conditions: - condition: state entity_id: vacuum.crystal state: cleaning - condition: or conditions: - condition: state entity_id: media_player.living_room_tv state: 'on' - condition: state entity_id: binary_sensor.some_lights_on state: 'on' action: - if: - condition: state entity_id: binary_sensor.lounge_occupancy_presence state: 'on' then: - wait_for_trigger: - platform: state entity_id: - binary_sensor.lounge_occupancy_presence to: 'off' for: hours: 0 minutes: 1 seconds: 0 continue_on_timeout: false timeout: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 - choose: - conditions: - condition: time weekday: - sun - wed sequence: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_5 default: - action: button.press metadata: {} data: {} target: entity_id: button.x40_ultra_shortcut_2 mode: single - alias: 'presence: clear alarm notifications when someone arrives home' description: '' mode: single trigger: - platform: state entity_id: group.all_people from: not_home to: home condition: [] action: - delay: 00:05:00 - service: notify.everyone data: message: clear_notification data: tag: alarm-status - alias: 'laundry: clear notifications every night' description: '' mode: single trigger: - platform: time at: 03:00:00 condition: [] action: - service: notify.everyone data: message: clear_notification data: tag: washing-complete - service: notify.everyone data: message: clear_notification data: tag: dryer-complete - id: 2F37F54A-B672-4C73-AC1F-83BB42BA7DBC alias: 'robot_vacuum: clear presence notifications when someone arrives home' description: '' mode: single trigger: - platform: state entity_id: group.all_people from: not_home to: home condition: [] action: - service: notify.everyone data: message: clear_notification data: tag: robovac-no-one-home - id: '16063042895494897' alias: 'blinds: close all blinds at sunset' description: '' trigger: - platform: numeric_state entity_id: sensor.ecowitt_hub_solar_lux below: 500 for: 00:05:00 - platform: sun event: sunset offset: 01:00:00 condition: - condition: template value_template: '{{ state_attr(''automation.blinds_close_all_blinds_at_sunset'', ''last_triggered'') == None or state_attr(''automation.blinds_close_all_blinds_at_sunset'', ''last_triggered'') < now().replace(hour=3, minute=0, second=0) }}' - condition: sun after: sunset after_offset: -01:00:00 - condition: sun before: sunset before_offset: 01:30:00 action: - service: cover.close_cover data: {} entity_id: - cover.living_side_blockout - cover.living_left_blockout - cover.living_right_screen - cover.living_right_blockout - cover.bedroom_blockout - cover.bedroom_screen - cover.study_blockout - cover.kitchen_blockout - cover.kitchen_screen mode: single - id: '1720421869518' alias: 'study: close blockout when indoor brighter than outdoor' description: '' trigger: - platform: numeric_state entity_id: - sensor.study_shelves_illuminance_illuminance for: hours: 0 minutes: 0 seconds: 15 above: 35 - platform: numeric_state entity_id: - sensor.ecowitt_hub_solar_lux for: hours: 0 minutes: 0 seconds: 30 below: 1000 condition: - condition: numeric_state entity_id: sensor.study_shelves_illuminance_illuminance above: 35 - condition: or conditions: - condition: numeric_state entity_id: sensor.ecowitt_hub_solar_lux below: 1000 - condition: and conditions: - condition: state entity_id: sensor.ecowitt_hub_solar_lux state: - unavailable - unknown - condition: sun after: sunset after_offset: -01:00:00 action: - action: cover.close_cover metadata: {} data: {} target: entity_id: cover.study_blockout - delay: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 mode: single - id: '1647313038555' alias: 'study: Set blind position with up down button' description: '' trigger: - platform: state entity_id: sensor.study_screen_blind_button_action to: - 'off' - brightness_move_down id: move_down - platform: state entity_id: sensor.study_screen_blind_button_action to: - 'on' - brightness_move_up id: move_up - platform: state entity_id: sensor.study_screen_blind_button_action to: brightness_stop id: move_stop condition: [] action: - choose: - conditions: - condition: trigger id: move_up sequence: - service: cover.open_cover data: {} target: entity_id: cover.study_blockout - conditions: - condition: trigger id: move_down sequence: - service: cover.close_cover data: {} target: entity_id: cover.study_blockout default: - service: cover.stop_cover data: {} target: entity_id: cover.study_blockout mode: single - id: '1626435326924' alias: 'presence: disable away mode when arriving home' description: '' trigger: - platform: state entity_id: group.all_people from: not_home to: home condition: - condition: state entity_id: input_boolean.away_mode state: 'on' action: - service: input_boolean.turn_off target: entity_id: input_boolean.away_mode mode: single - id: '1735967523621' alias: Dishwasher Status description: '' triggers: - trigger: state entity_id: - binary_sensor.dishwasher_standby from: 'on' to: 'off' id: Dishwasher Off - trigger: state entity_id: - binary_sensor.dishwasher_standby from: 'off' to: 'on' id: Dishwasher Dirty - trigger: state entity_id: - binary_sensor.dishwasher_running from: 'off' to: 'on' id: Dishwasher Running - trigger: state entity_id: - binary_sensor.dishwasher_running from: 'on' to: 'off' id: Dishwasher Clean conditions: [] actions: - if: - condition: state entity_id: light.dishwasher_main state: 'on' then: - action: select.select_option metadata: {} data: option: '{{ trigger.id }}' target: entity_id: select.dishwasher_preset - action: input_select.select_option data: option: '{{ trigger.id }}' target: entity_id: input_select.dishwasher_previous_preset_state mode: single - id: '1742708013692' alias: 'dog door: lock on boot + when open for long time' description: '' triggers: - trigger: state entity_id: - lock.backyard_locked_in to: unlocked for: hours: 2 minutes: 0 seconds: 0 - trigger: homeassistant event: start alias: When Home Assistant is started (e.g. power is restored) conditions: [] actions: - delay: hours: 0 minutes: 5 seconds: 0 milliseconds: 0 alias: Wait for dog door to reconnect - action: lock.lock metadata: {} data: {} target: entity_id: lock.backyard_locked_in mode: single - id: '40589432094583908' alias: 'bedroom: turn off electric blanket after 1 hour' description: '' trigger: - platform: state entity_id: - switch.electric_blanket from: 'off' to: 'on' condition: [] action: - service: notify.everyone data: title: Electric Blanket message: Turning on the electric blanket. It will turn off at {{ (now() + timedelta(hours=1)).strftime('%I:%M%p')}} data: tag: electric-blanket - wait_for_trigger: - platform: state entity_id: - switch.electric_blanket from: 'on' to: 'off' timeout: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 continue_on_timeout: true continue_on_error: true - if: - condition: state entity_id: switch.electric_blanket state: 'on' then: - service: switch.turn_off data: {} target: entity_id: switch.electric_blanket - service: notify.everyone data: title: Electric Blanket message: The electric blanket was turned off data: tag: electric-blanket - id: '1747478414303' alias: 'robovac: End paused task at 9am.' description: '' triggers: - trigger: time at: 09:00:00 conditions: - condition: or conditions: - condition: state entity_id: vacuum.crystal state: paused - condition: state state: idle entity_id: vacuum.crystal actions: - action: vacuum.stop metadata: {} data: {} target: entity_id: vacuum.crystal mode: single - id: '17359666705612' alias: Energy Status Linear mode: restart description: '' triggers: - trigger: state entity_id: - sensor.inverter_meter_power conditions: - condition: state entity_id: light.dishwasher state: 'on' actions: - action: rest_command.wled_set_colors data: wled_host: 192.168.2.138 segment: 0 brightness: 255 speed: "{% set v = states('sensor.inverter_meter_power')|float %} {% set steps\ \ = 5 %} {% set min_speed = 64 %} {% set max_speed = 148 %} {% set range =\ \ 2000 %} {# how much above/below the bounds you want to scale #}\n{% if\ \ v < -3000 %}\n {% set scale = ((-v - 3000) / range) %}\n {% set val =\ \ ([scale * steps, steps - 1] | min) | int %}\n {{ min_speed + val * ((max_speed\ \ - min_speed) / (steps - 1)) | round }}\n{% elif v > 2000 %}\n {% set scale\ \ = ((v - 2000) / range) %}\n {% set val = ([scale * steps, steps - 1] |\ \ min) | int %}\n {{ min_speed + val * ((max_speed - min_speed) / (steps\ \ - 1)) | round }}\n{% else %}\n {{ min_speed }}\n{% endif %}" intensity: 128 effect: 28 color1: "{% set v = states('sensor.inverter_meter_power')|float %} {% if v <\ \ -3000 %}\n 00bb2c\n{% elif v < -500 %}\n 00a2bb\n{% elif v < 0 %}\n a8a5a5\n\ {% elif v < 500 %}\n 9da3a5\n{% elif v < 2000 %}\n c17a00\n{% else %}\n\ \ c11000\n{% endif %}" color2: "{% set v = states('sensor.inverter_meter_power')|float %} {% if v <\ \ -3000 %}\n 00731a\n{% elif v < -500 %}\n 005e6b\n{% elif v < 0 %}\n 5b5a5a\n\ {% elif v < 500 %}\n 525657\n{% elif v < 2000 %}\n 704400\n{% else %}\n\ \ 6e0900\n{% endif %}" color3: '000000' reverse: '{% set v = states(''sensor.inverter_meter_power'')|float %} {% if v > 0 %} 0 {% else %} 1 {% endif %}' - id: '1719053789067' alias: 'gas: increment counter on impulse' description: '' trigger: - platform: state entity_id: - binary_sensor.gas_impulse_contact from: 'on' to: 'off' condition: [] action: - service: counter.increment metadata: {} data: {} target: entity_id: counter.gas_impulse mode: single - id: '1611648224640' alias: 'energy: set utility meter tariff' description: '' trigger: - platform: state entity_id: sensor.energy_tariff - platform: homeassistant event: start condition: [] action: - service: select.select_option data: tariff: '{{ states(''sensor.energy_tariff'') }}' entity_id: - utility_meter.daily_energy - utility_meter.weekly_energy - utility_meter.quarterly_energy mode: single - id: '1720332159033' alias: 'water: increment counter on impulse' description: '' trigger: - platform: state entity_id: - binary_sensor.water_impulse_contact from: 'off' to: 'on' condition: [] action: - service: counter.increment metadata: {} data: {} target: entity_id: counter.water_impulse mode: single - id: '1722076188774' alias: 'bathroom: fan timer after shower' description: '' trigger: - platform: state entity_id: - switch.bathroom_fan from: 'off' to: 'on' for: hours: 0 minutes: 1 seconds: 0 condition: - condition: numeric_state entity_id: sensor.bathroom_climate_humidity above: 90 action: - wait_for_trigger: - platform: state entity_id: - switch.bathroom_fan from: 'on' to: 'off' - platform: numeric_state entity_id: - sensor.bathroom_climate_humidity below: 80 timeout: hours: 0 minutes: 30 seconds: 0 milliseconds: 0 continue_on_timeout: true - service: fan.turn_off metadata: {} data: {} target: entity_id: fan.bathroom mode: single - id: frontend_set_default_theme alias: at startup, set the default theme trigger: platform: homeassistant event: start action: service: frontend.set_theme data: name: Google Theme - id: '1750157723171' alias: 'hallway ac: timer 1' description: '' triggers: - trigger: state entity_id: - binary_sensor.hallway_ac_timer_1 to: 'on' id: 'on' - trigger: state entity_id: - binary_sensor.hallway_ac_timer_1 to: 'off' id: 'off' conditions: [] actions: - choose: - conditions: - condition: trigger id: - 'on' sequence: - action: scene.create metadata: {} data: scene_id: hallway_ac_before_state snapshot_entities: - climate.hallway - action: scene.turn_on metadata: {} data: {} target: entity_id: scene.hallway_ac_timer_1_preset - conditions: - condition: trigger id: - 'off' sequence: - action: scene.turn_on metadata: {} data: {} target: entity_id: scene.hallway_ac_before_state mode: single - id: '1603453318878' alias: 'quiet room: When motion detected, turn on lights' description: '' trigger: - platform: state entity_id: binary_sensor.quiet_room to: 'on' condition: - condition: or conditions: - condition: sun after: sunset - condition: sun before: sunrise action: - service: switch.turn_on data: {} entity_id: switch.quiet_room_outer_downlights mode: single - id: '1611580465377' alias: 'blinds: open master bedroom at 8am' description: '' trigger: - platform: time at: 08:00 condition: [] action: - service: cover.open_cover entity_id: - cover.master_front_left - cover.master_front_right mode: single - id: '1611580492959' alias: 'blinds: close master bedroom at 9pm' description: '' trigger: - platform: time at: '21:00' condition: [] action: - service: cover.close_cover entity_id: - cover.master_front_left - cover.master_front_right mode: single - id: '1611580574575' alias: 'blinds: open upstairs hall blockout at 7:30am' description: '' trigger: - platform: time at: 07:30 condition: [] action: - service: cover.open_cover entity_id: cover.upstairs_hall_blockout mode: single - id: '1611580607667' alias: 'blinds: close all living room blinds at 11pm' description: '' trigger: - platform: time at: '23:00' condition: [] action: - service: cover.close_cover entity_id: - cover.kitchen_front - cover.kitchen_back mode: single - id: '1611580737523' alias: 'blinds: partially close all living room blinds at 8:30pm' description: '' trigger: - platform: time at: '20:30' condition: [] action: - service: cover.close_cover entity_id: - cover.kitchen_front_4_right - cover.kitchen_front_2_door_left - cover.kitchen_front_1_left - cover.kitchen_back_left mode: single - id: '1611580808700' alias: 'blinds: open all living room blinds at 6:15am' description: '' trigger: - platform: time at: 06:15 condition: [] action: - service: cover.open_cover entity_id: - cover.kitchen_back - cover.kitchen_front mode: single - id: '1611580953317' alias: 'blinds: close upstairs hall blockout at 7:30pm' description: '' trigger: - platform: time at: '19:30' condition: [] action: - service: cover.close_cover entity_id: cover.upstairs_hall_blockout mode: single - id: '1612665437904' alias: 'living_room: play kiis fm on living room button press' description: '' trigger: - platform: state entity_id: sensor.living_room_button_action to: single condition: [] action: - service: script.living_room_play_kiss_radio data: {} mode: single - id: '1637747873673' alias: Close both front right blinds at 8am every day description: '' trigger: - platform: time at: 08:00:00 condition: [] action: - service: cover.close_cover target: entity_id: - cover.kitchen_front_4_translucent_right - cover.kitchen_front_4_right mode: single - id: '1717924745218' alias: Atrium lamp on description: '' trigger: - platform: sun event: sunset offset: 0 condition: [] action: - service: light.turn_on metadata: {} data: {} target: entity_id: light.atrium_lamp mode: single - id: '1717924835029' alias: Atrium lamp off description: '' trigger: - platform: time at: '23:00:00' condition: [] action: - service: light.turn_off metadata: {} data: {} target: entity_id: light.atrium_lamp mode: single - id: '1717924924310' alias: Hall lamp on description: '' trigger: - platform: sun event: sunset offset: 0 condition: [] action: - service: light.turn_on metadata: {} data: {} target: entity_id: light.hall_table_lamp mode: single - id: '1717932808159' alias: Kitchen lamp on 2 description: '' trigger: - platform: sun event: sunset offset: 0 condition: [] action: - service: light.turn_on metadata: {} data: {} target: entity_id: - light.kitchen_lamp_1 - light.kitchen_lamp_2 - light.kitchen_lamp_3 mode: single - id: '1718108414355' alias: Hall table lamp off description: '' trigger: - platform: time at: '23:00:00' condition: [] action: - service: light.turn_off metadata: {} data: {} target: entity_id: light.hall_table_lamp mode: single - id: '1718108551150' alias: Kitchen lamp off description: '' trigger: - platform: time at: '23:00:00' condition: [] action: - service: light.turn_off metadata: {} data: {} target: entity_id: - light.kitchen_lamp_1 - light.kitchen_lamp_2 - light.kitchen_lamp_3 mode: single - id: '1718416955542' alias: 'quiet room: toggle nook light on detatched switch press' description: '' trigger: - platform: state entity_id: - binary_sensor.quiet_room_nook_ds_contact from: 'on' to: 'off' - platform: state entity_id: - binary_sensor.quiet_room_nook_ds_contact from: 'off' to: 'on' condition: [] action: - service: light.toggle metadata: {} data: {} target: entity_id: light.quiet_room_nook mode: single - id: '1719138364452' alias: 'kitchen: toggle splashback LED light on detatched switch press' description: '' trigger: - platform: state entity_id: - binary_sensor.kitchen_splashback_ds_contact from: 'on' to: 'off' - platform: state entity_id: - binary_sensor.kitchen_splashback_ds_contact from: 'off' to: 'on' condition: [] action: - service: light.toggle metadata: {} data: {} target: entity_id: light.kitchen_splashback mode: single - id: '1719138430696' alias: 'living room: toggle curtains LED on detatched switch press' description: '' trigger: - platform: state entity_id: - binary_sensor.living_room_curtains_ds_contact from: 'on' to: 'off' - platform: state entity_id: - binary_sensor.living_room_curtains_ds_contact from: 'off' to: 'on' condition: [] action: - service: light.toggle metadata: {} data: {} target: entity_id: light.living_room_curtains mode: single - id: '1719205569333' alias: Wake iPad on Doorbell Activity description: '' trigger: - platform: state entity_id: - binary_sensor.front_door_doorbell from: 'off' to: 'on' id: front_door - platform: state entity_id: - binary_sensor.front_door_person_detected from: 'off' to: 'on' id: front_door - platform: state entity_id: - binary_sensor.top_driveway_doorbell from: 'off' to: 'on' id: top_driveway - platform: state entity_id: - binary_sensor.top_driveway_person_detected from: 'off' to: 'on' id: top_driveway condition: [] action: - service: notify.mobile_app_ipad data: message: Wake Up - delay: hours: 0 minutes: 0 seconds: 1 milliseconds: 0 - choose: - conditions: - condition: trigger id: - front_door sequence: - service: browser_mod.popup data: size: wide timeout: 180000 title: Front Door content: show_state: false show_name: false camera_view: live type: picture-entity entity: camera.front_door_doorbell name: Front Door camera_image: camera.front_door_doorbell tap_action: action: none hold_action: action: none target: device_id: 1acf5949-ec3bb89d - conditions: - condition: trigger id: - top_driveway sequence: - service: browser_mod.popup data: size: wide timeout: 180000 title: Top Driveway content: show_state: false show_name: false camera_view: live type: picture-entity entity: camera.top_driveway_doorbell name: Front Door camera_image: camera.top_driveway_doorbell tap_action: action: none hold_action: action: none target: device_id: 1acf5949-ec3bb89d mode: single - id: '1719205834583' alias: Wake iPad on Hallway Motion description: '' trigger: - platform: state entity_id: - binary_sensor.front_entrance from: 'off' to: 'on' condition: [] action: - service: notify.mobile_app_ipad data: message: Wake Up mode: single - id: '1719207062194' alias: Play doorbell sound on doorbell ring description: '' trigger: - platform: state entity_id: - binary_sensor.front_door_doorbell from: 'off' to: 'on' - platform: state entity_id: - binary_sensor.top_driveway_doorbell from: 'off' to: 'on' condition: [] action: - service: media_player.play_media data: media_content_id: media-source://media_source/local/doorbell.mp3 media_content_type: audio/mpeg target: entity_id: - media_player.1acf5949-ec3bb89d - media_player.nesthub2422 - media_player.peter_smart_clock - media_player.ensuite_radio mode: single - id: '1719570258724' alias: Upstairs hall lamp on description: '' trigger: - platform: sun event: sunset offset: 0 condition: [] action: - service: light.turn_on metadata: {} data: {} target: entity_id: light.upstairs_hall_lamp mode: single - id: '1719570321533' alias: Upstairs hall lamp off description: '' trigger: - platform: time at: '23:55:00' condition: [] action: - service: light.turn_off metadata: {} data: {} target: entity_id: light.upstairs_hall_lamp mode: single - id: '1720260537045' alias: Curtain pelmet1 description: '' trigger: - platform: state entity_id: - binary_sensor.0xa4c138240080206f_contact from: 'on' to: 'off' - platform: state entity_id: - binary_sensor.0xa4c138240080206f_contact from: 'off' to: 'on' condition: [] action: - service: light.toggle metadata: {} data: {} target: entity_id: light.living_room_curtains mode: single - id: '1720343078056' alias: 'play door chime on doorbell ring ' description: '' trigger: - platform: state entity_id: - binary_sensor.top_driveway_doorbell - binary_sensor.front_door_doorbell from: 'off' to: 'on' condition: [] action: - service: select.select_option metadata: {} data: option: '18' target: entity_id: - select.upstairs_door_chime_melody - select.downstairs_door_chime_melody - service: select.select_option metadata: {} data: option: medium target: entity_id: - select.upstairs_door_chime_volume - select.downstairs_door_chime_volume - service: number.set_value metadata: {} data: value: '6' target: entity_id: - number.upstairs_door_chime_duration - number.downstairs_door_chime_duration - service: switch.turn_on target: entity_id: - switch.downstairs_door_chime_alarm - switch.upstairs_door_chime_alarm data: {} mode: single - id: '1748692801528' alias: 'alarm: arm on away' description: '' triggers: - entity_id: binary_sensor.family_is_home to: 'off' trigger: state - entity_id: input_boolean.alarm_auto_arm_schedule to: 'on' trigger: state - entity_id: input_boolean.alarm_auto_arm_override to: 'on' trigger: state conditions: - condition: state entity_id: alarm_control_panel.alarm_panel state: disarmed - condition: state entity_id: binary_sensor.family_is_home state: 'off' - condition: state entity_id: input_boolean.alarm_auto_arm_schedule state: 'on' - condition: state entity_id: input_boolean.alarm_auto_arm_override state: 'on' actions: - target: entity_id: alarm_control_panel.alarm_panel action: alarm_control_panel.alarm_arm_away data: code: '157896' - event: auto_arm_armed - data: name: Alarm Auto Arm message: Automatic arm action: logbook.log - id: '1748693013044' alias: 'alarm: Disarm Alarm (Override OFF)' description: '' triggers: - entity_id: input_boolean.alarm_auto_arm_override to: 'off' trigger: state conditions: - condition: not conditions: - condition: state entity_id: alarm_control_panel.alarm_panel state: disarmed actions: - target: entity_id: alarm_control_panel.alarm_panel data: code: '157896' action: alarm_control_panel.alarm_disarm - event: auto_arm_disarmed - data: name: Alarm Auto Arm message: Automatic disarm (override off) action: logbook.log - id: '1748693080761' alias: 'alarm: Auto Disarm Alarm (Presence/Schedule)' description: '' triggers: - entity_id: binary_sensor.family_is_home to: 'on' trigger: state - entity_id: input_boolean.alarm_auto_arm_schedule to: 'off' trigger: state conditions: - condition: not conditions: - condition: state entity_id: alarm_control_panel.alarm_panel state: disarmed - condition: state entity_id: input_boolean.alarm_auto_arm_override state: 'on' actions: - target: entity_id: alarm_control_panel.alarm_panel data: code: '157896' action: alarm_control_panel.alarm_disarm - event: auto_arm_disarmed - data: name: Alarm Auto Arm message: Automatic disarm action: logbook.log - id: '1585648623740' alias: 'every hour, call the check-in URL ' description: '' trigger: - hours: '*' minutes: '0' platform: time_pattern seconds: '0' condition: [] action: - data: {} service: rest_command.check_in - id: '1585649979000' alias: every Sunday at 3am, purge and repack the database description: '' trigger: - at: 00:03:00 platform: time condition: - condition: time weekday: - sun action: - data: keep_days: 14 repack: true service: recorder.purge - alias: 'dog_door: keep pets locked in at night' id: '23984738947389247' description: '' mode: single trigger: - platform: state entity_id: - alarm_control_panel.ha_alarm to: armed_night condition: - condition: state entity_id: group.all_people state: home action: - service: lock.lock data: {} target: entity_id: lock.backyard_locked_in - alias: 'dog_door: keep pets locked in when away for long period' id: '239847389473209101' mode: single trigger: - platform: state entity_id: group.all_people to: not_home for: hours: 0 minutes: 30 seconds: 0 condition: [] action: - service: lock.lock data: {} target: entity_id: lock.backyard_locked_in - id: 5E947BA516A3 alias: Turn On Living Room TV with WakeOnLan triggers: - trigger: samsungtv.turn_on entity_id: media_player.living_room_tv actions: - action: wake_on_lan.send_magic_packet data: mac: secret samsung_smart_tv_mac - id: 682B367539FB alias: 'homekit remote: media key arrow_up' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: arrow_up condition: [] action: - action: remote.send_command data: command: KEY_UP target: entity_id: remote.living_room_tv - id: B07D24A1E86E alias: 'homekit remote: media key arrow_down' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: arrow_down condition: [] action: - action: remote.send_command data: command: KEY_DOWN target: entity_id: remote.living_room_tv - id: C89C74C0D202 alias: 'homekit remote: media key arrow_left' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: arrow_left condition: [] action: - action: remote.send_command data: command: KEY_LEFT target: entity_id: remote.living_room_tv - id: 940199676C17 alias: 'homekit remote: media key arrow_right' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: arrow_right condition: [] action: - action: remote.send_command data: command: KEY_RIGHT target: entity_id: remote.living_room_tv - id: 8E9E5B27D4BE alias: 'homekit remote: media key back' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: back condition: [] action: - action: remote.send_command data: command: KEY_RETURN target: entity_id: remote.living_room_tv - id: 25B3FEE288AD alias: 'homekit remote: media key select' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: select condition: [] action: - action: remote.send_command data: command: KEY_ENTER target: entity_id: remote.living_room_tv - id: 4AD260B62D6D alias: 'homekit remote: media key information' description: '' trigger: - event_type: homekit_tv_remote_key_pressed platform: event event_data: entity_id: media_player.living_room_tv key_name: information condition: [] action: - action: remote.send_command data: command: KEY_HOME target: entity_id: remote.living_room_tv - id: '1747046547565' alias: 'shed: motion lights' description: '' triggers: - trigger: state entity_id: - binary_sensor.shed_motion_occupancy from: 'off' to: 'on' - trigger: state entity_id: - binary_sensor.shed_door_contact from: 'off' to: 'on' conditions: - condition: state entity_id: group.all_people state: home - condition: state entity_id: sun.sun state: below_horizon actions: - action: light.turn_on metadata: {} data: {} target: entity_id: light.shed - wait_for_trigger: - trigger: template value_template: '{{ (is_state(''binary_sensor.shed_motion_occupancy'', ''off'') or is_state(''binary_sensor.shed_motion_occupancy'', ''unavailable'')) and (is_state(''binary_sensor.shed_fp2_presence_sensor_shed'', ''off'') or is_state(''binary_sensor.shed_fp2_presence_sensor_shed'', ''unavailable'')) }} ' for: hours: 0 minutes: 5 seconds: 0 timeout: hours: 1 minutes: 0 seconds: 0 milliseconds: 0 continue_on_timeout: true - action: light.turn_off metadata: {} data: {} target: entity_id: light.shed mode: single - id: '1601034697138' alias: 'alarm: send notification when triggered' description: '' trigger: - platform: state entity_id: alarm_control_panel.alarm_panel to: triggered condition: [] action: - service: notify.admins data: title: 313A Alarm Triggered message: The alarm was triggered at {{ now().strftime('%I:%M %p') }}{% if states('sensor.recently_triggered_sensors') %} by {{ states('sensor.recently_triggered_sensors') }}{% endif %} data: group: alarm-status url: /lovelace/security entity_id: camera.nvr_garage_lowres actions: - action: DISARM_ALARM title: Disarm authenticationRequired: true destructive: true push: sound: name: default critical: 1 volume: 0 mode: single - id: '1601035010803' alias: 'alarm: send notification on disarm' description: '' trigger: - platform: state entity_id: alarm_control_panel.alarm_panel to: disarmed action: - service: notify.admins data: title: 313A Alarm Disarmed message: The alarm was disarmed at {{ now().strftime('%I:%M %p') }} data: group: alarm-status tag: alarm-status mode: single - id: '1601035010807' alias: 'alarm: send notification on disarm if triggered or pending' description: '' trigger: - platform: state entity_id: alarm_control_panel.alarm_panel to: disarmed condition: - condition: or conditions: - condition: state entity_id: alarm_control_panel.alarm_panel state: pending - condition: state entity_id: alarm_control_panel.alarm_panel state: triggered action: - service: notify.admins data: title: 313A Alarm Disarmed message: The alarm was disarmed at {{ now().strftime('%I:%M %p') }} data: group: alarm-status tag: alarm-status mode: single - id: '1601035037271' alias: 'alarm: send notification when pending' description: '' trigger: - platform: state entity_id: alarm_control_panel.alarm_panel to: pending condition: [] action: - service: notify.admins data: title: 313A Alarm Pending message: The alarm was pending at {{ now().strftime('%I:%M %p') }} data: url: /lovelace/security entity_id: camera.nvr_garage_lowres group: alarm-status tag: alarm-status push: category: alarm actions: - action: DISARM_ALARM title: Disarm authenticationRequired: true destructive: true mode: single - id: '1601035065291' alias: 'alarm: send notification when armed' description: '' trigger: - platform: state entity_id: alarm_control_panel.alarm_panel to: - armed_away - armed_night condition: [] action: - service: notify.admins data: title: 313A Alarm Armed message: The alarm was armed at {{ now().strftime('%I:%M %p') }} data: group: alarm-status tag: alarm-status push: category: alarm mode: single - id: '1601036735034' alias: 'alarm: disarm when mobile app disarm action fired' description: '' trigger: - platform: event event_type: ios.notification_action_fired event_data: actionName: DISARM_ALARM condition: [] action: - service: alarm_control_panel.alarm_disarm data: code: secret arming_code entity_id: alarm_control_panel.alarm_panel mode: single - id: '1591583687656' alias: 'alarm: every thursday at 7:30am, turn off alarm auto arm' description: '' trigger: - at: 07:30 platform: time condition: - condition: time weekday: - thu action: - data: {} entity_id: input_boolean.alarm_auto_arm_schedule service: input_boolean.turn_off - id: '1591583801235' alias: 'alarm: every thursday at 12pm, turn on alarm auto arm' description: '' trigger: - at: '12:00' platform: time condition: - condition: time weekday: - thu action: - data: {} entity_id: input_boolean.alarm_auto_arm_schedule service: input_boolean.turn_on - id: '1616301426392' alias: 'hass: notify daily if away mode on for more than 24 hours' description: '' trigger: - platform: time at: 09:00:00 - platform: template value_template: '{{ is_state(''input_boolean.away_mode'', ''on'') and (now() - states.input_boolean.away_mode.last_changed).total_seconds() > 60 * 60 * 24 }}' condition: - condition: template value_template: '{{ is_state(''input_boolean.away_mode'', ''on'') and (now() - states.input_boolean.away_mode.last_changed).total_seconds() > 60 * 60 * 24 }}' action: - service: notify.everyone data: title: Away Mode message: Away mode has been activated for longer than 24 hours data: tag: guest-mode mode: single - id: '1616301426418' alias: 'hass: notify daily if guest mode on for more than 24 hours' description: '' trigger: - platform: time at: 09:00:00 - platform: template value_template: '{{ is_state(''input_boolean.guest_mode'', ''on'') and (now() - states.input_boolean.guest_mode.last_changed).total_seconds() > 60 * 60 * 24 }}' condition: - condition: template value_template: '{{ is_state(''input_boolean.guest_mode'', ''on'') and (now() - states.input_boolean.guest_mode.last_changed).total_seconds() > 60 * 60 * 24 }}' action: - service: notify.everyone data: title: Guest Mode message: Guest mode has been activated for longer than 24 hours data: tag: guest-mode mode: single - id: laundry_notify_on_dryer_completed alias: 'laundry: notify on dryer completed' description: '' trigger: - entity_id: binary_sensor.dryer from: 'on' platform: state to: 'off' condition: [] action: - data: data: tag: dryer-complete group: laundry-appliance message: The dryer has completed. title: Dryer Complete! service: notify.everyone - id: '1661737134825' alias: 'front door: notify on person detected' description: '' trigger: - platform: state entity_id: - binary_sensor.front_door_person_detected to: person condition: - condition: state entity_id: group.all_people state: not_home action: - service: notify.notify data: message: Motion Detected title: A person was detected in the front yard data: url: /lovelace/security entity_id: camera.front_door_high - delay: 00:03:00 mode: single - id: '1661736779952' alias: 'mailbox: notify on mailbox open or vibrate' description: '' trigger: - platform: state entity_id: - binary_sensor.mailbox_contact_contact from: 'off' to: 'on' - platform: state entity_id: - binary_sensor.mailbox_vibration from: 'off' to: 'on' condition: [] action: - service: notify.everyone data: title: You have mail message: The mailbox was opened or vibrated - delay: 00:30:00 mode: single - id: '1577766070397' alias: 'laundry: notify on washing machine completed' description: '' trigger: - entity_id: binary_sensor.washing_machine from: 'on' platform: state to: 'off' condition: [] action: - data: data: tag: washing-complete group: laundry-appliance message: The washing machine has completed. Time to hang out the clothes. title: Washing Complete! service: notify.everyone - id: '1613558326686' alias: 'presence: notify when lights are on and nobody is home' description: '' trigger: - platform: state entity_id: binary_sensor.some_lights_on from: 'off' to: 'on' - platform: state entity_id: group.all_people from: home to: not_home for: 00:30:00 - platform: homeassistant event: start condition: - condition: state entity_id: binary_sensor.some_lights_on state: 'on' - condition: state entity_id: group.all_people state: not_home for: 00:05:00 - condition: state entity_id: input_boolean.guest_mode state: 'off' action: - service: notify.everyone data: title: The lights are on but nobody is home message: '{{ states.light | selectattr(''state'',''eq'',''on'') | map(attribute=''name'') | join('', '') }} are turned on. ' data: group: lights-on-nobody-home actions: - action: TURN_OFF_LIGHTS title: Turn Off Lights mode: single - id: '1600774623358' alias: 'blinds: open bedroom blinds on weekday mornings' description: '' trigger: - platform: time at: 09:15:00 condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: time weekday: - mon - tue - wed - thu - fri action: - choose: - conditions: - condition: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn below: '1' sequence: - wait_for_trigger: - platform: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn above: '0' timeout: 02:00:00 continue_on_timeout: true - service: cover.open_cover data: {} entity_id: - cover.bedroom_blockout - if: - condition: state entity_id: light.bedroom_star state: unavailable then: - service: cover.open_cover data: {} entity_id: - cover.bedroom_screen mode: single - id: '1600774623448' alias: 'blinds: open bedroom blinds on weekend mornings' description: '' trigger: - platform: time at: '11:00:00' condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: time weekday: - sat - sun action: - choose: - conditions: - condition: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn below: '1' sequence: - wait_for_trigger: - platform: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn above: '0' timeout: 01:00:00 continue_on_timeout: true - service: cover.open_cover data: {} entity_id: - cover.bedroom_blockout mode: single - id: '9454988347972938283' alias: 'bedroom button: toggle blockout blind on bedside button double press' description: '' trigger: - platform: state entity_id: sensor.kates_bedside_button_action to: double - platform: state entity_id: sensor.nicks_bedside_button_action to: double condition: [] action: - service: cover.toggle entity_id: cover.bedroom_blockout mode: single - id: '1600774623357' alias: 'blinds: open the blinds on first motion detected, once per day, after sunrise' description: '' trigger: - platform: time at: '11:00:00' - platform: state entity_id: binary_sensor.internal_motion_occupancy to: 'on' condition: - condition: template value_template: '{{ state_attr(''automation.open_blinds_on_motion'', ''last_triggered'') < now().replace(hour=3, minute=0, second=0) }}' - condition: state entity_id: group.all_people state: home - condition: state entity_id: input_boolean.guest_mode state: 'off' - condition: sun after: sunrise action: - service: cover.open_cover data: {} entity_id: - cover.kitchen_blockout - cover.study_blockout - cover.living_blockout mode: single - id: 029438302948 alias: 'blinds: open blinds screens on mornings' description: '' trigger: - platform: time at: 09:15:00 condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: input_boolean.away_mode state: 'off' action: - choose: - conditions: - condition: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn below: '1' sequence: - wait_for_trigger: - platform: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn above: '0' timeout: 02:00:00 continue_on_timeout: true - service: cover.open_cover data: {} entity_id: - cover.living_right_screen - cover.kitchen_screen mode: single - id: '160077462393928' alias: 'blinds: open living room right screen every morning' description: '' trigger: - platform: time at: 09:15:00 condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: input_boolean.away_mode state: 'off' action: - choose: - conditions: - condition: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn below: '1' sequence: - wait_for_trigger: - platform: numeric_state entity_id: sensor.internal_motion_occupancy_since_dawn above: '0' timeout: 02:00:00 continue_on_timeout: true - service: cover.open_cover data: {} entity_id: - cover.living_right_screen mode: single - id: '1606304284264563' alias: 'study: open the study blockout blind at sunrise' description: '' trigger: - platform: sun event: sunrise offset: 00:05:00 condition: [] action: - service: cover.open_cover data: {} entity_id: - cover.study_blockout mode: single - id: '1588501846352' alias: when quiet room fridge or freezer door open for more than 5 minutes, send notification description: '' trigger: - device_id: a5ea6ad6759345c698658afb9c644309 domain: binary_sensor entity_id: binary_sensor.0x00158d000451d897_contact for: hours: 0 minutes: 5 seconds: 0 platform: device type: opened - device_id: 70146a3c3a6247d59063afbfeea3eb7f domain: binary_sensor entity_id: binary_sensor.0x00158d00049fb09a_contact for: hours: 0 minutes: 5 seconds: 0 platform: device type: opened condition: [] action: - data: message: The quiet room fridge or freezer has been left open service: notify.everyone - id: '1585649979000' alias: every Sunday at 3am, purge and repack the database description: '' trigger: - at: 00:03:00 platform: time condition: - condition: time weekday: - sun action: - data: keep_days: 14 repack: true service: recorder.purge - id: '1733996368210' alias: 'inverter: reload modbus on stale state' description: '' triggers: - trigger: template value_template: '{{ as_timestamp(now()) - as_timestamp(states.sensor.inverter_meter_power_raw.last_changed) > 600 }}' conditions: [] actions: - action: modbus.reload metadata: {} data: {} - action: persistent_notification.create metadata: {} data: title: Modbus Reloaded message: Inverter meter power last changed > 600 seconds. mode: single - id: '1640752411965' alias: 'hass: remove guest access' description: '' trigger: - platform: time at: 03:00:00 - platform: state entity_id: input_boolean.guest_mode to: 'off' from: 'on' for: hours: 0 minutes: 0 seconds: 10 condition: [] action: - service: login_control.clear_refresh_tokens data: user_id: e2f92fb2af8745b2a16fed0101eec985 mode: single - id: '1747479567384' alias: 'doorbell: ring outdoor speakers' description: '' triggers: - trigger: state entity_id: - binary_sensor.front_door_doorbell from: 'off' to: 'on' conditions: - condition: state entity_id: group.all_people state: home - condition: or conditions: - condition: state entity_id: binary_sensor.back_yard_person_detected_last_hour state: 'on' - condition: state entity_id: binary_sensor.shed_motion_detected_last_30m state: 'on' - condition: state entity_id: binary_sensor.shed_fp2_occupancy_detected_last_30m state: 'on' actions: - action: music_assistant.play_announcement metadata: {} data: announce_volume: 30 url: https://hass.nickwhyte.com/local/audio/doorbell.mp3 target: entity_id: - media_player.backyard mode: single - id: '16263412645738' alias: 'kitchen ambiance: set colour temperature at sunrise/sunset' description: '' trigger: - platform: sun event: sunset id: sunset - platform: sun event: sunrise id: sunrise condition: [] action: - choose: - conditions: - condition: trigger id: sunset sequence: - service: script.tasmota_set_ct data: topic: tasmota_6D0A96 ct: 500 - service: script.tasmota_set_brightness data: topic: tasmota_6D0A96 brightness: 10 - service: script.tasmota_set_ct data: topic: tasmota_6D2EFA ct: 475 - service: script.tasmota_set_brightness data: topic: tasmota_6D2EFA brightness: 10 default: - service: script.tasmota_set_ct data: topic: tasmota_6D0A96 ct: 200 - service: script.tasmota_set_brightness data: topic: tasmota_6D0A96 brightness: 90 - service: script.tasmota_set_ct data: topic: tasmota_6D2EFA ct: 200 - service: script.tasmota_set_brightness data: topic: tasmota_6D2EFA brightness: 90 mode: single - id: '1753835440818' alias: 'laundry: start dryer on excess solar export' description: '' triggers: - trigger: state entity_id: - binary_sensor.dryer_remote_status to: 'on' conditions: [] actions: - choose: - conditions: - condition: numeric_state entity_id: sensor.inverter_meter_power below: -1000 sequence: - data: title: Dryer Remote Start message: Excess solar available now. Starting the dryer. data: group: laundry-appliance action: notify.everyone - action: button.press metadata: {} data: {} target: entity_id: button.dryer_start_cycle - data: title: Dryer Remote Start message: Dryer started due to excess solar export data: group: laundry-appliance action: notify.everyone default: - data: title: Dryer Remote Start message: Dryer remote start was activated. Waiting for excess solar energy before starting data: group: laundry-appliance action: notify.everyone - wait_for_trigger: - trigger: numeric_state entity_id: - sensor.inverter_meter_power for: hours: 0 minutes: 5 seconds: 0 below: -1000 timeout: hours: 3 minutes: 0 seconds: 0 milliseconds: 0 - action: button.press metadata: {} data: {} target: entity_id: button.dryer_start_cycle - data: title: Dryer Remote Start message: Dryer started due to excess solar export data: group: laundry-appliance action: notify.everyone mode: single - id: '1634189664661' alias: 'robot_vacuum: start cleaning whilst away' description: '' trigger: - platform: state entity_id: - device_tracker.kates_iphone_gps - device_tracker.nicks_iphone_gps to: Dog Park for: 00:05:00 id: zone_dog_park - platform: numeric_state entity_id: sensor.home_nearest_distance above: '500' for: 00:05:00 id: proximity condition: - condition: template value_template: "{%- if state_attr('automation.robot_vacuum_start_cleaning_whilst_away','last_triggered')\ \ == None %}\n True\n{%- else %}\n {{ (now() - state_attr('automation.robot_vacuum_start_cleaning_whilst_away','last_triggered')).total_seconds()\ \ > 60 * 60 * 2 }}\n{%- endif %}" - condition: state entity_id: vacuum.crystal state: docked - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: state entity_id: group.all_animals state: not_home action: - choose: - conditions: - condition: state entity_id: group.all_people state: home sequence: - wait_for_trigger: - platform: state entity_id: group.all_people to: not_home timeout: 00:15:00 continue_on_timeout: false - alias: Set up variables for the actions variables: action_cancel: '{{ ''CANCEL_'' ~ context.id }}' action_start_now_auto: '{{ ''START_NOW_AUTO_'' ~ context.id }}' action_start_now_deep: '{{ ''START_NOW_DEEP_'' ~ context.id }}' action_start_now_mop: '{{ ''START_NOW_MOP_'' ~ context.id }}' - service: notify.everyone data: title: Automated Cleaning message: Starting automated cleaning in 5 minutes data: tag: robovac-no-one-home actions: - action: '{{ action_cancel }}' title: Cancel - action: '{{ action_start_now_auto }}' title: Quick Clean - action: '{{ action_start_now_deep }}' title: Deep Clean - action: '{{ action_start_now_mop }}' title: Mop and Vacuum - alias: Wait for a response wait_for_trigger: - platform: event event_type: mobile_app_notification_action event_data: action: '{{ action_cancel }}' - platform: event event_type: mobile_app_notification_action event_data: action: '{{ action_start_now_auto }}' - platform: event event_type: mobile_app_notification_action event_data: action: '{{ action_start_now_deep }}' - platform: event event_type: mobile_app_notification_action event_data: action: '{{ action_start_now_mop }}' timeout: 00:05:00 - service: notify.everyone data: title: Automated Cleaning message: Starting automated cleaning data: tag: robovac-no-one-home - choose: - conditions: '{{ wait.trigger.event.data.action == action_cancel }}' sequence: [] - conditions: '{{ wait.trigger.event.data.action == action_start_now_deep }}' sequence: - action: button.press target: entity_id: button.x40_ultra_shortcut_8 data: {} - conditions: '{{ wait.trigger.event.data.action == action_start_now_mop }}' sequence: - action: button.press target: entity_id: button.x40_ultra_shortcut_7 data: {} default: - action: button.press target: entity_id: button.x40_ultra_shortcut_6 data: {} - alias: Wait for cleaning to finish or someone approaches home wait_for_trigger: - entity_id: vacuum.crystal to: docked id: finished trigger: state - value_template: "{{ states('sensor.home_nearest_direction_of_travel') == 'towards'\ \ and\n states('sensor.home_nearest_distance') | float < 500 }}" id: proximity trigger: template - choose: - conditions: - condition: template value_template: '{{ wait.trigger.id == ''proximity'' }}' sequence: - service: notify.everyone data: title: Automated Cleaning message: Proximity detected, ending task. data: tag: robovac-no-one-home - target: entity_id: vacuum.crystal data: {} action: vacuum.return_to_base default: [] mode: single - id: '1725332898491' alias: 'tesla charger: reset charging amps at midnight' description: '' trigger: - platform: time_pattern hours: '23' minutes: '59' seconds: '00' - platform: time_pattern hours: '0' minutes: '05' seconds: '00' condition: [] action: - action: number.set_value metadata: {} data: value: '32' target: entity_id: number.tessie_charging_amps mode: single - id: '1753855873546' alias: 'tesla charger: set/reset charge limit' description: '' triggers: - trigger: time at: '23:55:00' id: overnight - trigger: time at: 06:00:00 id: daytime conditions: [] actions: - choose: - conditions: - condition: trigger id: - daytime sequence: - action: number.set_value metadata: {} data: value: '{{ states(''input_number.tesla_daytime_charge_limit'')}}' target: entity_id: number.tessie_charge_limit - action: input_number.set_value metadata: {} data: value: '{{ states(''input_number.tesla_daytime_charge_limit_default'')}}' target: entity_id: input_number.tesla_daytime_charge_limit - conditions: - condition: trigger id: - overnight sequence: - action: number.set_value metadata: {} data: value: '{{ states(''input_number.tesla_overnight_charge_limit'')}}' target: entity_id: number.tessie_charge_limit - action: input_number.set_value metadata: {} data: value: '{{ states(''input_number.tesla_overnight_charge_limit_default'')}}' target: entity_id: input_number.tesla_overnight_charge_limit mode: single - id: '98437594832563' alias: 'kitchen ambiance: toggle for downlights state' description: '' trigger: - platform: state entity_id: light.kitchen to: 'on' id: lights_on - platform: state entity_id: light.kitchen to: 'off' id: lights_off condition: - condition: or conditions: - condition: sun before: sunrise - condition: sun after: sunset - condition: numeric_state entity_id: sensor.ecowitt_hub_solar_lux below: 500 - condition: state entity_id: group.all_people state: home action: - choose: - conditions: - condition: trigger id: lights_off sequence: - service: light.turn_on data: brightness_pct: 10 target: entity_id: - light.kitchen_strip - light.bench_strip default: - service: light.turn_on data: brightness_pct: 80 target: entity_id: - light.kitchen_strip - light.bench_strip - service: light.turn_on target: entity_id: - light.kitchen_strip - light.bench_strip mode: single - id: '1626173674033' alias: 'kitchen ambiance: toggle for sunrise/sunset' description: '' trigger: - platform: sun event: sunrise id: sunrise - platform: sun event: sunset id: sunset condition: - condition: state entity_id: group.all_people state: home action: - choose: - conditions: - condition: trigger id: sunrise sequence: - service: light.turn_off target: entity_id: - light.kitchen_strip - light.bench_strip - conditions: - condition: trigger id: sunset sequence: - condition: not conditions: - condition: state entity_id: light.kitchen state: 'on' - service: light.turn_on data: brightness_pct: 10 target: entity_id: - light.kitchen_strip - light.bench_strip - service: light.turn_on target: entity_id: - light.kitchen_strip - light.bench_strip default: [] mode: single - id: '1661736200116' alias: 'study: toggle grow light on lux levels during daytime' description: '' trigger: - platform: numeric_state entity_id: sensor.study_shelves_illuminance_illuminance for: hours: 0 minutes: 0 seconds: 30 id: bright above: '1000' - platform: numeric_state entity_id: sensor.study_shelves_illuminance_illuminance for: hours: 0 minutes: 5 seconds: 0 id: dim below: '700' condition: - condition: state entity_id: sun.sun state: above_horizon action: - choose: - conditions: - condition: trigger id: dim sequence: - service: light.turn_on data: {} target: entity_id: light.study_grow_light - conditions: - condition: trigger id: bright sequence: - service: light.turn_off data: {} target: entity_id: light.study_grow_light default: [] mode: single - id: '1600953878712' alias: 'bedroom: toggle bedsides on bedside button press' description: '' trigger: - platform: state entity_id: sensor.nicks_bedside_button_action to: single id: nick - platform: state entity_id: sensor.kates_bedside_button_action to: single id: kate condition: [] action: - choose: - conditions: - condition: trigger id: nick sequence: - service: light.toggle entity_id: light.nicks_bedside - conditions: - condition: trigger id: kate sequence: - service: light.toggle entity_id: light.kates_bedside default: [] mode: parallel - id: '9454988347972982483' alias: 'Bedroom Wall button: toggle bedroom lights on button double press' description: '' trigger: - platform: state entity_id: sensor.bedroom_wall_button_action to: double condition: [] action: - service: light.toggle entity_id: light.bedroom_lamps mode: single - id: '98347972439857' alias: 'kitchen window button: toggle music playback on button double click' description: '' trigger: - platform: state entity_id: sensor.kitchen_window_button_action to: double condition: [] action: - service: switch.toggle entity_id: switch.play_music mode: single - id: '1719278605008' alias: 'X1C: Toggle power on button press' description: '' trigger: - platform: state entity_id: - sensor.3d_printer_button_action to: single condition: - condition: or conditions: - condition: state entity_id: sensor.x1c_print_status state: idle - condition: state entity_id: sensor.x1c_print_status state: finish - condition: state entity_id: switch.3d_printer state: 'off' action: - service: switch.toggle target: entity_id: - switch.3d_printer data: {} mode: single - id: '945498834872872483' alias: 'Study Wall button: toggle study shelves fairy lights on button double press' description: '' trigger: - platform: state entity_id: sensor.study_wall_button_action to: double condition: [] action: - service: light.toggle entity_id: light.study_fairy_lights mode: single - id: '1718231422772' alias: 'X1C: turn off 3d printer when idle' description: '' trigger: - platform: state entity_id: - sensor.x1c_print_status to: finish for: hours: 0 minutes: 60 seconds: 0 condition: - condition: state entity_id: sensor.x1c_print_status state: finish action: - service: switch.turn_off metadata: {} data: {} target: entity_id: switch.3d_printer - service: notify.mobile_app_nicks_iphone metadata: {} data: message: X1C was turned off due to idle timeout title: X1C Status mode: single - id: '1600933873712' alias: 'bedroom: turn off all house lights on bedside button hold' description: '' trigger: - platform: state entity_id: sensor.nicks_bedside_button_action to: hold - platform: state entity_id: sensor.kates_bedside_button_action to: hold condition: [] action: - service: script.turn_on target: entity_id: script.turn_off_all_house_lights mode: single - id: '1606546290444' alias: 'ios: turn off all lights on app action fired' description: '' trigger: - platform: event event_type: ios.notification_action_fired event_data: actionName: TURN_OFF_LIGHTS context: {} condition: [] action: - service: script.turn_on target: entity_id: script.turn_off_all_house_lights mode: single - id: '1625471872471' alias: 'bedroom: turn off electric blanket at startup' description: '' trigger: - platform: homeassistant event: start condition: [] action: - service: switch.turn_off target: entity_id: switch.electric_blanket mode: single - id: '1733053898376' alias: Turn off fan at 9am description: '' triggers: - trigger: time at: 09:00:00 conditions: - condition: state entity_id: fan.bedroom_fan state: 'on' actions: - action: fan.turn_off metadata: {} data: {} target: entity_id: fan.bedroom_fan mode: single - id: '1661736577355' alias: 'study: turn off grow light at sunset' description: '' trigger: - platform: sun event: sunset offset: -00:30:00 condition: [] action: - service: light.turn_off data: {} target: entity_id: light.study_grow_light mode: single - id: '1584944287383' alias: 'presence: turn off house lights when everyone leaves' description: '' trigger: - entity_id: group.all_people for: 00:05:00 platform: state to: not_home condition: - condition: state entity_id: input_boolean.guest_mode state: 'off' action: - service: script.turn_on target: entity_id: script.turn_off_all_house_lights - id: '1584945101124' alias: 'living_room: turn off LED strip when the TV turns off' description: '' trigger: - entity_id: media_player.living_room_tv from: 'on' platform: state to: 'off' condition: [] action: - service: light.turn_off entity_id: light.tv_led_strip - id: '1669714840315' alias: 'outdoor: turn off tree lights at 10:00pm' description: '' trigger: - platform: time at: '22:00:00' - platform: homeassistant event: start condition: - condition: or conditions: - condition: sun before: sunset - condition: time after: '21:59:59' action: - service: light.turn_off data: {} target: entity_id: light.tree_lights mode: single - id: '1584944372303' alias: 'living_room: turn off tv when everyone leaves' description: Turn off the TV 15 minutes after everyone leaves trigger: - entity_id: group.all_people for: 00:15:00 platform: state to: not_home condition: [] action: - data: {} entity_id: media_player.living_room_tv service: media_player.turn_off - id: '1584944740804' alias: 'living_room: turn on christmas tree at sunset when people home' description: '' trigger: - event: sunset offset: -00:30:00 platform: sun condition: - condition: state entity_id: group.all_people state: home action: - service: light.turn_on data: {} entity_id: light.christmas_tree - id: '1603018075175' alias: 'bedroom: turn on the bedroom lamps before bed' description: '' trigger: - platform: time at: '22:15:00' condition: - condition: state entity_id: group.all_people state: home - condition: state entity_id: binary_sensor.in_bed state: 'off' - condition: or conditions: - condition: state entity_id: media_player.living_room_tv state: 'on' - condition: state entity_id: binary_sensor.some_lights_on state: 'on' action: - service: light.turn_on data: {} entity_id: light.bedroom_lamps mode: single - id: '1600774622348975' alias: 'dishwasher status: turn on on first motion detected, once per day, after sunrise' description: '' trigger: - platform: time at: '11:00:00' - platform: state entity_id: binary_sensor.internal_motion_occupancy to: 'on' condition: - condition: template value_template: '{{ state_attr(''automation.dishwasher_status_turn_on_on_first_motion_detected_once_per_day_after_sunrise'', ''last_triggered'') < now().replace(hour=3, minute=0, second=0) }}' - condition: state entity_id: group.all_people state: home - condition: sun after: sunrise action: - service: light.turn_on data: {} entity_id: - light.dishwasher_main - action: select.select_option metadata: {} data: option: '{{ states(''input_select.dishwasher_previous_preset_state'') }}' target: entity_id: select.dishwasher_preset mode: single - id: '1625471796352' alias: 'bedroom: turn on electric blanket when tv turns off after 10:00pm' description: '' trigger: - platform: state entity_id: media_player.living_room_tv from: 'on' to: 'off' for: 00:00:30 condition: - condition: or conditions: - condition: time after: '22:00:00' - condition: time before: 01:00:00 - condition: state entity_id: group.all_people state: home action: - condition: not conditions: - condition: state entity_id: switch.electric_blanket state: unavailable - service: switch.turn_on target: entity_id: switch.electric_blanket mode: single - id: '160077462353745' alias: 'energy led: turn on on first motion detected, once per day, after sunrise' description: '' trigger: - platform: time at: '11:00:00' - platform: state entity_id: binary_sensor.internal_motion_occupancy to: 'on' condition: - condition: template value_template: '{{ state_attr(''automation.energy_led_turn_on_on_first_motion_detected_once_per_day_after_sunrise'', ''last_triggered'') < now().replace(hour=3, minute=0, second=0) }}' - condition: state entity_id: group.all_people state: home - condition: sun after: sunrise action: - service: light.turn_on data: {} entity_id: - light.dishwasher_main - light.dishwasher - service: automation.trigger entity_id: - automation.energy_status_linear mode: single - id: '1722076269686' alias: 'bathroom: turn on fan on shower humidity' description: '' trigger: - platform: numeric_state entity_id: - sensor.bathroom_climate_humidity for: hours: 0 minutes: 0 seconds: 30 above: 90 condition: [] action: - service: fan.turn_on metadata: {} data: {} target: entity_id: fan.bathroom mode: single - id: '1661736521437' alias: 'study: turn on grow light at sunrise if low brightness' description: '' trigger: - platform: sun event: sunrise offset: 0 condition: - condition: numeric_state entity_id: sensor.study_shelves_illuminance_illuminance below: '500' action: - service: light.turn_on data: {} target: entity_id: light.study_grow_light mode: single - id: '1584944760804' alias: 'living_room: turn on lamp at sunset when people home' description: '' trigger: - event: sunset offset: -00:30:00 platform: sun condition: - condition: state entity_id: group.all_people state: home action: - service: light.turn_on data: {} entity_id: light.living_room_lamp - if: - condition: state entity_id: light.stitch_lamp state: 'off' then: - service: light.turn_on data: brightness_pct: 30 entity_id: - light.stitch_lamp - id: '1584944183272' alias: 'living_room: turn on lamp on apartment door open' description: "Turn on the living room lamp when the apartment door opens when;\n\ \ * at night\n * no presence detected (if presence is detected, the lamp will\ \ already be on)" trigger: - device_id: e824e2b2a4ff4dea9b16fd7f6234dfc1 domain: binary_sensor entity_id: binary_sensor.front_door_contact platform: device type: opened condition: - after: sunset after_offset: -00:60:00 condition: sun - condition: state entity_id: group.all_people state: not_home - condition: state entity_id: input_boolean.away_mode state: 'off' action: - service: light.turn_on data: {} entity_id: light.living_room_lamp - if: - condition: state entity_id: light.stitch_lamp state: 'off' then: - service: light.turn_on data: brightness_pct: 30 entity_id: - light.stitch_lamp - id: '1605957739472' alias: 'living_room: turn on lamp on living motion detected at night' description: '' trigger: - platform: state entity_id: - binary_sensor.living_room_motion_occupancy from: 'off' to: 'on' id: living_room condition: - condition: or conditions: - condition: time after: '23:00:00' - condition: sun before: sunrise - condition: state entity_id: light.living_room_lamp state: 'off' - condition: state entity_id: input_boolean.guest_mode state: 'off' - condition: template value_template: '{{ trigger.id != ''living_room'' or states(''vacuum.crystal'') not in [''cleaning'', ''returning''] }} ' action: - service: light.turn_on entity_id: light.living_room_lamp - wait_for_trigger: - platform: state entity_id: binary_sensor.internal_motion_occupancy from: 'on' to: 'off' for: 00:01:00 - service: light.turn_off data: {} entity_id: light.living_room_lamp mode: single - id: '1584944187934' alias: 'living_room: turn on lamp on presence detected' description: '' trigger: - entity_id: group.all_people from: not_home platform: state to: home condition: - after: sunset after_offset: -00:60:00 condition: sun action: - service: light.turn_on data: {} entity_id: light.living_room_lamp - if: - condition: state entity_id: light.stitch_lamp state: 'off' then: - service: light.turn_on data: brightness_pct: 30 entity_id: - light.stitch_lamp - id: '1584944904008' alias: 'living_room: turn on lamp when the TV turns on' description: Turn on the lamp when the TV turns on and it is after sunset trigger: - entity_id: media_player.living_room_tv from: 'off' platform: state to: 'on' condition: - after: sunset after_offset: -00:30:00 condition: sun action: - device_id: 8c28feb17fb74368ac8b2a30f2a66355 domain: switch entity_id: switch.living_room_lamp type: turn_on - id: '1584944974594' alias: 'living_room: turn on the LED strip when the TV turns on or source changes' description: '' trigger: - entity_id: media_player.living_room_tv from: 'off' platform: state to: 'on' condition: - condition: state entity_id: media_player.living_room_tv state: 'on' action: - service: select.select_option data: option: '* Color 1' target: entity_id: select.tv_led_strip_color_palette - data: rgb_color: - 255 - 170 - 102 brightness: 128 effect: Solid entity_id: light.tv_led_strip service: light.turn_on - id: '1753008304907' alias: 'ac: turn on/off heat transfer' description: '' triggers: - trigger: state entity_id: - binary_sensor.heat_transfer_fan_desired_state to: 'on' for: hours: 0 minutes: 1 seconds: 0 id: turn_on - trigger: state entity_id: - binary_sensor.heat_transfer_fan_desired_state to: 'off' for: hours: 0 minutes: 0 seconds: 30 id: turn_off conditions: [] actions: - choose: - conditions: - condition: trigger id: - turn_on sequence: - action: switch.turn_on metadata: {} data: {} target: entity_id: switch.heat_transfer - conditions: - condition: trigger id: - turn_off sequence: - action: switch.turn_off metadata: {} data: {} target: entity_id: switch.heat_transfer mode: single - id: '1626174525614' alias: 'kitchen ambiance: turn on when motion detected at night' description: '' trigger: - platform: state entity_id: binary_sensor.hallway_motion_occupancy from: 'off' to: 'on' - platform: state entity_id: binary_sensor.kitchen_motion_occupancy from: 'off' to: 'on' id: kitchen condition: - condition: or conditions: - condition: time after: '23:00' - condition: sun before: sunrise - condition: state entity_id: light.kitchen_strip state: 'off' - condition: state entity_id: light.bench_strip state: 'off' - condition: not conditions: - condition: state entity_id: light.kitchen state: 'on' - condition: state entity_id: input_boolean.guest_mode state: 'off' - condition: state entity_id: group.all_people state: home - condition: template value_template: '{{ trigger.id != ''kitchen'' or states(''vacuum.crystal'') not in [''cleaning'', ''returning''] }} ' action: - service: light.turn_on data: brightness_pct: 30 target: entity_id: - light.kitchen_strip - light.bench_strip - service: light.turn_on data: transition: 5 target: entity_id: - light.kitchen_strip - light.bench_strip - wait_for_trigger: - platform: state entity_id: binary_sensor.internal_motion_occupancy from: 'on' to: 'off' for: 00:01:00 - platform: state entity_id: light.kitchen from: 'off' to: 'on' - platform: state entity_id: light.lounge from: 'off' to: 'on' - platform: state entity_id: light.kitchen_strip from: 'on' to: 'off' - platform: state entity_id: light.bench_strip from: 'on' to: 'off' timeout: 00:10:00 continue_on_timeout: true - service: light.turn_off target: entity_id: - light.kitchen_strip - light.bench_strip mode: single - id: '1739261808471' alias: turn on side passage light at sunset description: '' triggers: - trigger: sun event: sunset offset: 0 conditions: [] actions: - action: light.turn_on metadata: {} data: {} target: entity_id: light.side_passage mode: single - id: '160077462353445' alias: 'kitchen stat display: turn on on first motion detected, once per day, after sunrise' description: '' trigger: - platform: time at: '11:00:00' - platform: state entity_id: binary_sensor.internal_motion_occupancy to: 'on' condition: - condition: template value_template: '{{ state_attr(''automation.kitchen_stat_display_turn_on_on_first_motion_detected_once_per_day_after_sunrise'', ''last_triggered'') < now().replace(hour=3, minute=0, second=0) }}' - condition: state entity_id: group.all_people state: home - condition: sun after: sunrise action: - service: light.turn_on data: {} entity_id: - light.kitchen_stat_display_display_backlight mode: single - id: '1669714700223' alias: 'outdoor: turn tree lights on at sunset' description: 'outdoor: turn tree lights on at sunset' trigger: - platform: sun event: sunset offset: 30 action: - service: light.turn_on data: {} target: entity_id: light.tree_lights mode: single - id: '1584944483272' alias: 'living_room: turn on christmas tree on apartment door open' description: "Turn on the christmas tree when the apartment door opens when;\n \ \ * at night\n * no presence detected (if presence is detected, the tree will\ \ already be on)" trigger: - platform: state entity_id: binary_sensor.front_door_contact from: 'on' to: 'off' condition: - after: sunset after_offset: -00:60:00 condition: sun - condition: state entity_id: group.all_people state: not_home - condition: state entity_id: input_boolean.away_mode state: 'off' action: - service: light.turn_on data: {} entity_id: light.christmas_tree - id: '9847983723966' alias: 'kitchen ambiance: turn on when front door opens and no presence' description: '' trigger: - platform: state entity_id: binary_sensor.front_door_contact from: 'off' to: 'on' condition: - condition: or conditions: - condition: sun before: sunrise - condition: sun after: sunset - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: not conditions: - condition: state entity_id: light.kitchen state: 'on' - condition: state entity_id: group.all_people state: not_home action: - service: light.turn_on data: brightness_pct: 10 target: entity_id: - light.kitchen_strip - light.bench_strip - service: light.turn_on target: entity_id: - light.kitchen_strip - light.bench_strip mode: single - id: '1584444187934' alias: 'living_room: turn on christmas tree on presence detected' description: '' trigger: - entity_id: group.all_people from: not_home platform: state to: home condition: - after: sunset after_offset: -00:60:00 condition: sun action: - service: light.turn_on data: {} entity_id: light.christmas_tree - id: '16261761231966' alias: 'kitchen ambiance: turn on when presence is detected' description: '' trigger: - platform: state entity_id: group.all_people from: not_home to: home condition: - after: sunset after_offset: -00:60:00 condition: sun - condition: state entity_id: input_boolean.away_mode state: 'off' - condition: not conditions: - condition: state entity_id: light.kitchen state: 'on' action: - service: light.turn_on data: brightness_pct: 10 target: entity_id: - light.kitchen_strip - light.bench_strip - service: light.turn_on target: entity_id: - light.kitchen_strip - light.bench_strip mode: single - alias: 'dog_door: unlock dog door when arriving home' id: '2398473894732294848' mode: single trigger: - platform: state entity_id: group.all_people to: home condition: [] action: - service: lock.unlock data: {} target: entity_id: lock.backyard_locked_in - id: '1591600935265' alias: on UPS state change, send a notification description: '' trigger: - entity_id: sensor.ups_status platform: state condition: [] action: - data_template: message: 'The UPS status changed to {{ trigger.from_state.state }} to {{ trigger.to_state.state }} ' service: notify.admins - id: '1753869972667' alias: 'backyard: vege patch slave to pergola light' description: '' triggers: - trigger: state entity_id: - light.pergola to: 'on' id: 'on' - trigger: state entity_id: - light.pergola to: 'off' id: 'off' conditions: [] actions: - choose: - conditions: - condition: trigger id: - 'on' sequence: - action: light.turn_on metadata: {} data: {} target: entity_id: light.vege_patch - conditions: - condition: trigger id: - 'off' sequence: - action: light.turn_off metadata: {} data: {} target: entity_id: light.vege_patch mode: single - id: '1668130130306' alias: Wake entry tablet on Front Door Activity description: '' trigger: - platform: state entity_id: - binary_sensor.front_door_doorbell from: 'off' to: 'on' - platform: state entity_id: - binary_sensor.front_door_person_detected from: 'off' to: 'on' condition: [] action: - service: light.turn_on target: entity_id: light.hallway_tablet_fully_screen - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: browser_mod.popup data: size: wide timeout: 180000 title: Front Door content: show_state: false show_name: false camera_view: live type: picture-entity entity: camera.front_door_high name: Front Door camera_image: camera.front_door_high tap_action: action: none hold_action: action: none target: device_id: entry-tablet mode: single - id: '16681301334584' alias: Wake entry tablet on Hallway Motion description: '' trigger: - platform: state entity_id: - binary_sensor.hallway_motion_occupancy from: 'off' to: 'on' condition: [] action: - service: light.turn_on target: entity_id: light.hallway_tablet_fully_screen mode: single - id: '1667282153223234' alias: 'irrigation: water front and back herbs at midday if hot' trigger: - platform: time at: '13:00:00' condition: - condition: or conditions: - alias: moisture sensor unavailable condition: state entity_id: sensor.front_herbs_moisture state: unavailable - alias: moisture less than 60% condition: numeric_state entity_id: sensor.front_herbs_moisture below: 60 - alias: less than 5mm rain forecast condition: numeric_state entity_id: sensor.oatley_rain_amount_min_0 below: 5 - alias: today max temperature greater than 27 condition: numeric_state entity_id: sensor.outdoor_temperature_max_8h above: 27 action: - service: notify.mobile_app_nicks_iphone data: message: Turning on front and back herbs for a quick spritz title: Irrigation - service: switch.turn_on data: {} target: entity_id: - switch.front_herbs - switch.back_herbs mode: single - id: '9304857534897' alias: 'irrigation: water front and back lawns at sunrise if hot weather forecast' trigger: - platform: sun event: sunrise offset: -00:30:00 condition: - alias: less than 5mm rain forecast condition: numeric_state entity_id: sensor.oatley_rain_amount_min_0 below: 5 - alias: forecast max temperature greater than 26 condition: numeric_state entity_id: sensor.oatley_temp_max_0 above: 26 action: - service: notify.mobile_app_nicks_iphone data: message: Watering lawns as it will be hot today title: Irrigation - service: switch.turn_on data: {} target: entity_id: - switch.front_lawn - switch.back_lawn mode: single - id: '4328957543897' alias: 'irrigation: water front and back lawns at sunset if it was hot today' trigger: - platform: sun event: sunset condition: - alias: less than 5mm rain forecast condition: numeric_state entity_id: sensor.oatley_rain_amount_min_0 below: 5 - alias: today max temperature greater than 28 condition: numeric_state entity_id: sensor.outdoor_temperature_max_8h above: 28 action: - service: notify.mobile_app_nicks_iphone data: message: Watering lawns as it was hot today title: Irrigation - service: switch.turn_on data: {} target: entity_id: - switch.front_lawn - switch.back_lawn mode: single