-
Notifications
You must be signed in to change notification settings - Fork 1
/
lights.yaml
200 lines (187 loc) · 5.35 KB
/
lights.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#
# Let's be goofy and allow Siri to turn off the clock :)
#
- platform: template
lights:
family_room_clock:
friendly_name: "Family Room Clock"
value_template: "{{ states('input_boolean.creatures_clocky_family_room_display_on') }}"
turn_on:
- service: input_boolean.turn_on
data:
entity_id:
- input_boolean.creatures_clocky_family_room_display_on
turn_off:
- service: input_boolean.turn_off
data:
entity_id:
- input_boolean.creatures_clocky_family_room_display_on
#
# This templates define lights that wrap the groups, mostly
# so that I can expose the groups to HomeKit
#
- platform: template
lights:
family_room_lights:
friendly_name: "Family Room Lights"
value_template: "{{ states('group.family_room_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.family_room_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.family_room_lights
- platform: template
lights:
kitchen_lights:
friendly_name: "Kitchen Lights"
value_template: "{{ states('group.kitchen_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.kitchen_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.kitchen_lights
- platform: template
lights:
office_lights:
friendly_name: "Office Lights"
value_template: "{{ states('group.office_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.office_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.office_lights
- platform: template
lights:
workshop_lights:
friendly_name: "Workshop Lights"
value_template: "{{ states('group.workshop_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.workshop_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.workshop_lights
- platform: template
lights:
bunnys_room_lights:
friendly_name: "Bunny's Room Lights"
value_template: "{{ states('group.bunnys_room_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.bunnys_room_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.bunnys_room_lights
- platform: template
lights:
bunnys_bathroom_lights:
friendly_name: "Bunny's Bathroom Lights"
value_template: "{{ states('group.bunnys_bathroom_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.bunnys_bathroom_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.bunnys_bathroom_lights
- platform: template
lights:
guest_room_lights:
friendly_name: "Guest Room Lights"
value_template: "{{ states('group.guest_room_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.guest_room_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.guest_room_lights
- platform: template
lights:
hallway_lights:
friendly_name: "Hallway Lights"
value_template: "{{ states('group.hallway_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.hallway_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.hallway_lights
- platform: template
lights:
hallway_bathroom_lights:
friendly_name: "Hallway Bathroom Lights"
value_template: "{{ states('group.hallway_bathroom_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.hallway_bathroom_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.hallway_bathroom_lights
- platform: template
lights:
half_bathroom_lights:
friendly_name: "Half Bathroom Lights"
value_template: "{{ states('group.half_bathroom_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.half_bathroom_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.half_bathroom_lights
- platform: template
lights:
laundry_room_lights:
friendly_name: "Laundry Room Lights"
value_template: "{{ states('group.laundry_room_lights') }}"
turn_on:
- service: homeassistant.turn_on
data:
entity_id:
- group.laundry_room_lights
turn_off:
- service: homeassistant.turn_off
data:
entity_id:
- group.laundry_room_lights