-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-lovelace.yaml
344 lines (335 loc) · 9.61 KB
/
ui-lovelace.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
title: Home
views:
- title: Home
path: home
icon: mdi:view-grid
cards:
- type: picture-elements
image: /local/floorplan.png?v=3
elements:
# living room
- type: custom:state-icon
entity: sensor.plug_power
icon: mdi:piano
style:
top: 33%
left: 35%
- type: state-icon
entity: binary_sensor.motion_living_room
style:
top: 48%
left: 41%
- type: state-icon
entity: binary_sensor.motion_sofas
style:
top: 15%
left: 50%
- type: state-icon
entity: binary_sensor.motion_dining_room
style:
top: 53%
left: 77%
- type: state-icon
entity: light.living_room
hold_action:
action: call-service
service: switch.toggle
service_data:
entity_id: switch.light_living_room
double_tap_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.living_room_ambilight
style:
top: 33%
left: 50%
- type: custom:state-icon
entity: media_player.tv
hold_action:
action: toggle
style:
top: 54%
left: 50%
# living room balcony
- type: state-icon
entity: switch.water_heater
hold_action:
action: toggle
style:
top: 17%
left: 22%
# bedroom
- type: state-icon
entity: binary_sensor.door_bedroom
style:
top: 64.8%
left: 29.5%
- type: state-icon
entity: light.bedroom
hold_action:
action: toggle
style:
top: 71%
left: 18%
- type: custom:state-icon
entity: climate.bedroom
hold_action:
action: toggle
style:
top: 83%
left: 34%
- type: state-label
entity: sensor.ht_bedroom_temperature
tap_action:
action: navigate
navigation_path: /lovelace/history
hold_action:
action: more-info
style:
top: 90%
left: 12.5%
- type: state-label
entity: sensor.ht_bedroom_humidity
tap_action:
action: navigate
navigation_path: /lovelace/history
hold_action:
action: more-info
style:
top: 85%
left: 12%
# people
- type: state-icon
entity: camera.living_room
style:
top: 90%
left: 87%
- type: image
entity: device_tracker.device_1
image: /local/device_1.jpg
state_filter:
not_home: grayscale(100%)
work: grayscale(100%)
style:
top: 85%
left: 95%
width: 5%
border-radius: 50%
- type: image
entity: device_tracker.device_2
image: /local/device_2.jpg
state_filter:
not_home: grayscale(100%)
style:
top: 93%
left: 95%
width: 5%
border-radius: 50%
# kitchen
- type: state-icon
entity: binary_sensor.smoke_smoke
style:
top: 44%
left: 77%
- type: state-icon
entity: light.kitchen
style:
top: 50%
left: 82%
# outside
- type: state-label
entity: sensor.dark_sky_apparent_temperature
tap_action:
action: navigate
navigation_path: /lovelace/history
hold_action:
action: more-info
style:
top: 72%
left: 90.3%
- type: state-label
entity: sensor.dark_sky_humidity
tap_action:
action: navigate
navigation_path: /lovelace/history
hold_action:
action: more-info
style:
top: 67%
left: 89.6%
- type: state-label
entity: !secret air_sensor
tap_action:
action: navigate
navigation_path: /lovelace/history
hold_action:
action: more-info
style:
top: 77%
left: 89.8%
- type: custom:glance-card
show_name: no
show_state: no
columns: 8
entities:
- entity: light.living_room
name: Living room
tap_action:
action: call-service
service: switch.toggle
service_data:
entity_id: switch.light_living_room
- entity: light.bedroom
tap_action:
action: toggle
- entity: switch.plug_switch
icon: mdi:piano
tap_action:
action: toggle
- entity: switch.water_heater
tap_action:
action: toggle
- entity: climate.bedroom
tap_action:
action: toggle
- entity: media_player.tv
tap_action:
action: toggle
- entity: switch.moonlight_living_room
tap_action:
action: toggle
- entity: switch.moonlight_bedroom
tap_action:
action: toggle
- type: conditional
conditions:
- entity: media_player.tv
state: 'on'
card:
type: custom:mini-media-player
entity: media_player.tv
hide_controls: yes
power_color: yes
show_source: small
# - type: custom:mini-media-player
# entity: media_player.vlc
# hide_controls: yes
# hide_power: yes
# group: yes
# show_tts: google
- type: conditional
conditions:
- entity: climate.bedroom
state_not: 'off'
- entity: climate.bedroom
state_not: 'unavailable'
card:
type: custom:simple-thermostat
entity: climate.bedroom
step_size: 1
sensors:
- entity: sensor.ht_bedroom_humidity
name: Humidity
- type: conditional
conditions:
- entity: weather.hangzhou
state_not: dummy
card:
type: weather-forecast
entity: weather.hangzhou
- title: History
path: history
icon: mdi:chart-line
panel: yes
cards:
- type: history-graph
refresh_interval: 60
entities:
- entity: sensor.ht_bedroom_temperature
name: Bedroom
- entity: sensor.ht_bedroom_humidity
name: Bedroom
- entity: sensor.dark_sky_apparent_temperature
name: Outside
- entity: sensor.dark_sky_humidity
name: Outside
- entity: !secret air_sensor
name: !secret air_name
- title: Map
path: map
icon: mdi:map
panel: yes
cards:
- type: map
entities:
- device_tracker.device_1
- device_tracker.device_2
- zone.home
- zone.work
hours_to_show: 24
- title: Settings
path: settings
icon: mdi:cog
cards:
- type: entities
entities:
- type: call-service
name: Hass reload groups
icon: mdi:home-assistant
action_name: Groups
service: group.reload
service_data: {}
- type: call-service
name: Hass reload scripts
icon: mdi:home-assistant
action_name: Scripts
service: script.reload
service_data: {}
- type: call-service
name: Hass reload automations
icon: mdi:home-assistant
action_name: Autos
service: automation.reload
service_data: {}
- type: call-service
name: Hass reload core
icon: mdi:home-assistant
action_name: Core
service: homeassistant.reload_core_config
service_data: {}
- type: call-service
name: Hass restart
icon: mdi:home-assistant
action_name: Restart
service: homeassistant.restart
service_data: {}
- type: call-service
name: Test notification
icon: mdi:message-text
action_name: Test
service: notify.html5
service_data:
message: This is a test message
- type: entities
entities:
- input_boolean.zigbee2mqtt_permit_join
- timer.zigbee2mqtt_permit_join
- input_select.zigbee2mqtt_log_level
- title: Debug
path: debug
icon: mdi:bug
# panel: yes
cards:
- type: history-graph
hours_to_show: 12
refresh_interval: 60
entities:
- sensor.climate_bedroom_mode
- sensor.climate_bedroom_temperature_change
- sensor.ht_climate_bedroom_temperature
- sensor.ht_bedroom_temperature
- type: "custom:zigbee2mqtt-networkmap"
entity: sensor.zigbee2mqtt_networkmap
height: 320
force: 2000