Add leak automations
This commit is contained in:
parent
2a95e82c0c
commit
75f0a4fece
21
configuration/automations/info-leak.yaml
Normal file
21
configuration/automations/info-leak.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user