Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
40 lines
1.0 KiB
YAML
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"
|