Files
home-assistant/packages/alerts/alerts.yaml
2022-12-13 19:49:55 -08:00

33 lines
977 B
YAML

# Alerts Package
# -----------------------------------------------------------------------------
# Alert Automations
automation:
- alias: Notify if Leak Sensors Trigger
mode: queued
trigger:
- platform: state
entity_id: binary_sensor.dishwasher_leak_detected
to: 'on'
- platform: state
entity_id: binary_sensor.washer_leak_detected
to: 'on'
action:
- service: notify.everyone
data:
message: "{{ trigger.to_state.name }} Triggered"
- alias: Notify if Garage Fridge Temperature is High
mode: queued
trigger:
- platform: numeric_state
entity_id: sensor.garage_fridge_refrigerator_temperature
above: 48.0
- platform: numeric_state
entity_id: sensor.garage_fridge_freezer_temperature
above: 26.0
action:
- service: notify.everyone
data:
message: "{{ trigger.to_state.name }} is too high, check the power and doors."