diff --git a/packages/alerts/README.md b/packages/alerts/README.md new file mode 100644 index 0000000..6ff2fd6 --- /dev/null +++ b/packages/alerts/README.md @@ -0,0 +1,4 @@ +# Alerts Package + +This package contains configuration information for various uncategorized +alerts for the home. diff --git a/packages/alerts/alerts.yaml b/packages/alerts/alerts.yaml new file mode 100644 index 0000000..8c27b06 --- /dev/null +++ b/packages/alerts/alerts.yaml @@ -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 }}"