1
0
ansible-home-assistant/configuration/automations/info-leak.yaml
Przemek Grondek 3b7d381dbc Update notifications
add new leak sensors
 add notifcations for smoke sensors
2022-11-17 01:01:24 +01:00

55 lines
1.4 KiB
YAML

- 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.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'
- platform: state
entity_id: binary_sensor.washing_machine_water_leak_sensor
to: 'on'
action:
- service: notify.mobile_app_iphone
data:
title: "Leak detection"
message: >
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
data:
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