From 3b7d381dbc25d6d620c99730cc9819437256baad Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 17 Nov 2022 01:01:24 +0100 Subject: [PATCH] Update notifications add new leak sensors add notifcations for smoke sensors --- configuration/automations/info-leak.yaml | 35 +++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/configuration/automations/info-leak.yaml b/configuration/automations/info-leak.yaml index 9c75f6d..74ef870 100644 --- a/configuration/automations/info-leak.yaml +++ b/configuration/automations/info-leak.yaml @@ -5,6 +5,12 @@ - platform: state entity_id: binary_sensor.coffee_machine_leak_sensor to: 'on' + - platform: state + entity_id: binary_sensor.fridge_leak_sensor + to: 'on' + - platform: state + entity_id: binary_sensor.humidifier_leak_sensor + to: 'on' - platform: state entity_id: binary_sensor.kitchen_sink_leak_sensor to: 'on' @@ -18,4 +24,31 @@ message: > Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }} data: - importance: high + push: + sound: + name: "default" + critical: 1 + volume: 1.0 + +- id: info-smoke-notice + alias: '[INFO] Smoke notice' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.3d_printer_smoke_sensor_smoke_alarm_smoke_detected + to: 'on' + - platform: state + entity_id: binary_sensor.rack_smoke_sensor + to: 'on' + action: + - service: notify.mobile_app_iphone + data: + title: "Smoke detection" + message: > + Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }} + data: + push: + sound: + name: "default" + critical: 1 + volume: 1.0