Add Alerts Package
This commit is contained in:
4
packages/alerts/README.md
Normal file
4
packages/alerts/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Alerts Package
|
||||||
|
|
||||||
|
This package contains configuration information for various uncategorized
|
||||||
|
alerts for the home.
|
||||||
18
packages/alerts/alerts.yaml
Normal file
18
packages/alerts/alerts.yaml
Normal 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 }}"
|
||||||
Reference in New Issue
Block a user