Files
home-assistant/packages/alerts/alerts.yaml

46 lines
1.5 KiB
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."
- alias: Notify if Garage Fridge Sensor is Unavailable
mode: queued
trigger:
- platform: time_pattern
minutes: 0
condition:
- "{{ is_state('sensor.garage_fridge_freezer_temperature', ['unavailable', 'unknown', 'none']) }}"
- "{{ is_state('sensor.garage_fridge_refrigerator_temperature', ['unavailable', 'unknown', 'none']) }}"
action:
- service: notify.everyone
data:
message: "{{ trigger.to_state.name }} is unavilable, check the power."