Files
hassio-configuration/configuration/automation/global_smoke_co_detected.yaml
Alexander Savin 26d86dec90
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
Update to the current version
2025-05-11 16:07:21 -04:00

40 lines
1.0 KiB
YAML

---
- id: smoke_detected
alias: '[App] Smoke Detected'
initial_state: 'true'
trigger:
- platform: state
entity_id: binary_sensor.smoke_detector_01
to: "on"
action:
- service: telegram_bot.send_message
data:
target: "-1002338954143"
message_thread_id: 3
message_tag: night_mode_finished
title: "[Home Assistant] Night Mode"
message: 'Smoke/Fire is detected'
# - service: notify.telegram_alex
# data_template:
# message: "Smoke Detected"
- id: co_detected
alias: '[App] CO Detected'
initial_state: 'true'
trigger:
- platform: state
entity_id: binary_sensor.carbon_monoxide_detector_01
to: "on"
action:
- service: telegram_bot.send_message
data:
target: "-1002338954143"
message_thread_id: 3
message_tag: night_mode_finished
title: "[Home Assistant] Night Mode"
message: 'Carbon monoxide is detected'
# - service: notify.telegram_alex
# data_template:
# message: "CO Detected"