-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard_overview.yaml
1868 lines (1864 loc) · 63.5 KB
/
dashboard_overview.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
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
button_card_templates:
lightpopup_main:
variables:
entity: '[[[ return entity.entity_id ]]]'
name: '[[[ return entity.attributes.friendly_name ]]]'
hold_action:
action: fire-dom-event
browser_mod:
command: popup
title: '[[[ return variables.name ]]]'
style:
$: |
.mdc-dialog .mdc-dialog__container {
width: 100%;
}
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
width:100%;
box-shadow:none;
}
.: |
:host {
--mdc-theme-surface: rgba(0,0,0,0);
--secondary-background-color: rgba(0,0,0,0);
--ha-card-background: rgba(0,0,0,0);
--mdc-dialog-scrim-color: rgba(0,0,0,0.8);
--mdc-dialog-min-height: 100%;
--mdc-dialog-min-width: 100%;
--mdc-dialog-max-width: 100%;
}
mwc-icon-button {
color: #FFF;
}
card:
type: custom:light-popup-card
entity: '[[[ return variables.entity ]]]'
fullscreen: true
actionsInARow: 4
displayType: slider
settings:
openButton: More
closeButton: Close
settingsCard:
type: custom:light-entity-card
cardOptions:
entity: '[[[ return variables.entity ]]]'
persist_features: true
smooth_color_wheel: true
lightpopup_rgb:
template: lightpopup_main
hold_action:
browser_mod:
command: popup
card:
actions:
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
rgb_color:
- 255
- 0
- 0
color: '#FF0000'
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
rgb_color:
- 255
- 255
- 0
color: '#FFFF00'
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
rgb_color:
- 255
- 0
- 255
color: '#FF00FF'
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
rgb_color:
- 0
- 255
- 255
color: '#00FFFF'
lightpopup_cct:
template: lightpopup_main
hold_action:
browser_mod:
command: popup
card:
actions:
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 1
color: rgb(70, 70, 70)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 33
color: rgb(125, 125, 125)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 66
color: rgb(195, 195, 195)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 100
color: rgb(255, 255, 255)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
kelvin: 2000
color: rgb(255, 236, 151)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
kelvin: 3000
color: rgb(212, 226, 185)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
kelvin: 4250
color: rgb(169, 216, 219)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
kelvin: 5000
color: rgb(156, 222, 255)
lightpopup_dim:
template: lightpopup_main
hold_action:
service_data:
card:
actions:
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 1
color: rgb(70, 70, 70)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 33
color: rgb(125, 125, 125)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 66
color: rgb(195, 195, 195)
- service: light.turn_on
service_data:
entity_id: '[[[ return variables.entity ]]]'
brightness_pct: 100
color: rgb(255, 255, 255)
customcard_style:
styles:
card:
- padding: 10px
- padding-top: 3px
- padding-bottom: 3px
- box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 3px 0px
- border-radius: var(--ha-card-border-radius, 12px)
- user-select: none
name:
- justify-self: start
- padding-left: 0px
- font-weight: 500
- font-size: 14px
- align-self: middle
- padding-top: 20px
img_cell:
- justify-content: start
- align-items: start
- margin: none
icon:
- margin-top: 5px
- width: 30px
- height: 30px
customcard_31wrapper:
template: customcard_style
aspect_ratio: 3/1
variables:
entity_temp: ''
entity_hum: ''
styles:
card:
- padding: 0px
grid:
- grid-template-areas: '"graph"'
- grid-template-columns: 1fr
- grid-template-rows: 1fr
custom_fields:
graph:
- padding: 0px
- margin: 0px
- align-items: end
customcard_21wrapper:
template: customcard_style
variables:
entity_temp: ''
entity_hum: ''
styles:
card:
- padding: 5px
- padding-top: 0px
- padding-bottom: 0px
- height: 100%
grid:
- grid-template-areas: '"graph"'
- grid-template-columns: 1fr
- grid-template-rows: 1fr
custom_fields:
graph:
- padding: 0px
- margin: 0px
- align-items: end
customcard_graph:
template: customcard_31wrapper
custom_fields:
graph:
card:
type: custom:mini-graph-card
name: PC room
style: |
ha-card > div.states {margin-top: 0px; padding-bottom: 0px}
ha-card .state__value {
font-size:25px !important;
color: var(--tile-name-text-color, rgba(0, 0, 0, 0.4))
}
ha-card .state__uom {
color: var(--tile-name-text-color, rgba(0, 0, 0, 0.4))
}
ha-card {
border-radius: 0 !important;
box-shadow: none !important;
background: transparent;
}
hours_to_show: 48
line_width: 1
lower_bound: 15
upper_bound: 30
lower_bound_secondary: 20
upper_bound_secondary: 100
show:
legend: false
icon: false
name: false
labels: false
labels_secondary: false
entities:
- entity: '[[[ return variables.entity_temp ]]]'
- entity: '[[[ return variables.entity_hum ]]]'
y_axis: secondary
show_state: true
customcard_graph_apex:
template: customcard_31wrapper
custom_fields:
graph:
card:
type: custom:apexcharts-card
style: |
ha-card .apexcharts-legend-text {
color: var(--tile-state-text-color, rgba(0, 0, 0, 0.4)) !important;
font-size: 14px !important
}
hours_12: false
graph_span: 36h
apex_config:
chart:
sparkline:
enabled: true
height: 80%
legend:
position: top
floating: false
grid:
show: false
yaxis:
- id: temp
min: 10
max: 45
show: false
- id: hum
show: false
min: 0
max: 90
series:
- entity: '[[[ return variables.entity_temp ]]]'
yaxis_id: temp
color: var(--accent-color)
name: temp
stroke_width: 1
type: area
fill_raw: last
opacity: 0.2
- entity: '[[[ return variables.entity_target ]]]'
transform: return entity.attributes.temperature
yaxis_id: temp
color: var(--accent-color)
name: target
stroke_width: 1
type: line
opacity: 0.2
- entity: '[[[ return variables.entity_hum ]]]'
yaxis_id: hum
color: '#3498db'
name: hum
stroke_width: 1
type: area
opacity: 0.1
fill_raw: last
subsection_hide_inactive:
state:
- operator: regex
value: ^(off|unknown|unavailable)$
styles:
card:
- display: none
- width: 0px !important
- operator: '=='
value: 0
styles:
card:
- display: none
- width: 0px !important
- operator: default
styles:
card:
- display: flex
- width: 22px
subsection_err_handling:
state_display: |
[[[
if (!entity) return 'N/A';
else if (entity.state === 'unavailable') return 'N/A';
else if (entity.state === 'unknown') return 'UKN';
else if (entity.attributes.device_class == 'temperature') return (Math.round(entity.state*100)/100).toFixed(1);
else if (entity.attributes.device_class == 'window' || entity.attributes.device_class == 'door')
{
switch (entity.state.toLowerCase())
{
case 'on':
return 'Open';
break;
case 'off':
return 'Closed';
break;
}
}
else return entity.state.charAt(0).toUpperCase() + entity.state.slice(1);
]]]
state:
- operator: regex
value: unavailable|unknown
styles:
state:
- color: rgba(255,0,0,0.5)
label:
- color: rgba(255,0,0,0.5)
icon:
- color: rgba(255,0,0,0.5)
card_hide_noentity:
styles:
card:
- display: |
[[[ return entity == null ? 'none' : 'undefined' ]]]
card_hide_unavailable:
styles:
card:
- display: >
[[[ return typeof entity === "undefined" || entity.state ==
'unavailable' ? 'none' : 'undefined' ]]]
card_hide_unavailable2:
state:
- value: unavailable
styles:
card:
- display: none !important
mycustomcard:
template:
- customcard_style
- subsection_err_handling
- card_hide_noentity
variables:
view: >
[[[ return '/' + window.location.pathname.split('/').slice()[1] + '/'
]]]
show_icon: true
show_state: false
aspect_ratio: 1/1
card_size: 1
tap_action:
action: navigate
hold_action:
action: call-service
styles:
card:
- display: |
[[[ return entity == null ? 'none' : 'undefined' ]]]
grid:
- grid-template-areas: '"i window" "n n" "misc temp"'
- grid-template-columns: 1fr 60%
- grid-template-rows: 1fr 1fr 1fr 0fr
custom_fields:
window:
- padding-bottom: 0px
- align-self: end
- justify-self: end
- pointer-events: none
- align-self: center
misc:
- padding-bottom: 0px
- align-self: end
- justify-self: start
- color: var(--tile-on-state-text-color, rgba(0, 0, 0, 1))
- pointer-events: none
temp:
- padding-bottom: 0px
- align-self: end
- justify-self: end
- margin-right: '-5px'
- color: var(--tile-on-state-text-color, rgba(0, 0, 0, 1))
- pointer-events: none
mycustomcard_state_colors:
styles:
state:
- color: red
state:
- value: 'on'
styles:
icon:
- color: var(--state-light-active-color)
name:
- color: var(--tile-on-name-text-color, rgba(0, 0, 0, 1))
state:
- color: var(--tile-on-state-text-color, rgba(0, 0, 0, 1))
- value: open
styles:
icon:
- color: var(--state-light-active-color)
name:
- color: var(--tile-on-name-text-color, rgba(0, 0, 0, 1))
state:
- color: var(--tile-on-state-text-color, rgba(0, 0, 0, 1))
- value: Washing
styles:
icon:
- color: var(--state-light-active-color)
name:
- color: var(--tile-on-name-text-color, rgba(0, 0, 0, 1))
state:
- color: var(--tile-on-state-text-color, rgba(0, 0, 0, 1))
- value: Empty it!
styles:
icon:
- color: orange
state:
- color: orange
- value: 'off'
styles:
icon:
- color: var(--paper-item-icon-color)
name:
- color: var(--tile-name-text-color, rgba(0, 0, 0, 0.4))
state:
- color: var(--tile-state-text-color, rgba(0, 0, 0, 0.4))
- value: idle
styles:
icon:
- color: var(--paper-item-icon-color)
name:
- color: var(--tile-name-text-color, rgba(0, 0, 0, 0.4))
state:
- color: var(--tile-state-text-color, rgba(0, 0, 0, 0.4))
- value: closed
styles:
icon:
- color: var(--paper-item-icon-color)
name:
- color: var(--tile-name-text-color, rgba(0, 0, 0, 0.4))
state:
- color: var(--tile-state-text-color, rgba(0, 0, 0, 0.4))
mycustomcard_background_colors:
state:
- value: 'on'
operator: '=='
styles:
card:
- background-color: blue
- value: default
styles:
card:
- background-color: yellow
mycustomcard_action:
template:
- mycustomcard
- mycustomcard_state_colors
- mycustomcard_background_colors
show_state: true
tap_action:
action: none
styles:
grid:
- grid-template-areas: '"i window" "n n" "s s"'
- grid-template-columns: 1fr 60%
- grid-template-rows: 1fr 1fr 1fr
img_cell:
- justify-content: start
- align-items: center
state:
- font-size: 14px
- font-weight: 300
- align-self: start
- justify-self: start
custom_fields:
window:
- padding-top: 5px
- width: 35px
- align-self: start
- justify-self: end
- pointer-events: none
custom_fields:
window: >
[[[ if (entity != null && entity.state == "on" &&
entity.attributes.brightness) {
const brightness = Math.round(entity.attributes.brightness/2.54);
const radius = 25; const circumference = radius * 2 * Math.PI;
return `<svg viewBox="0 0 56 56"><circle cx="28" cy="28" r="${radius}"
stroke="var(--active-color)" stroke-width="2" fill="none"
style="transform: rotate(-90deg); transform-origin: 50% 50%;
stroke-dasharray: ${circumference};
stroke-dashoffset: ${circumference - brightness / 100 * circumference};" />
<text x="50%" y="54%" fill="var(--active-color)" font-size="13" font-weight="normal"
text-anchor="middle" alignment-baseline="middle">
${brightness}%</text></svg>`;} ]]]
mycustomcard2:
template:
- mycustomcard
- mycustomcard_state_colors
styles:
custom_fields:
temp:
- margin-right: 0px
mycustomcard_action_toggle:
template: mycustomcard_action
tap_action:
action: toggle
subsection_selected_entities:
variables:
entity: null
subsection_style:
show_name: false
show_icon: true
show_state: false
tap_action:
action: none
double_tap_action:
action: none
hold_action:
action: none
styles:
card:
- background-color: transparent
style: |
ha-card {
box-shadow: none;
}
subsection_window:
template:
- subsection_style
- subsection_err_handling
styles:
icon:
- align-self: end
- width: 25px
img_cell:
- justify-content: end
- align-items: end
- align-self: auto
subsection_bottom:
template: subsection_style
styles:
icon:
- width: 22px
- heigth: 22px
- padding: 0px
- margin: 0px
subsection_temp:
template:
- subsection_bottom
- subsection_err_handling
show_name: false
show_icon: true
show_units: false
show_state: true
styles:
grid:
- grid-template-areas: '"s i"'
- grid-template-columns: 1fr 22px
- grid-template-rows: 1fr
state:
- justify-self: start
- font-size: 12px
- margin-top: 6px
icon:
- color: var(--paper-item-icon-color)
card:
- padding: 0px
- margin: 0px
title: Home
views:
- title: Home
path: home
icon: mdi:home
badges: []
cards:
- type: custom:mod-card
style:
.: |
ha-card {
margin: 0px 0px;
}
hui-grid-card:
$:
div: |
button-card:first-of-type {grid-area: 1 / 1 / 1 / 3 !important}
card:
type: grid
style: |
:host {padding: 0px 13px !important}
ha-card {padding: 0px 13px !important}
square: true
columns: 3
cards:
- type: custom:button-card
template:
- customcard_21wrapper
custom_fields:
graph:
card:
type: weather-forecast
entity: weather.domov
name: Home
show_forecast: true
style: |
ha-card {
padding: 5px!important;
display: flex!important;
flex-direction: column!important;
background: transparent!important;
box-shadow: none!important;
border-radius:0!important;
color: var(--primary-text-color);
}
.content {
display: flex!important;
flex-direction: row!important;
color: var(--primary-text-color)
}
.icon-image {
min-width: auto!important;
}
.icon-image > * {
height: 32px!important;
flex: 0 0 32px!important;
}
.info
{
flex-direction: row !important;
}
.info .name-state {
font-weight: 500;
float:left
}
.info .name-state .state {
font-size:14px!important;
text-align:left;
}
.info .name-state .name {
font-size:4px!important;
display: none;
}
.info .temp-attribute {
width:100%;
font-weight: 500;
float:right
}
.info .temp-attribute .temp {
font-size: 16px!important;
}
.info .temp-attribute .temp span {
font-size: 14px!important;
}
.forecast {
font-size: 14px!important;
padding-top: 5px!important;
padding: 1px !important;
}
.forecast-image-icon {
padding:0!important;
height: 24px;
}
.forecast-image-icon > * {
width:30px!important;
height:30px!important;
margin: 0 auto!important;
}
.forecast .temp {
margin-top:0!important;
font-size:12px!important;
font-weight: 400;
color: var(--primary-text-color)
}
.forecast .templow {
display:none;
}
- type: custom:button-card
template: mycustomcard
name: House
entity: binary_sensor.house_entries_all
tap_action:
navigation_path: house
hold_action:
service: light.turn_off
service_data:
entity_id: light.all_lights
custom_fields:
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.gate_state
icon: |
[[[
return (states['binary_sensor.gate_state'].state === 'on' ? 'mdi:gate-open' : 'mdi:gate');
]]]
misc:
card:
type: custom:stack-in-card
mode: horizontal
style: |
ha-card {
box-shadow: none;
}
cards:
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: binary_sensor.garbage_mixed
styles:
icon:
- color: orange
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: sensor.netatmo_home_rain
icon: mdi:weather-rainy
styles:
icon:
- color: lightblue
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: binary_sensor.garbage_bio
styles:
icon:
- color: orange
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
- card_hide_unavailable
entity: switch.zb_switch1
icon: mdi:pine-tree
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
- card_hide_unavailable
entity: switch.watervalve_state
- type: custom:button-card
template: mycustomcard
name: Bedroom
entity: light.lights_bedroom
icon: mdi:lightbulb-group
tap_action:
navigation_path: bedroom
hold_action:
service: light.turn_off
service_data:
entity_id: light.lights_bedroom
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp
entity: sensor.sleeping_temperature
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.sleeping_room_window
misc:
card:
type: custom:stack-in-card
mode: horizontal
style: |
ha-card {
box-shadow: none;
}
cards:
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: light.hue_go
icon: mdi:wall-sconce-round-variant-outline
styles:
icon:
- color: orange
- type: custom:button-card
template: mycustomcard
name: Childroom
entity: light.lights_childroom
icon: mdi:lightbulb-group
tap_action:
navigation_path: childroom
hold_action:
service: light.turn_off
service_data:
entity_id: light.lights_childroom
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp
entity: sensor.childroom_temperature
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.child_room_window
misc:
card:
type: custom:stack-in-card
mode: horizontal
style: |
ha-card {
box-shadow: none;
}
cards:
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: switch.zb_switch2
icon: mdi:string-lights
- type: custom:button-card
template: mycustomcard
name: PC room
entity: light.pcroom_all_lights
icon: mdi:lightbulb-group
tap_action:
navigation_path: pcroom
hold_action:
service: light.turn_off
service_data:
entity_id: light.pcroom_all_lights
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp
entity: sensor.pcroom_temperature
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.pcroom_window
misc:
card:
type: custom:stack-in-card
mode: horizontal
style: |
ha-card {
box-shadow: none;
}
cards:
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: binary_sensor.octoprint_printing
icon: mdi:printer-3d-nozzle
styles:
icon:
- color: orange
- type: custom:button-card
template: mycustomcard
name: Livingroom
entity: light.lights_cube
icon: mdi:lightbulb-group
tap_action:
navigation_path: livingroom
hold_action:
service: light.turn_off
service_data:
entity_id: light.lights_cube
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp
entity: sensor.livingroom_temperature
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.cube_windows_all
misc:
card:
type: custom:stack-in-card
mode: horizontal
style: |
ha-card {
box-shadow: none;
}
cards:
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
- card_hide_noentity
entity: light.christmas_tree
styles:
card:
- display: >
[[[ if (states['light.christmas_tree'] == null
|| states['light.christmas_tree'].state != 'on')
return 'none' ]]]
- width: >
[[[ if (states['light.christmas_tree'] == null
|| states['light.christmas_tree'].state != 'on')
return '0px';]]]
- type: custom:button-card
template:
- subsection_bottom
- subsection_hide_inactive
entity: media_player.samsung_q70_series_65
icon: mdi:television-box
- type: custom:button-card
template: mycustomcard
name: Barus
entity: light.lights_barus
icon: mdi:lightbulb-group
tap_action:
navigation_path: barus
hold_action:
service: light.turn_off
service_data:
entity_id: light.lights_barus
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp
entity: sensor.barusroom_temperature
window:
card:
type: custom:button-card
template: subsection_window
entity: binary_sensor.barus_windows_all
- type: custom:button-card
template: mycustomcard
name: Kitchen
entity: light.kitchen_all_lights
icon: mdi:lightbulb-group
tap_action:
navigation_path: kitchen
hold_action:
service: light.turn_off
service_data:
entity_id: light.kitchen_all_lights
custom_fields:
temp:
card:
type: custom:button-card
template: subsection_temp