Add Alerts Package

This commit is contained in:
2022-08-21 12:31:01 -07:00
parent aff800904d
commit 88431c3d8c
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# 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.general
data:
message: "{{ trigger.to_state.name }}"