-
Notifications
You must be signed in to change notification settings - Fork 30
/
floorplan.yaml
241 lines (225 loc) · 7.55 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
name: Floorplan
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
warnings:
# pan_zoom:
date_format: DD-MMM-YYYY
hide_app_toolbar:
# last_motion_entity: sensor.motion_sensor
# last_motion_class: last-motion
groups:
- name: Mailbox
entities:
- sensor.mailbox
# text_template: '${entity.state ? entity.state : "unknown"}'
class_template: '
if (entity.state == "Empty")
return "hidden";
else
return "flash-info";
'
- name: Device trackers
entities:
- device_tracker.isa_computer
- device_tracker.stefan_computer
# text_template: '${entity.state ? entity.state : "unknown"}'
class_template: '
if (entity.state == "home")
return "success-text";
else
return "hidden";
'
- name: Temperatures
entities:
- sensor.temperature_158d000123552c # passage
- sensor.temperature_158d0001235510 # upstairs hallway
- sensor.temperature_158d0001fd83e7 # Stefan
- sensor.temperature_158d0001a2a899 # downstairs bathroom
- sensor.dark_sky_temperature # Outside
text_template: '${entity.state ? entity.state + "°" : "unknown"}'
class_template: '
var temp = parseFloat(entity.state.replace("°", ""));
if (temp < 22)
return "temp-low";
else if (temp < 25)
return "temp-medium";
else
return "temp-high";
'
- name: Humidity
entities:
- sensor.humidity_158d0001a2a899
text_template: '${entity.state ? Math.ceil(entity.state) + "%" : "unknown"}'
# class_template: '
# var temp = parseFloat(entity.state.replace("%", ""));
# if (temp < 22)
# return "temp-low";
# else if (temp < 25)
# return "temp-medium";
# else
# return "temp-high";
# '
- name: Washer and dryer
entities:
- input_select.dryer_status
- input_select.washing_machine_status
class_template: '
if (entity.state == "Idle")
return "hidden";
else if (entity.state == "Running")
return "success-text";
else
return "flash-info";
'
- name: Litterboxes
entities:
- sensor.upstairs_litterbox_visits
- sensor.downstairs_litterbox_visits
class_template: '
var visits = parseFloat(entity.state);
if (visits == 0)
return "hidden";
else if (visits < 3)
return "temp-medium";
else
return "flash-info";
'
- name: Ceiling Lights
entities:
- light.bedroom_ceiling_light
- light.dining_area_ceiling_light_level
- light.kitchen_ceiling_spotlights_level
- light.isa_ceiling_light
- light.living_room_ceiling_light_level
- light.living_room_spotlights_level
- light.passage_ceiling_spotlights_level
- group.walk_in_closet_lights
- light.upstairs_hallway_ceiling_light_level
- light.hallway_window_light
# groups:
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'ceiling-light-off'
action:
service: toggle
- name: Stairs Lights
entities:
- group.stairs_lights
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: ''
action:
service: toggle
- name: Stefan Lights
entities:
- light.stefan_lightstrip
states:
- state: 'on'
class: 'light-purple'
- state: 'off'
class: 'light-off'
- name: Secondary Lights
entities:
- light.bedside_lamp
- light.floorlamp_reading_light
- light.floorlamp_uplight
- light.gateway_light_34ce008bfc4b
- light.outside_yard_light
- light.outside_yard_hanging_lights
- light.outside_front_light
# groups:
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
- name: Fans
entities:
# - switch.doorbell
- switch.air_cleaner_auto
states:
- state: 'on'
class: 'rotation-fast'
- state: 'off'
class: 'rotation-slow'
action:
service: toggle
- name: Switches
entities:
- switch.roomba
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
service: toggle
- name: Alarm Panel
entities:
- alarm_control_panel.home_alarm
states:
- state: 'armed_away'
class: 'alarm-armed'
- state: 'armed_home'
class: 'alarm-armed'
- state: 'disarmed'
class: 'alarm-disarmed'
# - name: Pir sensors
# entities:
# - binary_sensor.passage_pir_sensor
# - binary_sensor.upstairs_hallway_pir_sensor
# # - binary_sensor.motion_sensor_158d0001a24ef1
# # - binary_sensor.motion_sensor_158d0001a66291
# states:
# - state: 'off'
# class: 'hidden'
# - state: 'on'
# class: 'warning-background'
# state_transitions:
# - name: On to off
# from_state: 'on'
# to_state: 'off'
# duration: 10
- name: Flood sensors
entities:
- binary_sensor.water_heater_sensor
- binary_sensor.water_leak_sensor_158d0001d531bb # flood sensor kitchen
states:
- state: 'off'
class: 'hidden'
- state: 'on'
class: 'flash-warning'
- name: Door and window sensors
entities:
- binary_sensor.dining_area_window_sensor_sensor
- binary_sensor.back_door_sensor
- binary_sensor.front_door_sensor
- binary_sensor.door_window_sensor_158d00019e152b # backyard door
- binary_sensor.door_window_sensor_158d00019f5110 # yard storage door
- binary_sensor.door_window_sensor_158d0001a3e45e # balcony door
states:
# - state: 'off'
# class: 'hidden'
- state: 'on'
class: 'flash-warning'
# state_transitions:
# - name: On to off
# from_state: 'on'
# to_state: 'off'
# duration: 10
# - name: Cameras
# entities:
# - camera.camera_sannce
# states:
# - state: 'idle'
# class: 'camera-idle'
- name: Sonos
entities:
- media_player.sonos
text_template: '${entity.state ? entity.attributes.media_title + " - " + entity.attributes.media_artist : "unknown"}'