1406 lines
38 KiB
YAML
1406 lines
38 KiB
YAML
- id: '1702687858384'
|
|
alias: Garden Tower Pumps - Turn On
|
|
description: Turn the Garden Tower pumps on after being off for 45 minutes
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- switch.garden_tower_pumps_switch
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.garden_tower_pumps_switch
|
|
mode: single
|
|
- id: '1702687906351'
|
|
alias: Garden Tower Pumps - Turn Off
|
|
description: Turn the Garden Tower pumps off after being on for 5 minutes
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- switch.garden_tower_pumps_switch
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.garden_tower_pumps_switch
|
|
mode: single
|
|
- id: '1702687973093'
|
|
alias: Garden Tower Pumps - Toggle After Reboot
|
|
description: Toggle the Garden Tower pump switch when Home Assistant starts
|
|
trigger:
|
|
- platform: homeassistant
|
|
event: start
|
|
action:
|
|
- service: switch.toggle
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.garden_tower_pumps_switch
|
|
mode: single
|
|
- id: '1702688753601'
|
|
alias: Turn Off Grow Tent Fans
|
|
description: Turn the grow tent fans off at 7pm
|
|
trigger:
|
|
- platform: time
|
|
at: '19:00:00'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.grow_tent_fans_switch
|
|
mode: single
|
|
- id: '1702688838173'
|
|
alias: Turn On Grow Tent Fans
|
|
description: Turn on grow tent fans at 7am
|
|
trigger:
|
|
- platform: time
|
|
at: 07:00:00
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.grow_tent_fans_switch
|
|
mode: single
|
|
- id: '1702689491954'
|
|
alias: Guest Bedroom Door Opened Notification
|
|
description: Send a phone alert when the guest bedroom door is opened.
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.guest_bedroom_door_sensor_ias_zone
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: notify.mobile_app_tis_iphone
|
|
data:
|
|
message: Guest bedroom door opened
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
mode: single
|
|
- id: '1703623708618'
|
|
alias: Leak Detection & Notifier
|
|
description: ''
|
|
use_blueprint:
|
|
path: tteggelit/leak-detector-notifier.yaml
|
|
input:
|
|
notify_device: c649c07764020e9d99e38656cf640e62
|
|
- id: '1703637809076'
|
|
alias: Turn On Holiday Decorations
|
|
description: Turn on holiday decorations sunset
|
|
triggers:
|
|
- event: sunset
|
|
offset: 0
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.studio_window_light_outlet_switch
|
|
- switch.loft_window_lights_outlet_switch_2
|
|
- switch.daylan_s_window_lights_outlet_switch_3
|
|
- switch.aidan_s_window_lights_outlet_switch_4
|
|
- switch.front_decorations
|
|
action: switch.turn_on
|
|
mode: single
|
|
- id: '1703637961990'
|
|
alias: Turn Off Holiday Decorations
|
|
description: Turn off the holiday decorations at 10:30pm
|
|
triggers:
|
|
- at: '22:30:00'
|
|
trigger: time
|
|
conditions: []
|
|
actions:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.studio_window_light_outlet_switch
|
|
- switch.loft_window_lights_outlet_switch_2
|
|
- switch.front_decorations
|
|
- switch.living_room_smart_plug_2_switch
|
|
action: switch.turn_off
|
|
mode: single
|
|
- id: '1703648655388'
|
|
alias: Basement Freezer Open Notification
|
|
description: Notify if the freezer is left open for more than 2 minutes
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.basement_freezer_opening
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 2
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- service: notify.mobile_app_tis_iphone
|
|
data:
|
|
message: Basement freezer left open
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
mode: single
|
|
- id: '1703693744670'
|
|
alias: Daylan's Door Opened Notification
|
|
description: Notify when Daylan's door opens during the night
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.daylan_s_door_sensor_opening_2
|
|
to: 'on'
|
|
condition:
|
|
- condition: time
|
|
after: '21:30:00'
|
|
before: 06:00:00
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
action:
|
|
- service: notify.mobile_app_tis_iphone
|
|
data:
|
|
message: Daylan's door opened during the night
|
|
mode: single
|
|
- id: '1703693873687'
|
|
alias: Turn Off Boys' Holiday Decorations
|
|
description: Turn off boys' window holiday lights at 9pm
|
|
triggers:
|
|
- at: '21:00:00'
|
|
trigger: time
|
|
conditions: []
|
|
actions:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.daylan_s_window_lights_outlet_switch_3
|
|
- switch.aidan_s_window_lights_outlet_switch_4
|
|
action: switch.turn_off
|
|
mode: single
|
|
- id: '1703714762428'
|
|
alias: Turn On Kitchen Cabinet Lights (Evening)
|
|
description: Turn on kitchen cabinet lights 45 minutes before sunset
|
|
triggers:
|
|
- event: sunset
|
|
offset: -00:45:00
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- target:
|
|
entity_id: scene.normal_cabinet_lights
|
|
metadata: {}
|
|
action: scene.turn_on
|
|
data: {}
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.living_room_side_light_switch
|
|
mode: single
|
|
- id: '1703715453766'
|
|
alias: Turn Off Kitchen Cabinet Lights
|
|
description: Turn off kitchen cabinet lights
|
|
triggers:
|
|
- at: 01:00:00
|
|
trigger: time
|
|
- event: sunrise
|
|
offset: 00:30:00
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.kitchen_cabinet_lights_left_light_2
|
|
- light.kitchen_cabinet_lights_right_light_3
|
|
action: light.turn_off
|
|
mode: single
|
|
- id: '1704080218841'
|
|
alias: Turn On Pantry Light
|
|
description: Turn on pantry light when motion detected
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.pantry_motion_sensor_motion_4
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.pantry_light
|
|
mode: single
|
|
- id: '1704080276347'
|
|
alias: Turn Off Pantry Light
|
|
description: Turn off pantry light when motion is no longer detected
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.pantry_motion_sensor_motion_4
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.pantry_light
|
|
mode: single
|
|
- id: '1704080363630'
|
|
alias: Turn On Master Closet Light
|
|
description: Turn on master closet light when motion is detected
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_closet_light_motion_detection
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.master_closet_light
|
|
mode: single
|
|
- id: '1704080533451'
|
|
alias: Turn Off Master Closet Light
|
|
description: Turn off master closet light when motion is no longer detected
|
|
triggers:
|
|
- entity_id:
|
|
- binary_sensor.master_closet_light_motion_detection
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- target:
|
|
entity_id:
|
|
- switch.master_closet_light
|
|
data: {}
|
|
action: switch.turn_off
|
|
mode: single
|
|
- id: '1704080588094'
|
|
alias: Carriage Lights - Turn On
|
|
description: Turn on carriage lights at sunset
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.carriage_lights
|
|
mode: single
|
|
- id: '1704080632778'
|
|
alias: Carriage Lights - Turn Off
|
|
description: Turn off carriage lights at sunrise
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
target:
|
|
entity_id:
|
|
- switch.carriage_lights
|
|
data: {}
|
|
mode: single
|
|
- id: '1704152978232'
|
|
alias: Deck Lights - Turn On
|
|
description: Turn on the deck lights at sunset
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: 0
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.deck_lights
|
|
mode: single
|
|
- id: '1704153027046'
|
|
alias: Deck Lights - Turn Off
|
|
description: Turn off the deck lights at 10:30
|
|
trigger:
|
|
- platform: time
|
|
at: '22:30:00'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.deck_lights
|
|
mode: single
|
|
- id: '1704753058492'
|
|
alias: Amy and Ti Left Home
|
|
description: Take some actions when both Amy and Ti aren't home
|
|
trigger:
|
|
- platform: device
|
|
device_id: c649c07764020e9d99e38656cf640e62
|
|
domain: device_tracker
|
|
entity_id: 5965ecf66909f3a0f926b23f8d4cef8b
|
|
type: leaves
|
|
zone: zone.home
|
|
- platform: device
|
|
device_id: ba46bf63c37c0f5c0e4c054b5d7286c7
|
|
domain: device_tracker
|
|
entity_id: 82547043c87592e35391f94b52bc7d8c
|
|
type: leaves
|
|
zone: zone.home
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: device
|
|
device_id: c649c07764020e9d99e38656cf640e62
|
|
domain: device_tracker
|
|
entity_id: 5965ecf66909f3a0f926b23f8d4cef8b
|
|
type: is_not_home
|
|
- condition: device
|
|
device_id: ba46bf63c37c0f5c0e4c054b5d7286c7
|
|
domain: device_tracker
|
|
entity_id: 82547043c87592e35391f94b52bc7d8c
|
|
type: is_not_home
|
|
action:
|
|
- service: notify.mobile_app_tis_iphone
|
|
data:
|
|
message: Amy and Ti left home
|
|
mode: single
|
|
- id: '1705443498464'
|
|
alias: Low Battery Notification and Todo Generator
|
|
description: Find sensors that have low batteries that need a todo created, notify
|
|
about the sensor battery, and create a todo in Todoist
|
|
trigger:
|
|
- platform: time
|
|
at: 09:00:00
|
|
condition: []
|
|
action:
|
|
- service: script.todo_test
|
|
data: {}
|
|
mode: single
|
|
- id: '1711215722258'
|
|
alias: Alarm Away Actions
|
|
description: Check various states if the house alarm is set to away.
|
|
triggers:
|
|
- entity_id:
|
|
- alarm_control_panel.abode_alarm
|
|
to: armed_away
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- metadata: {}
|
|
data:
|
|
preset_mode: away_indefinitely
|
|
target:
|
|
entity_id: climate.thermostat
|
|
action: climate.set_preset_mode
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: alarm_control_panel.ring_location_mode
|
|
action: alarm_control_panel.alarm_arm_away
|
|
- alias: If Front Door is open, then notify, otherwise check if it's locked
|
|
if:
|
|
- condition: state
|
|
entity_id: binary_sensor.front_door_sensor
|
|
state: 'on'
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Front door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- data:
|
|
message: Front door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
else:
|
|
- alias: If the front door is unlocked, then attempt to lock it and notify if
|
|
locking fails
|
|
if:
|
|
- condition: state
|
|
entity_id: lock.front_door_lock_door_lock
|
|
state: unlocked
|
|
then:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: lock.front_door_lock_door_lock
|
|
action: lock.lock
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
alias: Wait 30 seconds
|
|
- alias: If Front Door still unlocked, notify
|
|
if:
|
|
- condition: state
|
|
entity_id: lock.front_door_lock_door_lock
|
|
state: unlocked
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Front door unlocked!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- data:
|
|
message: Front door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- alias: If the garage door is open, then attempt to close it and if that fails,
|
|
notify
|
|
if:
|
|
- condition: state
|
|
entity_id: cover.garage_door
|
|
state: open
|
|
then:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: cover.garage_door
|
|
action: cover.close_cover
|
|
- delay:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- alias: Notify if the garage door is still open
|
|
if:
|
|
- condition: state
|
|
entity_id: cover.garage_door
|
|
state: open
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- data:
|
|
message: Garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- alias: If the 3rd car garage door is open, then attempt to close it and if that
|
|
fails, notify
|
|
if:
|
|
- condition: state
|
|
entity_id: binary_sensor.third_car_garage_door_opening
|
|
state: 'on'
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Third car garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- data:
|
|
message: Third car garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.christmas_tree_switch_3
|
|
- switch.living_room_air_purifier_switch
|
|
- switch.living_room_side_light_switch
|
|
mode: single
|
|
- id: '1711216712567'
|
|
alias: Alarm Disarmed Actions
|
|
description: Actions to run when the alarm is disarmed
|
|
triggers:
|
|
- entity_id:
|
|
- alarm_control_panel.abode_alarm
|
|
to: disarmed
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- alias: Turn on cabinet and living room side lights if it's dark
|
|
if:
|
|
- condition: sun
|
|
before: sunrise
|
|
before_offset: +00:30:00
|
|
after: sunset
|
|
after_offset: -00:30:00
|
|
then:
|
|
- metadata: {}
|
|
target:
|
|
entity_id: scene.normal_cabinet_lights
|
|
action: scene.turn_on
|
|
data: {}
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.living_room_side_light_switch
|
|
- metadata: {}
|
|
data:
|
|
preset_mode: home
|
|
target:
|
|
entity_id: climate.thermostat
|
|
action: climate.set_preset_mode
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: alarm_control_panel.ring_location_mode
|
|
action: alarm_control_panel.alarm_disarm
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.christmas_tree_switch_3
|
|
- switch.living_room_air_purifier_switch
|
|
mode: single
|
|
- id: '1711921755033'
|
|
alias: Alarm Home Actions
|
|
description: Check various states if the house alarm is set to home.
|
|
triggers:
|
|
- entity_id:
|
|
- alarm_control_panel.abode_alarm
|
|
to: armed_home
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- data:
|
|
entity_id: climate.thermostat
|
|
action: ecobee.resume_program
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: alarm_control_panel.ring_location_mode
|
|
action: alarm_control_panel.alarm_arm_home
|
|
- alias: If Front Door is open, then notify, otherwise check if it's locked
|
|
if:
|
|
- condition: state
|
|
entity_id: binary_sensor.front_door_sensor
|
|
state: 'on'
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Front door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- metadata: {}
|
|
data:
|
|
message: Front door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
else:
|
|
- alias: If the front door is unlocked, then attempt to lock it and notify if
|
|
locking fails
|
|
if:
|
|
- condition: state
|
|
entity_id: lock.front_door_lock_door_lock
|
|
state: unlocked
|
|
then:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: lock.front_door_lock_door_lock
|
|
action: lock.lock
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
alias: Wait 30 seconds
|
|
- alias: If Front Door still unlocked, notify
|
|
if:
|
|
- condition: state
|
|
entity_id: lock.front_door_lock_door_lock
|
|
state: unlocked
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Front door unlocked!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- metadata: {}
|
|
data:
|
|
message: Front door unlocked!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- alias: If the garage door is open, then attempt to close it and if that fails,
|
|
notify
|
|
if:
|
|
- condition: state
|
|
entity_id: cover.garage_door
|
|
state: open
|
|
then:
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: cover.garage_door
|
|
action: cover.close_cover
|
|
- delay:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
milliseconds: 0
|
|
- alias: Notify if the garage door is still open
|
|
if:
|
|
- condition: state
|
|
entity_id: cover.garage_door
|
|
state: open
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- metadata: {}
|
|
data:
|
|
message: Garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- alias: If the third car garage door is open notify
|
|
if:
|
|
- condition: state
|
|
entity_id: binary_sensor.third_car_garage_door_opening_3
|
|
state: 'on'
|
|
then:
|
|
- metadata: {}
|
|
data:
|
|
message: Third car garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_tis_iphone
|
|
- metadata: {}
|
|
data:
|
|
message: Third car garage door is open!
|
|
data:
|
|
push:
|
|
sound:
|
|
name: default
|
|
critical: 1
|
|
volume: 1
|
|
action: notify.mobile_app_amys_iphone
|
|
- action: media_player.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: media_player.living_room_tv
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.christmas_tree_switch_3
|
|
- switch.living_room_air_purifier_switch
|
|
- switch.living_room_side_light_switch
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.kitchen_cabinet_lights_left_light_2
|
|
- light.kitchen_cabinet_lights_right_light_3
|
|
action: light.turn_off
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.deck_lights
|
|
action: switch.turn_off
|
|
- metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.living_room_lights
|
|
action: light.turn_off
|
|
mode: single
|
|
- id: '1714824591977'
|
|
alias: Turn On HVAC Fan to Recirculate Air
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- sensor.guest_bedroom_temperature
|
|
above: sensor.current_thermostat_setpoint
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
trigger: numeric_state
|
|
- entity_id:
|
|
- sensor.master_bedroom_temperature
|
|
above: sensor.current_thermostat_setpoint
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
trigger: numeric_state
|
|
- entity_id:
|
|
- sensor.daylans_bedroom_temperature
|
|
above: sensor.current_thermostat_setpoint
|
|
for:
|
|
hours: 0
|
|
minutes: 5
|
|
seconds: 0
|
|
trigger: numeric_state
|
|
- entity_id:
|
|
- alarm_control_panel.abode_alarm
|
|
to: armed_away
|
|
for:
|
|
hours: 0
|
|
minutes: 45
|
|
seconds: 0
|
|
trigger: state
|
|
enabled: true
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: climate.thermostat
|
|
attribute: hvac_action
|
|
state: idle
|
|
- condition: state
|
|
entity_id: sensor.current_thermostat_fan_state
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: climate.thermostat
|
|
enabled: true
|
|
state: cool
|
|
- condition: state
|
|
entity_id: climate.thermostat
|
|
state: heat_cool
|
|
actions:
|
|
- target:
|
|
entity_id: climate.thermostat
|
|
data:
|
|
fan_mode: 'on'
|
|
action: climate.set_fan_mode
|
|
mode: single
|
|
- id: '1715649661226'
|
|
alias: Turn Off HVAC Fan Recirculation
|
|
description: Sets the thermostat's fan mode back to auto after 15 minutes of the
|
|
fan running
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- climate.thermostat
|
|
attribute: fan_mode
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
- platform: state
|
|
entity_id:
|
|
- climate.thermostat
|
|
attribute: hvac_action
|
|
to: cooling
|
|
condition: []
|
|
action:
|
|
- service: climate.set_fan_mode
|
|
target:
|
|
entity_id: climate.thermostat
|
|
data:
|
|
fan_mode: auto
|
|
mode: single
|
|
- id: '1736628413798'
|
|
alias: Turn Off Living Room Lights
|
|
description: Turn off living room lights after sunrise
|
|
triggers:
|
|
- event: sunrise
|
|
offset: 00:30:00
|
|
trigger: sun
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.living_room_side_light_switch
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: light.living_room_lights
|
|
mode: single
|
|
- id: '1743037637897'
|
|
alias: Turn On Basement Grow Lights
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 06:00:00
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.basement_grow_lights_switch
|
|
mode: single
|
|
- id: '1743037694647'
|
|
alias: Turn Off Basement Grow Lights
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: '18:00:00'
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.basement_grow_lights_switch
|
|
mode: single
|
|
- id: '1749577082608'
|
|
alias: Front Door Unlocked Notification
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- lock.front_door_lock_door_lock
|
|
to: unlocked
|
|
for:
|
|
hours: 1
|
|
minutes: 0
|
|
seconds: 0
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.front_door_sensor
|
|
state: 'off'
|
|
for:
|
|
hours: 1
|
|
minutes: 0
|
|
seconds: 0
|
|
actions:
|
|
- action: notify.mobile_app_tis_iphone
|
|
metadata: {}
|
|
data:
|
|
message: Front door unlocked for over an hour
|
|
mode: single
|
|
- id: '1753314059071'
|
|
alias: Aidan's Night Stand Light Automation
|
|
description: ''
|
|
use_blueprint:
|
|
path: Malte/zha-ikea-four-button-remote-styrbar-for-lights-e2001-e2002.yaml
|
|
input:
|
|
remote: e0e52daeb29bc802759b6bdbb18df41b
|
|
light:
|
|
entity_id: light.aidan_s_night_stand_light
|
|
button_left_short: []
|
|
- alias: Timed Hot Water Recirculation
|
|
description: Recirculates hot water every 15 minutes but only while the alarm is
|
|
disarmed (i.e., someone's home and not sleeping) and not between 1:30am and 4:00am
|
|
triggers:
|
|
- entity_id:
|
|
- binary_sensor.water_heater_recirculation
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 20
|
|
seconds: 0
|
|
trigger: state
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 04:00:00
|
|
before: 01:30:00
|
|
- condition: numeric_state
|
|
entity_id: sensor.rinnai_201900685wzd5_water_flow_rate
|
|
below: 1
|
|
enabled: true
|
|
- condition: state
|
|
entity_id: alarm_control_panel.abode_alarm
|
|
state: disarmed
|
|
actions:
|
|
- data:
|
|
recirculation_minutes: 5
|
|
target:
|
|
entity_id: water_heater.rinnai_201900685wzd5_water_heater
|
|
action: rinnai.start_recirculation
|
|
mode: single
|
|
- alias: Motion Hot Water Recirculation
|
|
description: Recirculate the hot water when motion is detected in the any of the
|
|
bathrooms and water hasn't been recirculated in the last 15 minutes
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_bathroom_motion_sensor_motion_2
|
|
- binary_sensor.downstairs_bathroom_motion_sensor_motion_3
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.water_heater_recirculation
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
enabled: true
|
|
action:
|
|
- service: rinnai.start_recirculation
|
|
data:
|
|
recirculation_minutes: 5
|
|
target:
|
|
entity_id: water_heater.rinnai_201900685wzd5_water_heater
|
|
mode: single
|
|
- alias: Recirculate Hot Water After Returning Home
|
|
description: Recirculate the hot water if we've been away from home for more than
|
|
30 minutes
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- alarm_control_panel.abode_alarm
|
|
to: disarmed
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.water_heater_recirculation
|
|
state: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
action:
|
|
- service: rinnai.start_recirculation
|
|
target:
|
|
entity_id: water_heater.rinnai_201900685wzd5_water_heater
|
|
data:
|
|
recirculation_minutes: 5
|
|
mode: single
|
|
- alias: Clear NWS Alert Pop Up
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: sensor.nws_alert_count
|
|
to: '0'
|
|
actions:
|
|
- action: persistent_notification.dismiss
|
|
data:
|
|
notification_id: nws_alert_1
|
|
- action: persistent_notification.dismiss
|
|
data:
|
|
notification_id: nws_alert_2
|
|
- action: persistent_notification.dismiss
|
|
data:
|
|
notification_id: nws_alert_3
|
|
- action: persistent_notification.dismiss
|
|
data:
|
|
notification_id: nws_alert_4
|
|
- alias: NWS Alert Pop Up 1
|
|
triggers:
|
|
- trigger: state
|
|
entity_id: sensor.nws_alert_count
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.nws_alert_count
|
|
above: 0
|
|
actions:
|
|
- parallel:
|
|
- if:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.nws_alert_event_1
|
|
state: None
|
|
then:
|
|
- parallel:
|
|
- action: persistent_notification.create
|
|
metadata: {}
|
|
data:
|
|
notification_id: nws_alert_1
|
|
title: '{{ states.sensor.nws_alert_event_1.state }}
|
|
|
|
'
|
|
message: '{{ state_attr(''sensor.nws_alert_event_1'', ''description'')
|
|
}}
|
|
|
|
'
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_1', 'severity',\
|
|
\ 'Extreme') or\n is_state_attr('sensor.nws_alert_event_1', 'severity',\
|
|
\ 'Severe') }}\n"
|
|
then:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ 'Tornado' in state_attr('sensor.nws_alert_event_1',\
|
|
\ 'description') and\n 'Warning' in state_attr('sensor.nws_alert_event_1',\
|
|
\ 'description') and\n 'Kendall' in state_attr('sensor.nws_alert_event_1',\
|
|
\ 'areadesc') }}\n"
|
|
then:
|
|
- parallel:
|
|
- action: script.critical_nws_tts_alert_1
|
|
- action: script.critical_nws_mobile_alert_1
|
|
else:
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 05:30:00
|
|
before: '22:00:00'
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_1', 'certainty',\
|
|
\ 'Observed') or\n is_state_attr('sensor.nws_alert_event_1',\
|
|
\ 'certainty', 'Likely') }}\n"
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_1', 'urgency',\
|
|
\ 'Immediate') or\n is_state_attr('sensor.nws_alert_event_1',\
|
|
\ 'urgency', 'Expected') }}\n"
|
|
then:
|
|
- action: script.critical_nws_mobile_alert_1
|
|
else:
|
|
- action: script.critical_nws_mobile_notification_1
|
|
else:
|
|
- if:
|
|
- condition: not
|
|
conditions:
|
|
- condition: template
|
|
value_template: '{{ is_state_attr(''sensor.nws_alert_event_1'', ''severity'',
|
|
''Unknown'') }}
|
|
|
|
'
|
|
then:
|
|
- action: script.critical_nws_mobile_notification_1
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.nws_alert_event_2
|
|
state: None
|
|
- condition: template
|
|
value_template: '{{ state_attr(''sensor.nws_alert_event_2'', ''description'')
|
|
!= state_attr(''sensor.nws_alert_event_1'', ''description'') }}
|
|
|
|
'
|
|
then:
|
|
- parallel:
|
|
- action: persistent_notification.create
|
|
metadata: {}
|
|
data:
|
|
notification_id: nws_alert_2
|
|
title: '{{ states.sensor.nws_alert_event_2.state }}
|
|
|
|
'
|
|
message: '{{ state_attr(''sensor.nws_alert_event_2'', ''description'')
|
|
}}
|
|
|
|
'
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_2', 'severity',\
|
|
\ 'Extreme') or\n is_state_attr('sensor.nws_alert_event_2', 'severity',\
|
|
\ 'Severe') }}\n"
|
|
then:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ 'Tornado' in state_attr('sensor.nws_alert_event_2',\
|
|
\ 'description') and\n 'Warning' in state_attr('sensor.nws_alert_event_2',\
|
|
\ 'description') and\n 'Kendall' in state_attr('sensor.nws_alert_event_2',\
|
|
\ 'areadesc') }}\n"
|
|
then:
|
|
- parallel:
|
|
- action: script.critical_nws_tts_alert_2
|
|
- action: script.critical_nws_mobile_alert_2
|
|
else:
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 05:30:00
|
|
before: '22:00:00'
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_2', 'certainty',\
|
|
\ 'Observed') or\n is_state_attr('sensor.nws_alert_event_2',\
|
|
\ 'certainty', 'Likely') }}\n"
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_2', 'urgency',\
|
|
\ 'Immediate') or\n is_state_attr('sensor.nws_alert_event_2',\
|
|
\ 'urgency', 'Expected') }}\n"
|
|
then:
|
|
- action: script.critical_nws_mobile_alert_2
|
|
else:
|
|
- action: script.critical_nws_mobile_notification_2
|
|
else:
|
|
- if:
|
|
- condition: not
|
|
conditions:
|
|
- condition: template
|
|
value_template: '{{ is_state_attr(''sensor.nws_alert_event_2'', ''severity'',
|
|
''Unknown'') }}
|
|
|
|
'
|
|
then:
|
|
- action: script.critical_nws_mobile_notification_2
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.nws_alert_event_3
|
|
state: None
|
|
- condition: template
|
|
value_template: "{{ state_attr('sensor.nws_alert_event_3', 'description')\
|
|
\ != state_attr('sensor.nws_alert_event_1', 'description') or\n state_attr('sensor.nws_alert_event_3',\
|
|
\ 'description') != state_attr('sensor.nws_alert_event_2', 'description')\
|
|
\ }}\n"
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.nws_alert_event_3
|
|
state: None
|
|
then:
|
|
- parallel:
|
|
- action: persistent_notification.create
|
|
metadata: {}
|
|
data:
|
|
notification_id: nws_alert_3
|
|
title: '{{ states.sensor.nws_alert_event_3.state }}
|
|
|
|
'
|
|
message: '{{ state_attr(''sensor.nws_alert_event_3'', ''description'')
|
|
}}
|
|
|
|
'
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_3', 'severity',\
|
|
\ 'Extreme') or\n is_state_attr('sensor.nws_alert_event_3', 'severity',\
|
|
\ 'Severe') }}\n"
|
|
then:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ 'Tornado' in state_attr('sensor.nws_alert_event_3',\
|
|
\ 'description') and\n 'Warning' in state_attr('sensor.nws_alert_event_3',\
|
|
\ 'description') and\n 'Kendall' in state_attr('sensor.nws_alert_event_3',\
|
|
\ 'areadesc') }}\n"
|
|
then:
|
|
- parallel:
|
|
- action: script.critical_nws_tts_alert_3
|
|
- action: script.critical_nws_mobile_alert_3
|
|
else:
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 05:30:00
|
|
before: '22:00:00'
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_3', 'certainty',\
|
|
\ 'Observed') or\n is_state_attr('sensor.nws_alert_event_3',\
|
|
\ 'certainty', 'Likely') }}\n"
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_3', 'urgency',\
|
|
\ 'Immediate') or\n is_state_attr('sensor.nws_alert_event_3',\
|
|
\ 'urgency', 'Expected') }}\n"
|
|
then:
|
|
- action: script.critical_nws_mobile_alert_3
|
|
else:
|
|
- action: script.critical_nws_mobile_notification_3
|
|
else:
|
|
- if:
|
|
- condition: not
|
|
conditions:
|
|
- condition: template
|
|
value_template: '{{ is_state_attr(''sensor.nws_alert_event_3'', ''severity'',
|
|
''Unknown'') }}
|
|
|
|
'
|
|
then:
|
|
- action: script.critical_nws_mobile_notification_3
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sensor.nws_alert_event_4
|
|
state: None
|
|
- condition: template
|
|
value_template: "{{ state_attr('sensor.nws_alert_event_4', 'description')\
|
|
\ != state_attr('sensor.nws_alert_event_1', 'description') or\n state_attr('sensor.nws_alert_event_4',\
|
|
\ 'description') != state_attr('sensor.nws_alert_event_2', 'description')\
|
|
\ or\n state_attr('sensor.nws_alert_event_4', 'description') != state_attr('sensor.nws_alert_event_3',\
|
|
\ 'description') }}\n"
|
|
then:
|
|
- parallel:
|
|
- action: persistent_notification.create
|
|
metadata: {}
|
|
data:
|
|
notification_id: nws_alert_4
|
|
title: '{{ states.sensor.nws_alert_event_4.state }}
|
|
|
|
'
|
|
message: '{{ state_attr(''sensor.nws_alert_event_4'', ''description'')
|
|
}}
|
|
|
|
'
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_4', 'severity',\
|
|
\ 'Extreme') or\n is_state_attr('sensor.nws_alert_event_4', 'severity',\
|
|
\ 'Severe') }}\n"
|
|
then:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ 'Tornado' in state_attr('sensor.nws_alert_event_4',\
|
|
\ 'description') and\n 'Warning' in state_attr('sensor.nws_alert_event_4',\
|
|
\ 'description') and\n 'Kendall' in state_attr('sensor.nws_alert_event_4',\
|
|
\ 'areadesc') }}\n"
|
|
then:
|
|
- parallel:
|
|
- action: script.critical_nws_tts_alert_4
|
|
- action: script.critical_nws_mobile_alert_4
|
|
else:
|
|
- if:
|
|
- condition: and
|
|
conditions:
|
|
- condition: time
|
|
after: 05:30:00
|
|
before: '22:00:00'
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_4', 'certainty',\
|
|
\ 'Observed') or\n is_state_attr('sensor.nws_alert_event_4',\
|
|
\ 'certainty', 'Likely') }}\n"
|
|
- condition: template
|
|
value_template: "{{ is_state_attr('sensor.nws_alert_event_4', 'urgency',\
|
|
\ 'Immediate') or\n is_state_attr('sensor.nws_alert_event_4',\
|
|
\ 'urgency', 'Expected') }}\n"
|
|
then:
|
|
- action: script.critical_nws_mobile_alert_4
|
|
else:
|
|
- action: script.critical_nws_mobile_notification_4
|
|
else:
|
|
- if:
|
|
- condition: not
|
|
conditions:
|
|
- condition: template
|
|
value_template: '{{ is_state_attr(''sensor.nws_alert_event_4'', ''severity'',
|
|
''Unknown'') }}
|
|
|
|
'
|
|
then:
|
|
- action: script.critical_nws_mobile_notification_4
|