-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmoke_alarms.yaml
85 lines (83 loc) · 3.08 KB
/
smoke_alarms.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
# yamllint disable rule:line-length
- alias: Smoke Alarm - Alert
id: 'smoke_alarm_alert'
triggers:
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'laundry'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'laundry'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'hallway'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'hallway'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Smoke'
location_detected: 'workshop'
- trigger: state
entity_id: binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3
to: 'on'
for: "00:00:15"
variables:
type_detected: 'Carbon monoxide'
location_detected: 'workshop'
actions:
- action: notify.email
data_template:
title: "Alert! {{ type_detected }} detected in {{ location_detected }} room"
message: "{{ type_detected }} was detected in the {{ location_detected }} room! Investigate immediately and evacuate!"
- action: script.sonos_say
data:
message: "{{ type_detected }} was detected in the {{ location_detected }} room! Investigate immediately and evacuate!"
delay: '00:00:06'
- action: notify.mobile_apps
data:
message: "Alert! {{ type_detected }} detected in {{ location_detected }} room! Investigate immediately and evacuate!"
- alias: Smoke Alarm - Turn On Lights
id: 'smoke_alarm_turn_on_lights'
triggers:
trigger: state
entity_id:
- binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected
- binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected
- binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_2
- binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_2
- binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_smoke_detected_3
- binary_sensor.zcombo_g_smoke_co_alarm_co_alarm_carbon_monoxide_detected_3
to: 'on'
for: "00:00:15"
actions:
action: light.turn_on
data:
entity_id:
- light.hue_color_lamp_1
- light.hue_white_lamp_1
- light.hue_white_lamp_3
- light.zooz_unknown_type_a000_id_a008_level
- light.zooz_unknown_type_a000_id_a008_level_2
- switch.living_room_bookshelf_lamps
- switch.jasco_products_46201_in_wall_smart_switch_switch