2023-06-12 21:56:22 +00:00
|
|
|
- id: info_leak_notice
|
2022-04-24 22:35:51 +00:00
|
|
|
alias: '[INFO] Leak notice'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.coffee_machine_leak_sensor
|
|
|
|
to: 'on'
|
2023-02-07 12:20:57 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.dining_plants_leak_sensor
|
|
|
|
to: 'on'
|
2022-11-17 00:01:24 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.fridge_leak_sensor
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.humidifier_leak_sensor
|
|
|
|
to: 'on'
|
2022-04-24 22:35:51 +00:00
|
|
|
- platform: state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: binary_sensor.kitchen_sink_leak_sensor
|
2022-04-24 22:35:51 +00:00
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.washing_machine_water_leak_sensor
|
|
|
|
to: 'on'
|
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-04-24 22:35:51 +00:00
|
|
|
data:
|
2023-02-07 13:10:00 +00:00
|
|
|
title: "Leak detection ⚠️"
|
2022-04-24 22:35:51 +00:00
|
|
|
message: >
|
|
|
|
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
data:
|
2022-11-17 00:01:24 +00:00
|
|
|
push:
|
|
|
|
sound:
|
|
|
|
name: "default"
|
|
|
|
critical: 1
|
|
|
|
volume: 1.0
|
2023-02-07 12:21:10 +00:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
Leak detected! ⚠️
|
|
|
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
@everyone
|
2023-05-21 20:14:03 +00:00
|
|
|
target: [ "1109936159951441960" ]
|
2023-02-07 13:10:00 +00:00
|
|
|
- service: script.cctv_snapshot_all
|
2023-02-07 12:21:10 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: info_leak_cleared_notice
|
2023-02-07 12:21:10 +00:00
|
|
|
alias: '[INFO] Leak cleared notice'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.coffee_machine_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.dining_plants_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.fridge_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.humidifier_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_sink_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.washing_machine_water_leak_sensor
|
|
|
|
to: 'off'
|
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
2023-02-07 13:10:00 +00:00
|
|
|
title: "Leak cleared ✅"
|
2023-02-07 12:21:10 +00:00
|
|
|
message: >
|
|
|
|
Leak cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
2023-02-07 13:10:00 +00:00
|
|
|
Leak cleared! ✅
|
2023-02-07 12:21:10 +00:00
|
|
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
2023-05-21 20:14:03 +00:00
|
|
|
target: [ "1109936159951441960" ]
|
2022-11-17 00:01:24 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: info_smoke_notice
|
2022-11-17 00:01:24 +00:00
|
|
|
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:
|
2023-02-07 13:10:00 +00:00
|
|
|
title: "Smoke detection ⚠️"
|
2022-11-17 00:01:24 +00:00
|
|
|
message: >
|
|
|
|
Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
data:
|
|
|
|
push:
|
|
|
|
sound:
|
|
|
|
name: "default"
|
|
|
|
critical: 1
|
|
|
|
volume: 1.0
|
2023-02-07 12:21:10 +00:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
Smoke detected! ⚠️
|
|
|
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
@everyone
|
2023-05-21 20:14:03 +00:00
|
|
|
target: [ "1109936159951441960" ]
|
2023-02-07 13:10:00 +00:00
|
|
|
- service: script.cctv_snapshot_all
|
2023-02-07 12:21:10 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: info_smoke_cleared_notice
|
|
|
|
alias: '[INFO] Smoke cleared notice'
|
2023-02-07 12:21:10 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.3d_printer_smoke_sensor_smoke_alarm_smoke_detected
|
|
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.rack_smoke_sensor
|
|
|
|
to: 'off'
|
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
2023-02-07 13:10:00 +00:00
|
|
|
title: "Smoke cleared ✅"
|
2023-02-07 12:21:10 +00:00
|
|
|
message: >
|
|
|
|
Smoke cleared: {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
Smoke cleared! ✅
|
|
|
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
2023-05-21 20:14:03 +00:00
|
|
|
target: [ "1109936159951441960" ]
|
2023-02-07 13:10:00 +00:00
|
|
|
- service: script.cctv_snapshot_all
|