-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathui-dashboard.yaml
executable file
·743 lines (727 loc) · 40.3 KB
/
ui-dashboard.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
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
custom_header:
kiosk_mode: true
button_card_templates:
!include lovelace/button_card_templates/button_card_templates.yaml
decluttering_templates:
!include lovelace/decluttering_templates/decluttering_templates.yaml
title: Home
background: var(--background)
views:
- title: Nest
icon: mdi:monitor-dashboard
panel: true
background: "right/auto linear-gradient(23deg, rgba(211,211,211,1) 0%, rgba(223,223,223,1) 34%, rgba(255,255,255,1) 100%)"
path: nest-dash
cards:
- type: vertical-stack
cards:
- type: custom:nest-layout-card
layout: horizontal
max_width: [490px, 100%]
column_num: 2
max_columns: 2
cards:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: nest_picture_button
entity: person.stefan
entity_picture: !secret stefan_image
- type: custom:decluttering-card
template: nest_button
variables:
- entity: alarm_control_panel.house
- state:
- value: 'armed_away'
icon: mdi:shield-lock
color: rgb(152,251,152)
- value: 'armed_home'
icon: mdi:shield-home
color: rgb(251, 210, 41)
- value: 'triggered'
icon: mdi:shield-alert
color: rgb(255, 0, 0)
styles:
icon:
- animation: blink 2s ease infinite
- value: 'disarmed'
icon: mdi:shield-off
color: rgb(169,169,169)
- value: 'pending'
icon: mdi:shield-half-full
color: rgb(169,169,169)
styles:
icon:
- animation: blink 2s ease infinite
- type: custom:button-card
template: nest_picture_button
entity: person.isa
entity_picture: !secret isa_image
- type: markdown
content: >
# [[ sensor.time.state ]]
### [[ sensor.date.state ]]
style: |
ha-card {
margin-top: 50px;
# margin-bottom: 330px;
background-color: rgba(0, 0, 0, 0);
font-family: 'Open Sans', sans-serif;
font-size: 200%;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
text-align: center;
}
h1, h3 {
font-weight: 300 !important;
}
- type: custom:mod-card
style: |
ha-card {
height: 300px;
overflow: hidden;
font-size: !important 150%;
}
card:
!include lovelace/notifications/dashboard_notifications.yaml
- type: custom:smhi-forecast-card
entity: weather.smhi_home
icons: "/local/icons/weather_icons/static/"
style: |
ha-card {
background-color: rgba(0, 0, 0, 0);
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: "custom:atomic-calendar-revive"
showWeekDay: true
entities:
- entity: calendar.isabella_alstrom
blacklist: "Gun, gun"
dateSize: 120
titleSize: 130
showNoEventsForToday: true
dayWrapperLineColor: rgb(186, 192, 198)
style: |
ha-card {
height: 436px;
font-family: 'Open Sans', sans-serif;
margin-bottom: 10px;
margin-right: 5px;
}
- type: horizontal-stack
cards:
- type: custom:grocy-chores-card
title: Todo
entity: sensor.grocy_chores
show_days: 3
show_quantity: 6
style: |
ha-card {
height: 530px;
font-size: 125%;
margin-right: 10px;
font-family: 'Open Sans', sans-serif;
}
.secondary {
font-size: 85%;
}
mwc-button {
display: none;
}
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Bedroom
entities:
- sensor.bedroom_temperature
show:
icon: true
fill: false
height: 35
color_thresholds:
- value: 0
color: "#CCE5FF"
- value: 10
color: "#66B2FF"
- value: 15
color: "#0080FF"
- value: 18
color: "#87c087"
- value: 21
color: "#389638"
- value: 24
color: "#FF9932"
- value: 25
color: "#FF8000"
- value: 26
color: "#ff0000"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: custom:mini-graph-card
entities:
- sensor.stefan_temperature
height: 35
name: S Office
show:
fill: false
icon: true
color_thresholds:
- value: 0
color: "#CCE5FF"
- value: 10
color: "#66B2FF"
- value: 18
color: "#0080FF"
- value: 20
color: "#87c087"
- value: 21
color: "#389638"
- value: 24
color: "#FF9932"
- value: 25
color: "#FF8000"
- value: 26
color: "#ff0000"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Passage
show:
fill: false
icon: true
height: 35
entities:
- sensor.passage_temperature
color_thresholds:
- value: 0
color: "#CCE5FF"
- value: 10
color: "#66B2FF"
- value: 18
color: "#0080FF"
- value: 20
color: "#87c087"
- value: 21
color: "#389638"
- value: 24
color: "#FF9932"
- value: 25
color: "#FF8000"
- value: 26
color: "#ff0000"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: custom:mini-graph-card
show:
fill: false
icon: true
name: Laundry
height: 35
entities:
- sensor.downstairs_bathroom_temperature
color_thresholds:
- value: 0
color: "#CCE5FF"
- value: 10
color: "#66B2FF"
- value: 18
color: "#0080FF"
- value: 20
color: "#87c087"
- value: 21
color: "#389638"
- value: 24
color: "#FF9932"
- value: 25
color: "#FF8000"
- value: 26
color: "#ff0000"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: horizontal-stack
cards:
- type: custom:bignumber-card
title: Downstairs litterbox
entity: counter.litterbox_downstairs_visits
scale: 30px
from: bottom
min: 0
max: 10
severity:
- value: 2
style: "#FDF4D9"
- value: 3
style: "#C7E0DF"
- value: 4
style: "#C5C5D2"
- value: 10
style: "#FF9932"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: custom:bignumber-card
title: Upstairs litterbox
entity: counter.litterbox_upstairs_visits
scale: 30px
min: 0
max: 10
from: bottom
severity:
- value: 2
style: "#FDF4D9"
- value: 3
style: "#C7E0DF"
- value: 4
style: "#C5C5D2"
- value: 10
style: "#FF9932"
style: |
ha-card {
margin-right: 5px;
margin-bottom: 5px;
}
- type: "custom:day-countdown"
date: "10 June 2020"
- type: vertical-stack
cards:
- type: custom:vertical-stack-in-card
cards:
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.mailbox_status
- state:
- value: 'Package and mail'
icon: mdi:mailbox-up
color: rgb(152,251,152)
- value: 'Mail'
icon: mdi:mailbox-up
color: "#87c087"
- value: 'Package'
icon: mdi:mailbox-up
color: rgb(152,251,152)
- value: 'Empty'
icon: mdi:mailbox-outline
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.trash_status
- state:
- value: 'Put out'
icon: mdi:delete-restore
color: rgb(255, 0, 0)
- value: 'Home'
icon: mdi:delete-outline
color: "#BAC0C6"
- value: 'Take in'
icon: mdi:delete-restore
color: rgb(251, 210, 41)
- value: 'Out'
icon: mdi:delete-empty-outline
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.washing_machine_status
- state:
- value: 'Clean'
icon: mdi:washing-machine
color: rgb(255, 0, 0)
- value: 'Running'
icon: mdi:washing-machine
color: rgb(152,251,152)
- value: 'Idle'
icon: mdi:washing-machine
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.dryer_status
- state:
- value: 'Clean'
icon: mdi:tumble-dryer
color: rgb(251, 210, 41)
- value: 'Running'
icon: mdi:tumble-dryer
color: rgb(152,251,152)
- value: 'Idle'
icon: mdi:tumble-dryer
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.roomba_mode
- state:
- value: 'Not Today'
icon: mdi:robot-vacuum
color: rgb(251, 210, 41)
- value: 'Waiting'
icon: mdi:robot-vacuum
color: "#BAC0C6"
- value: 'Vacuuming'
icon: mdi:robot-vacuum
color: rgb(152,251,152)
- value: 'Has Vacuumed'
icon: mdi:robot-vacuum
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_select.ebike_charger_status
- state:
- value: 'Charging'
icon: mdi:bike
color: rgb(169,169,169)
- value: 'Waiting'
icon: mdi:bike
color: rgb(251, 210, 41)
- value: 'Charged'
icon: mdi:bike
color: rgb(152,251,152)
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_boolean.guest_mode
- state:
- value: 'on'
icon: mdi:account-group-outline
color: rgb(152,251,152)
- value: 'off'
icon: mdi:account-group-outline
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: input_boolean.vacation_mode
- state:
- value: 'on'
icon: mdi:beach
color: rgb(152,251,152)
- value: 'off'
icon: mdi:beach
color: "#BAC0C6"
- type: custom:decluttering-card
template: nest_button
variables:
- entity: calendar.cleaning_day
- state:
- value: 'on'
icon: mdi:broom
color: rgb(152,251,152)
- value: 'off'
icon: mdi:broom
color: "#BAC0C6"
- type: custom:vertical-stack-in-card
cards:
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.front_door
- name: Front Door
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:door-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:door-open
color: rgb(255, 0, 0)
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.back_door
- name: Back Door
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:door-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:door-open
color: rgb(255, 0, 0)
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.yard_door
- name: Yard Door
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:door-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:door-open
color: rgb(255, 0, 0)
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.balcony_door
- name: Balcony Door
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:door-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:door-open
color: rgb(255, 0, 0)
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.dining_room_window
- name: Dining Room
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:window-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:window-open
color: rgb(255, 0, 0)
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.bedroom_window
- name: Bedroom
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:window-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:window-open
color: rgb(255,128,0)
- type: custom:decluttering-card
template: nest_button
variables:
- entity: sensor.isas_room_window
- name: Isas
- show_name: true
- show_state: false
- state:
- value: 'Closed'
icon: mdi:window-closed
color: rgb(152,251,152)
- value: 'Open'
icon: mdi:window-open
color: rgb(255,128,0)
- type: horizontal-stack
cards:
- type: conditional
conditions:
- entity: sensor.krisinformation_stockholm
state_not: "Alert"
card:
type: 'custom:home-feed-card'
title: Home Feed
compact_mode: on
scrollbars_enabled: false
max_item_count: 12
# max_height: 545px
entities:
- entity: input_select.dryer_status
name: Dryer
icon: mdi:tumble-dryer
content_template: '{{display_name}}|{{state}}'
include_history: true
- entity: input_select.washing_machine_status
content_template: '{{display_name}}|{{state}}'
name: Washer
icon: mdi:washing-machine
include_history: true
- entity: sensor.front_door
content_template: '{{display_name}}|{{state}}'
- entity: sensor.back_door
content_template: '{{display_name}}|{{state}}'
- entity: sensor.yard_door
content_template: '{{display_name}}|{{state}}'
- entity: sensor.balcony_door
content_template: '{{display_name}}|{{state}}'
- entity: sensor.dining_room_window
content_template: '{{display_name}}|{{state}}'
- entity: sensor.bedroom_window
content_template: '{{display_name}}|{{state}}'
- entity: sensor.isas_room_window
content_template: '{{display_name}}|{{state}}'
name: Isas
secondary_info: last-changed
- entity: sensor.bedroom_door
content_template: '{{display_name}}|{{state}}'
name: Bedroom
secondary_info: last-changed
- entity: binary_sensor.living_room_axis_motion_0
name: Living Room Left
content_template: '{{display_name}}|{{state}}'
secondary_info: last-changed
state_map:
off: No motion
- entity: binary_sensor.passage_axis_motion_0
name: Living Room Right
content_template: '{{display_name}}|{{state}}'
secondary_info: last-changed
state_map:
off: No motion
- entity: binary_sensor.passage_motion_sensor
name: Passage
content_template: '{{display_name}}|{{state}}'
state_map:
off: No motion
- entity: binary_sensor.upstairs_hallway_motion_sensor
name: Stairs
content_template: '{{display_name}}|{{state}}'
state_map:
off: No motion
- entity: binary_sensor.stefans_room_motion
content_template: '{{display_name}}|{{state}}'
name: S Office
state_map:
off: No motion
- entity: switch.bike_charger
content_template: '{{display_name}}|{{state}}'
name: E-bike charger
include_history: true
- entity: binary_sensor.kitchen_motion
icon: mdi:cat
name: Kitchen Cats
content_template: '{{display_name}}|{{state}}'
- entity: binary_sensor.downstairs_litterbox_motion
icon: mdi:cat
name: Downstairs Litterbox
content_template: '{{display_name}}|{{state}}'
- entity: binary_sensor.upstairs_litterbox_motion
icon: mdi:cat
name: Upstairs Litterbox
content_template: '{{display_name}}|{{state}}'
- entity: binary_sensor.hallway_motion
content_template: '{{display_name}}|{{state}}'
name: Hallway
style: |
ha-card {
height: 545px;
margin-top: 10px;
overflow: hidden;
font-family: 'Open Sans', sans-serif;
}
.header {
padding-top: 24px !important;
}
- type: conditional
conditions:
- entity: sensor.krisinformation_stockholm
state: "Alert"
card:
type: custom:krisinfo-card
entity: sensor.krisinformation_stockholm
style: |
.header {
display: none;
}
a {
display: none;
}
ha-card {
height: 545px;
margin-top: 10px;
overflow: hidden;
font-family: 'Open Sans', sans-serif;
}
- type: custom:upcoming-media-card
entity: sensor.recently_added_tv
title: On Plex
date: ddmm
clock: 24
max: 4
image_style: fanart
flag: false
hide_unflagged: true
icon: none
all_shadows: false
flag_color: "#e5a00d"
border_color: "#ffffff"
accent_color: "#ffffff"
title_color: "#636B75"
line_color: "#636B75"
title_size: large
line_size: medium
title_text: "$title"
line1_text: "$number - $episode"
line2_text: "$runtime - $rating - $genres"
line3_text: "Released: $aired"
line4_text: "Added: $release"
style: |
# .plex_fan_fanart {
# -webkit-box-shadow: none;
# -moz-box-shadow: none;
# box-shadow: none !important;
# height: 100px;
# }
ha-card {
margin-top: 10px;
font-family: 'Open Sans', sans-serif;
height: 560px;
# 560
}
.card-header {
padding-bottom: 8px;
padding-bottom: 0;
}
.plex_poster {
margin: 0 !important;
}
.rece_poster {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
style: |
ha-card {
# height: 920px;
font-family: 'Open Sans', sans-serif;
font-size: 150%;
# margin: 10px;
text-align: center;
# margin-top: 40px;
}