-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-lovelace.yaml
657 lines (634 loc) · 23 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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
background: var(--background-image)
title: Home
decluttering_templates:
automation_template:
card:
card:
show_header_toggle: false
title: "[[name]] automations"
type: entities
filter:
include:
- entity_id: automation.[[slug]]*
sort: entity_id
type: custom:auto-entities
entity_template:
card:
card:
show_header_toggle: false
title: "[[name]]"
type: entities
filter:
include:
- entity_id: "[[include_domain]].[[slug]]*"
sort: entity_id
type: custom:auto-entities
views:
- theme: dark-mode
title: home
path: home
icon: mdi:home
cards:
- type: vertical-stack
cards:
- show_header_toggle: false
title: Upstairs Lights
type: entities
entities:
- type: custom:fold-entity-row
head:
color_picker: true
entity: light.living_room_lights
name: Living
type: custom:slider-entity-row
icon: mdi:sofa
entities:
- type: custom:fold-entity-row
head:
color_picker: true
entity: light.entrance_lights
name: Entrance
type: custom:slider-entity-row
icon: phu:ceiling-spot-lamp
entities:
- light.entrance_spot_1
- light.entrance_spot_2
- light.entrance_spot_3
- light.entrance_spot_4
- type: custom:fold-entity-row
head:
color_picker: true
entity: light.living_room_middle_lights
name: Middle Lights
type: custom:slider-entity-row
icon: phu:ceiling-spot-lamp
entities:
- light.living_room_middle_spot_1
- light.living_room_middle_spot_2
- light.living_room_middle_spot_3
- light.living_room_middle_spot_4
- light.standing_lamp
- type: custom:fold-entity-row
head:
entity: light.kitchen_lights
name: Kitchen
icon: mdi:fridge
type: custom:slider-entity-row
entities:
- type: custom:fold-entity-row
head:
entity: light.kitchen_spots
name: Kitchen Spots
icon: phu:ceiling-spot-lamp
type: custom:slider-entity-row
entities:
- light.kitchen_spot_1
- light.kitchen_spot_2
- light.kitchen_spot_3
- light.kitchen_spot_4
- light.table_lamp
- light.kitchen_cabinet
- light.kitchen_cabinet_strips
- type: custom:fold-entity-row
head:
color_picker: true
entity: light.pantry_lights
name: Pantry
type: custom:slider-entity-row
icon: mdi:wardrobe
entities:
- light.pantry_spot_top
- light.pantry_spot_middle
- light.pantry_spot_bottom
- show_header_toggle: false
title: Downstairs Lights
type: entities
entities:
- type: custom:fold-entity-row
head:
entity: light.bedroom_lights
icon: mdi:bed-double
type: custom:slider-entity-row
name: Bedroom
entities:
- light.bedside_lamp_left
- light.bedside_lamp_right
- type: custom:fold-entity-row
head:
entity: light.bathroom_lights
name: Bathroom
icon: mdi:shower
type: custom:slider-entity-row
entities:
- light.bathroom_back
- light.bathroom_entrance
- light.bathroom_middle_hallway
- light.bathroom_middle_sink
- type: custom:fold-entity-row
head:
entity: light.hallway_lights
name: Hallway
icon: mdi:door
type: custom:slider-entity-row
entities:
- light.hallway
- type: custom:slider-entity-row
entity: light.toilet
name: Toilet
icon: mdi:toilet
- cards:
- type: horizontal-stack
cards:
- color: auto
icon: mdi:weather-sunset-up
entity: input_select.sleep_mode
name: >-
[[[ if (entity.state != "off") return "Wake up"; else return
"Currently awake" ]]]
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: input_select.select_option
service_data:
entity_id: input_select.sleep_mode
option: "off"
type: custom:button-card
- color: auto
entity: input_select.sleep_mode
icon: mdi:weather-night
name: >-
[[[ if (entity.state != "off") return "Sleep mode on"; else
return "Go to sleep" ]]]
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: script.going_to_sleep
type: custom:button-card
- show_header_toggle: false
type: entities
entities:
- input_select.sleep_mode
- cards:
- color: auto
icon: mdi:home-export-outline
name: Leave Home
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: script.leaving
type: custom:button-card
type: horizontal-stack
- cards:
- color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:alarm-check"; else
return "mdi:alarm" ]]]
entity: input_boolean.alarm_clock
name: >-
[[[ if (entity.state == "on") return "Alarm is on"; else return
"Alarm is off" ]]]
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.alarm_clock
type: custom:button-card
- color: auto
icon: >-
[[[ if (entity.state == "True") return "mdi:weather-windy"; else
return "mdi:checkbox-marked-circle-outline" ]]]
entity: binary_sensor.living_room_open_window
name: >-
[[[ if (entity.state == "True") return "Window(s) open"; else
return "No open window detected" ]]]
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
type: horizontal-stack
- cards:
- color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:fireplace"; else return
"mdi:cancel" ]]]
entity: input_boolean.automatic_temperature
name: >-
[[[ if (entity.state == "on") return "Automatic heating enabled";
else return "Automatic heating disabled" ]]]
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.automatic_temperature
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
- name: >-
[[[ if (entity.state == "on") return "Automatic bedroom lights enabled";
else return "Automatic bedroom lights disabled" ]]]
type: custom:button-card
color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:head-lightbulb"; else
return "mdi:lightbulb-off" ]]]
entity: input_boolean.automatic_bedroom_lights
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.automatic_bedroom_lights
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
- color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:head-lightbulb"; else
return "mdi:lightbulb-off" ]]]
entity: input_boolean.automatic_lights
name: >-
[[[ if (entity.state == "on") return "Automatic lights enabled";
else return "Automatic lights disabled" ]]]
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.automatic_lights
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
type: horizontal-stack
- cards:
- color: auto
icon: mdi:refresh
entity: input_boolean.automatic_temperature
name: Resync lights with sun
tap_action:
action: call-service
haptic: success
service: script.resync_lights
# tap_action:
# action: call-service
# haptic: success
# service: adaptive_lighting.set_manual_control
# service_data:
# entity_id:
# - switch.adaptive_lighting_hallway
# - switch.adaptive_lighting_pantry
# - switch.adaptive_lighting_living_room
# - switch.adaptive_lighting_bathroom
# - switch.adaptive_lighting_bedroom
# - switch.adaptive_lighting_kitchen
# manual_control: false
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
- color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:airplane-takeoff"; else
return "mdi:airplane-off" ]]]
entity: input_boolean.vacation_mode
name: >-
[[[ if (entity.state == "on") return "Vacation mode enabled"; else
return "Vacation mode disabled" ]]]
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.vacation_mode
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
- color: auto
icon: >-
[[[ if (entity.state == "on") return "mdi:television"; else
return "mdi:television" ]]]
entity: input_boolean.tv_mode
name: >-
[[[ if (entity.state == "on") return "TV mode enabled"; else
return "TV mode disabled" ]]]
tap_action:
action: call-service
haptic: success
service: input_boolean.toggle
service_data:
entity_id: input_boolean.tv_mode
styles:
card:
- font-size: 12px
- font-weight: bold
- height: 70px
type: custom:button-card
type: horizontal-stack
type: vertical-stack
- type: vertical-stack
cards:
- type: custom:mini-media-player
artwork: cover
entity: media_player.living_room_android_tv
hide:
power: false
source: false
volume: false
- type: custom:mini-media-player
artwork: cover
entity: media_player.apple_tv_living_room
hide:
power: true
source: true
volume: true
icon: phu:apple-tv
- type: custom:mini-media-player
artwork: cover
entity: media_player.spotify
hide:
power: true
source: false
volume: true
icon: mdi:spotify
# - type: custom:simple-thermostat
# entity: climate.living_room
# step_layout: row
# name: false
# icon: false
# control: true
# decimals: "1"
- type: weather-forecast
entity: weather.home
- type: custom:swipe-card
parameters: null
spaceBetween: 8
scrollbar:
hide: false
draggable: true
snapOnRelease: true
cards:
- name: CGM Graph - 12 Hours
animate: true
color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0DA035"
value: 5
- color: "#E0B400"
value: 10
- color: "#E45E65"
value: 15
detail: 2
entities:
- entity: sensor.dexcom_liamwoodleigh_glucose_value
show_fill: true
show_state: false
smoothing: true
hours_to_show: 12
line_width: 3
points_per_hour: 60
show:
graph: line
labels: true
average: true
type: custom:mini-graph-card
unit: mmol/L
- aggregate_func: avg
animate: true
color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0da035"
value: 5
- color: "#e0b400"
value: 10
- color: "#e45e65"
value: 15
entities:
- entity: sensor.dexcom_liamwoodleigh_glucose_value
group_by: date
hours_to_show: 168
name: Avg CGM Value Per Day
show:
graph: bar
labels: true
state: true
type: custom:mini-graph-card
# - type: vertical-stack
# cards:
# - type: custom:xiaomi-vacuum-card
# entity: vacuum.xiaomi_vacuum_cleaner
# name: Vacuum
# - type: custom:swipe-card
# parameters: null
# spaceBetween: 8
# scrollbar:
# hide: false
# draggable: true
# snapOnRelease: true
# cards:
# - type: entities
# entities:
# - entity: input_boolean.vacuum_day
# - entity: input_boolean.cleaned_today
# name: Vacuum cleaned already today?
# show_header_toggle: false
# - type: entities
# entities:
# - entity: sensor.mijnafvalwijzer_restafval
# name: Restafval
# icon: hass:delete-empty
# - entity: sensor.mijnafvalwijzer_papier
# name: Papier
# icon: hass:file
# - type: custom:xiaomi-vacuum-map-card
# entity: vacuum.xiaomi_vacuum_cleaner
# map_source:
# camera: camera.xiaomi_cloud_map_extractor
# calibration_source:
# camera: true
- title: CGM
badges: []
icon: mdi:chart-bell-curve
path: CGM
cards:
- cards:
- color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0DA035"
value: 5
- color: "#E0B400"
value: 10
- color: "#E45E65"
value: 15
detail: 1
entities:
- entity: sensor.liams_hba1c_value
show_fill: false
show_state: true
smoothing: true
hours_to_show: 2160
icon: mdi:water
line_width: 3
name: HbA1C Avg - 90 days
show:
graph: line
type: custom:mini-graph-card
unit: "%"
- color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0DA035"
value: 5
- color: "#E0B400"
value: 10
- color: "#E45E65"
value: 15
detail: 1
entities:
- entity: sensor.glucose_avg_90d
show_fill: false
show_state: true
smoothing: true
hours_to_show: 2160
icon: mdi:water
line_width: 3
name: Estimated Avg Glucose - 90 days
show:
graph: line
type: custom:mini-graph-card
unit: mmol/L
- aggregate_func: avg
animate: true
color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0da035"
value: 5
- color: "#e0b400"
value: 10
- color: "#e45e65"
value: 15
entities:
- entity: sensor.dexcom_liamwoodleigh_glucose_value
group_by: date
hours_to_show: 168
name: Avg CGM Value Per Day
show:
graph: bar
labels: true
state: true
type: custom:mini-graph-card
type: vertical-stack
- cards:
- aspect_ratio: 500x220
type: iframe
url: https://g6-cgm.herokuapp.com/clock/clock-color
type: vertical-stack
- cards:
- type: custom:mini-graph-card
animate: true
color_thresholds:
- color: "#039BE5"
value: 2
- color: "#0DA035"
value: 5
- color: "#E0B400"
value: 10
- color: "#E45E65"
value: 15
detail: 2
entities:
- entity: sensor.dexcom_liamwoodleigh_glucose_value
show_fill: true
show_state: false
smoothing: true
hours_to_show: 12
line_width: 3
name: CGM Graph - 12 Hours
points_per_hour: 60
show:
graph: line
labels: true
unit: mmol/L
- type: custom:mini-graph-card
animate: true
color_thresholds:
- color: "#c0392b"
value: 3
- color: "#08ff2d"
value: 5
- color: "#f7ff08"
value: 10
- color: "#ff3508"
value: 15
detail: 1
entities:
- sensor.dexcom_liamwoodleigh_glucose_value
graph: line
hours_to_show: 36
line_width: 3
name: CGM Graph - 36 Hours
points_per_hour: 30
show:
labels: true
- type: custom:mini-graph-card
animate: true
color_thresholds:
- color: "#c0392b"
value: 3
- color: "#08ff2d"
value: 5
- color: "#f7ff08"
value: 10
- color: "#ff3508"
value: 15
entities:
- sensor.dexcom_liamwoodleigh_glucose_value
hours_to_show: 168
line_width: 3
name: CGM Graph - 7 Days
points_per_hour: 5
show:
labels: true
state: true
- cards: []
type: horizontal-stack
type: vertical-stack