From 75f0a4fece40aa5e2412b68db988db809c1d7cc8 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 25 Apr 2022 00:35:51 +0200 Subject: [PATCH] Add leak automations --- configuration/automations/info-leak.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 configuration/automations/info-leak.yaml diff --git a/configuration/automations/info-leak.yaml b/configuration/automations/info-leak.yaml new file mode 100644 index 0000000..94aee27 --- /dev/null +++ b/configuration/automations/info-leak.yaml @@ -0,0 +1,21 @@ +- id: info-leak-notice + alias: '[INFO] Leak notice' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.coffee_machine_leak_sensor + to: 'on' + - platform: state + entity_id: binary_sensor.sink_leak_sensor + to: 'on' + - platform: state + entity_id: binary_sensor.washing_machine_water_leak_sensor + to: 'on' + action: + - service: notify.mobile_app_iphone_pg + data: + title: "Leak detection" + message: > + Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }} + data: + importance: high