initial commit
This commit is contained in:
24
configuration/automation/global_smoke_co_detected.yaml
Normal file
24
configuration/automation/global_smoke_co_detected.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- id: smoke_detected
|
||||
alias: '[App] Smoke Detected'
|
||||
initial_state: 'true'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.smoke_detector_01
|
||||
to: "on"
|
||||
action:
|
||||
- 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: notify.telegram_alex
|
||||
data_template:
|
||||
message: "CO Detected"
|
Reference in New Issue
Block a user