forked from CCOSTAN/Home-AssistantConfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
floorplan.yaml
executable file
·309 lines (276 loc) · 7.94 KB
/
floorplan.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
name: Alarm Panel
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
#pan_zoom:
hide_app_toolbar:
date_format: MMM-DD-YYYY
# Example of chaining for multiple replaces.
# '${entity.state ? entity.state.replace("not_home", "away").replace("Miguel_Work", "At Work") : "undefined"}'
devices:
- name: Alarm Panel 1
address: B4:7C:9C:9E:85:90
entities:
- binary_sensor.alarm_panel_1
- media_player.alarm_panel_1
- name: Alarm Panel 2
address: 00:FC:8B:4A:D5:CF
entities:
- binary_sensor.alarm_panel_2
- media_player.alarm_panel_2
entities:
- name: input_booleans
entities:
- input_boolean.house_station
- input_boolean.guest_mode
- input_boolean.meal_time
- input_boolean.tv_time
- input_boolean.good_night
- input_boolean.sleepy_dog
- group.kitchen_lights
- group.living_room_lights
states:
- state: 'on'
class: 'button-on'
- state: 'off'
class: 'button-off'
action:
domain: homeassistant
service: toggle
groups:
- name: thermostats_temp
entities:
- climate.downstairs
- climate.upstairs
text_template: '${entity.attributes.current_temperature ? Math.ceil(entity.attributes.current_temperature) + "°": "undefined"}'
class_template: 'return "static-temp";'
- name: temp_darksky
entities:
- sensor.dark_sky_temperature
text_template: '${entity.state ? Math.ceil(entity.state) + "°": "undefined"}'
class_template: 'return "static-temp";'
- name: temp_round
entities:
- sensor.downstairs_thermostat_humidity
- sensor.upstairs_thermostat_humidity
- sensor.dark_sky_humidity
text_template: '${entity.state ? Math.ceil(entity.state) : "undefined"}'
class_template: 'return "static-temp";'
- name: text_states
entities:
- sensor.last_message
text_template: '${entity.state ? entity.state.replace(/\s{3,}/g,"") : "undefined"}'
class_template: 'return "static-text";'
- name: text_font_date
entities:
- sensor.floorplan_date
text_template: '${entity.state ? entity.state : "undefined"}'
class_template: 'return "static-text-date";'
- name: text_font_time
entities:
- sensor.floorplan_time
text_template: '${entity.state ? entity.state : "undefined"}'
class_template: 'return "static-text-time";'
- name: Alarm
entities:
- input_boolean.alert_mode
text_template: '${entity.state ? entity.state : "undefined"}'
states:
- state: 'on'
class: 'text-home'
- state: 'off'
class: 'text-away'
- name: Camera
entities:
- camera.wu_doppler_weather
states:
- state: 'idle'
class: 'text-home'
- name: Family
entities:
- device_tracker.carlo
- device_tracker.stacey
text_template: '${entity.state ? entity.state.replace("not_home", "away") : "undefined"}'
states:
- state: 'home'
class: 'text-home'
- state: 'not_home'
class: 'text-away'
- name: switches
entities:
- switch.front_landscaping
- switch.back_landscaping
- switch.printer_outlet
- switch.kitchen_accents
- switch.master_bathroom_accents
- switch.front_door_outlet
- switch.living_room_amp
states:
- state: 'on'
class: 'switch-on'
- state: 'off'
class: 'switch-off'
action:
service: toggle
- name: custom_switches
entities:
- switch.pool_deck
states:
- state: 'on'
class: 'switch-on-blue'
- state: 'off'
class: 'switch-off'
action:
service: toggle
- name: Lights
entities:
- light.kids_hallway
- light.bedroom_hallway
- light.m1_back_left
- light.m1_back_right
- light.m1_front_left
- light.m1_front_right
- light.m1_slider
- light.office_lamp
- light.den_lamp
- light.f2
- light.f1
- light.s1
- light.s2
- light.s3
- light.s4
- light.d1
- light.d2
- light.k1
- light.k2
- light.k3
- light.k4
- light.k5
- light.k6
- light.sink
- light.fridge
- light.couch_1
- light.tv_light
- light.bedroom
- light.master_toilet
- light.justin_go
- light.paige_go
- light.garage_attic
- light.upstairs_lamp
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
- name: Outdoor Lights
entities:
- light.p1_front_left
- light.p1_front_right
- light.p1_back_left
- light.p1_back_right
- light.outdoor_bathroom
- light.outdoor_foyer
- light.outdoor_sconce_1
- light.outdoor_sconce_2
- light.outdoor_sconce_3
- light.led_garage_large
- light.led_garage_small
- light.led_outdoor_den
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'outdoor-light-off'
action:
service: toggle
- name: Nest Protects
entities:
- binary_sensor.upstairs_living_room_nest_protect_online
- binary_sensor.hallway_nest_protect_kids_hallway_online
- binary_sensor.justins_room_nest_protect_online
- binary_sensor.kitchen_nest_protect_online
- binary_sensor.master_bedroom_nest_protect_online
- binary_sensor.master_hallway_nest_protect_online
- binary_sensor.paiges_room_nest_protect_paiges_room_online
- binary_sensor.upstairs_bedroom_nest_protect_online
- binary_sensor.office_nest_protect_online
states:
- state: 'off'
class: 'protect-off'
- state: 'on'
class: 'protect-on'
- name: Entry Points
entities:
- binary_sensor.mcu1_gpio4
- binary_sensor.mcu1_gpio5
- binary_sensor.mcu1_gpio10
- binary_sensor.mcu1_gpio12
- binary_sensor.mcu1_gpio13
- binary_sensor.mcu1_gpio14
- binary_sensor.mcu2_gpio4
- binary_sensor.mcu2_gpio5
- binary_sensor.mcu2_gpio9
- binary_sensor.mcu2_gpio10
- binary_sensor.mcu2_gpio12
- binary_sensor.mcu2_gpio13
- binary_sensor.mcu2_gpio14
- binary_sensor.mcu3_gpio4
- binary_sensor.mcu3_gpio5
- binary_sensor.mcu3_gpio10
- binary_sensor.mcu3_gpio14
- binary_sensor.kitchen_door_opened
- binary_sensor.mcu3_light
states:
- state: 'off'
class: 'window-closed'
- state: 'on'
class: 'window-open'
- name: Presence
entities:
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
states:
- state: 'on'
class: 'presence-on'
- state: 'off'
class: 'presence-off'
- name: Garage Doors
entities:
- cover.large_garage
- cover.small_garage
states:
- state: 'closed'
class: 'window-closed'
- state: 'open'
class: 'window-open'
- name: Dark Sky Sensors
entities:
- sensor.dark_sky_minutely_summary
image_template: '
var imageName = "";
switch (entity.attributes.entity_picture) {
case "/static/images/darksky/weather-sunny.svg":
imageName = "day";
break;
case "/static/images/darksky/weather-night.svg":
imageName = "night";
break;
case "/static/images/darksky/weather-partlycloudy.svg":
imageName = "cloudy-day-1";
break;
case "/static/images/darksky/weather-cloudy.svg":
imageName = "cloudy-night-1";
break;
case "/static/images/darksky/weather-cloudy.svg":
imageName = "cloudy";
break;
case "/static/images/darksky/weather-pouring.svg":
imageName = "rainy-1";
break;
case "/static/images/darksky/weather-snowy.svg":
imageName = "snowy-1";
break;
}
return "/local/custom_ui/floorplan/images/weather/" + imageName + ".svg";
'