Files
HomeAssistantVS/automations.yaml
T

420 lines
10 KiB
YAML

- id: '1780072464609'
alias: 'Camera: Send Motion Notifications'
description: Sends a push notification to your primary mobile device when Nest cameras
detect activity.
triggers:
- entity_id:
- camera.entryway_camera
- camera.front_door
- camera.hallway_camera
- camera.living_room_camera
trigger: state
conditions: []
actions:
- action: notify.notify
data:
title: Motion Detected!
message: Activity detected on one of your Nest security cameras.
mode: parallel
max: 10
- id: '1780125759253'
alias: 'Tablet: Dim Screen at Night'
description: Drops tablet brightness to zero at night
triggers:
- at: 01:00:00
trigger: time
actions:
- action: notify.mobile_app_sm_t387w
data:
message: command_screen_brightness_level
data:
command: 0
- id: '1780125803824'
alias: 'Tablet: Restore Screen in Morning'
description: Restores tablet brightness to normal in the morning
triggers:
- at: 07:00:00
trigger: time
actions:
- action: notify.mobile_app_sm_t387w
data:
message: command_screen_brightness_level
data:
command: 180
- id: '1780343863793'
alias: Front Door Notification
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.front_door
from:
- 'off'
to:
- 'on'
- trigger: state
entity_id:
- binary_sensor.patio_door
from:
- 'off'
to:
- 'on'
conditions: []
actions:
- target:
entity_id:
- light.kitchen_home_kitchen
action: light.toggle
- delay: 00:00:15
- target:
entity_id:
- light.kitchen_home_kitchen
action: light.toggle
- data:
message: There is someone at the front door
action: notify.notify
mode: single
variables:
_cafe_metadata:
version: 1
strategy: native
nodes:
trigger_1780343037167_0:
x: -615
y: -705
action_1780343442574_1:
x: -360
y: -630
delay_1780343604675_2:
x: -120
y: -360
action_1780343739141_3:
x: 75
y: -615
action_1780343804458_4:
x: 330
y: -615
trigger_1780343965767_5:
x: -615
y: -555
graph_id: 7ad98446-4ce0-4b88-a400-430ac474a617
graph_version: 1
- id: '1780441470361'
alias: Reload Hilo Integrations on Reboot
description: Reloads problematic integrations 2 minutes after Home Assistant starts
up.
triggers:
- trigger: homeassistant
event: start
conditions: []
actions:
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- action: homeassistant.reload_config_entry
metadata: {}
target:
device_id:
- 3e67afd88a4b4d17552c8f370aaf40b5
- baad176ac2f415f3642e2d075bb6a977
data: {}
mode: single
- id: '1780509027967'
alias: Notify When Ring Console Battery Low
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.entryway_keypad_battery
below: 25
conditions: []
actions:
- data:
message: Keypad Battery Low. Please Charge ASAP
title: Ring Console Battery
action: notify.notify
mode: single
variables:
_cafe_metadata:
version: 1
strategy: native
nodes:
trigger_1780508927611_4:
x: 15
y: -105
action_1780508992783_5:
x: 285
y: 45
graph_id: 816af3b7-3eac-47c3-8da3-8797d1774c0c
graph_version: 1
- id: '1780516946807'
alias: Notify When Front Door Sensor Battery Low
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.front_door_battery
below: 25
conditions: []
actions:
- data:
message: Front Door Sensor Battery Low. Please Change Batteries ASAP.
title: Ring Console Battery
action: notify.notify
mode: single
variables:
_cafe_metadata:
version: 1
strategy: native
nodes:
trigger_1780508927611_4:
x: 15
y: -105
action_1780508992783_5:
x: 285
y: 45
graph_id: 816af3b7-3eac-47c3-8da3-8797d1774c0c
graph_version: 1
- id: '1780813227139'
alias: 'Alert: Fridge or Freezer Power Outage'
description: Triggers an alert if the fridge or freezer smart plug power consumption
drops to 0W for too long.
triggers:
- trigger: numeric_state
entity_id:
- sensor.freezer_power
for:
hours: 0
minutes: 45
seconds: 0
below: 1
id: freezer_down
- trigger: numeric_state
entity_id:
- sensor.fridge_power
for:
hours: 0
minutes: 20
seconds: 0
below: 1
id: fridge_down
conditions: []
actions:
- if:
- condition: trigger
id: freezer_down
then:
- data:
title: "\U0001F6A8 URGENT: Freezer Power Failure"
message: The Freezer smart plug has drawn 0W of power for over 40 minutes!
Check the physical appliance immediately.
action: notify.notify
else:
- if:
- condition: trigger
id: fridge_down
then:
- data:
title: "\U0001F6A8 URGENT: Fridge Power Failure"
message: The Fridge smart plug has drawn 0W of power for over 20 minutes!
Check the physical appliance immediately.
action: notify.notify
else: []
mode: single
variables:
_cafe_metadata:
version: 1
strategy: native
nodes:
trigger_1780846348490_0_0:
x: 12
y: 182
trigger_1780846348490_1_1:
x: 12
y: 22
condition_1780846348491_2_2:
x: 312
y: 92
action_1780846348491_3_3:
x: 632
y: 12
condition_1780846348491_4_4:
x: 632
y: 172
action_1780846348491_5_5:
x: 952
y: 102
graph_id: 5948b900-b45d-4c2e-ae73-c880acc3a1bf
graph_version: 1
- id: '1780989340205'
alias: 'Kitchen: Coffee Maker Active Notification'
description: Sends a mobile application push notification when the coffee maker
power exceeds 1000W for 5 seconds.
triggers:
- entity_id: sensor.coffee_maker_power
above: 1000
for:
hours: 0
minutes: 0
seconds: 5
trigger: numeric_state
conditions: []
actions:
- data:
title: ☕ Coffee Time
message: Someone is Making Coffee
action: notify.notify
- action: notify.persistent_notification
metadata: {}
data:
title: ☕ Coffee Time
message: Someone is Making Coffee
- delay:
hours: 0
minutes: 4
seconds: 0
milliseconds: 0
mode: single
- id: '1781024962776'
alias: 'Office: Turn On Lights on Motion then Door Open'
description: Triggers when office door opens, but only if living room motion happened
in the last 30 seconds and light is off.
triggers:
- trigger: state
entity_id: binary_sensor.office_door_contact
to: 'on'
conditions:
- condition: time
after: '10:00:00'
before: '21:00:00'
- condition: state
entity_id: light.playroom_light
state: 'off'
- condition: template
value_template: '{{ (now() - states.binary_sensor.basement.last_changed).total_seconds()
< 30 }}'
actions:
- action: light.turn_on
target:
entity_id: light.playroom_light
data: {}
mode: single
- id: '1781034724187'
alias: 'Office: Turn Off Lights on Exit'
description: Turns off office lights 2 minutes after the door closes, but only if living
room motion was detected after the door shut.
triggers:
- trigger: state
entity_id: binary_sensor.office_door_contact
to: 'off'
for:
minutes: 2
conditions:
- condition: state
entity_id: light.playroom_light
state: 'on'
- condition: template
value_template: '{{ states.binary_sensor.basement.last_changed > states.binary_sensor.office_door_contact.last_changed
}}'
actions:
- action: light.turn_off
target:
entity_id: light.playroom_light
data: {}
mode: single
- id: '1781102033733'
alias: Water Leak Detected
description: ''
triggers:
- type: moist
device_id: 59bc102f385d7a3524c8f21a5c53592b
entity_id: c268ff8842e905515de2274d09c5ab9e
domain: binary_sensor
metadata:
secondary: false
trigger: device
conditions: []
actions:
- action: notify.notify
metadata: {}
data:
title: "\U0001F6A8 URGENT: Water Leak Detected"
message: Water Leak Detected in Basement. Check Water Heater for Leaks.
- action: persistent_notification.create
metadata: {}
data:
title: "\U0001F6A8 URGENT: Water Leak Detected"
message: Water Leak Detected in Basement. Check Water Heater for Leaks.
mode: single
- id: '1781112110968'
alias: 'Freezer Safety: Alert if Plug Turns Off'
description: Triggers an immediate notification if the freezer smart plug is turned
off.
triggers:
- trigger: state
entity_id: switch.freezer
to: 'off'
for:
minutes: 1
actions:
- action: notify.notify
data:
title: "\U0001F6A8 FREEZER PLUG TRIPPED!"
message: The freezer smart plug turned off. Check it immediately to prevent
food spoilage.
- action: notify.persistent_notification
metadata: {}
data:
title: "\U0001F6A8 FREEZER PLUG TRIPPED!"
message: The freezer smart plug turned off. Check it immediately to prevent
food spoilage.
mode: single
- id: '1781275767970'
alias: 'Dishwasher: Cycle Finished Notification'
description: Alerts when the dishwasher finishes washing
triggers:
- entity_id: sensor.150633095332665_progress
from: Running
to: Idle
trigger: state
actions:
- action: notify.notify
data:
title: Dishwasher Done
message: The dishwasher cycle has completed successfully!
mode: single
- id: '1781275801564'
alias: 'Dishwasher: Rinse Aid Low Warning'
description: Alerts when rinse aid needs a refill
triggers:
- entity_id: binary_sensor.150633095332665_rinse_aid
to: 'on'
trigger: state
actions:
- action: notify.notify
data:
title: Dishwasher Maintenance
message: The dishwasher is low on rinse aid. Please refill it before the next
cycle!
mode: single
- id: '1781278655292'
alias: 'Dishwasher: Dishwasher Started Notification'
description: Alerts when the dishwasher starts washing
triggers:
- entity_id:
- sensor.150633095332665_progress
from:
- idle
to:
- running
trigger: state
conditions: []
actions:
- action: notify.notify
data:
title: Dishwasher Started
message: The dishwasher cycle has started!
mode: single