-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtablet_ui.yaml
More file actions
2227 lines (2214 loc) · 101 KB
/
tablet_ui.yaml
File metadata and controls
2227 lines (2214 loc) · 101 KB
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
title: Home
kiosk_mode:
hide_header: false
button_card_templates:
custom_sensor_card:
color_type: card
show_name: true
show_label: true
show_icon: false
show_state: false
label: |
[[[
var a = entity.state;
var floatValue = parseFloat(a.replace(/, /, '.'));
return floatValue.toFixed(1).toString().replace('.',',');
]]]
custom_fields:
postfix: |
[[[return '°C']]]
state:
- operator: ">"
value: 25
styles:
card:
- background-color: rgb(255,100,50)
name:
- color: var(--card-background-color)
custom_fields:
postfix:
- color: var(--card-background-color)
- operator: ">"
value: 24
styles:
card:
- background-color: orange
name:
- color: var(--card-background-color)
custom_fields:
postfix:
- color: var(--card-background-color)
- operator: <
value: 20
styles:
card:
- background-color: red
name:
- color: var(--card-background-color)
custom_fields:
postfix:
- color: var(--card-background-color)
- operator: <
value: 21.5
styles:
card:
- background-color: orange
name:
- color: var(--card-background-color)
custom_fields:
postfix:
- color: var(--card-background-color)
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
grid:
- grid-template-areas: '"n" "l" "i" "s"'
- grid-template-rows: min-content 1fr min-content min-content
- grid-template-columns: 1fr
name:
- justify-self: start
- padding-left: 16px
- padding-top: 5px
- padding-bottom: 5px
- font-size: 16px
- font-weight: 500
- color: var(--paper-item-icon-active-color)
label:
- justify-self: start
- padding-left: 16px
- font-size: 28px
custom_fields:
postfix:
- color: var(--paper-item-icon-active-color)
- position: absolute
- left: 56%
- top: 65%
- font-size: 16px
vent:
- position: absolute
- left: 70%
- top: 10%
openings:
- position: absolute
- left: 85%
- top: 10%
speaker_button:
color_type: card
show_state: false
show_name: true
layout: icon_name
custom_fields:
status: |
[[[
if (entity.state=='playing')
return '<img src=/local/assets/music_playing.gif>';
]]]
styles:
custom_fields:
status:
- margin-top: "-100px"
- left: 60%
- top: 0%
- background-size: cover
grid:
- grid-template-areas: '"i n"'
- grid-template-columns: 10% 1fr
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- height: 65px
- background-image: '[[[ return "url(" + entity.attributes.entity_picture + ")"; ]]]'
- background-size: cover
- background-position: center
icon:
- justify-self: start
- padding-left: 10px
name:
- font-size: 24px
- justify-self: start
- padding-left: 10px
- align-self: left
- margin-bottom: 0px
img_cell:
- align-self: start
- justify-self: start
- margin-bottom: 0px
- height: 30px
views:
- icon: mdi:home
title: Home
panel: true
cards:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: picture-elements
state_filter:
- null
image: /local/assets/blank.png
aspect_ratio: 5%
elements:
- type: state-label
entity: sensor.local_time
style:
top: 50%
left: 20px
width: 200px
text-align: right
font-size: 2.8em
color: rgba(202,217,235,1)
- type: state-label
entity: sensor.local_weekday
style:
top: 34%
left: 150px
width: 50px
text-align: left
font-size: 0.8em
text-transform: uppercase
color: rgba(202,217,235,.75)
- type: state-label
entity: sensor.local_date3
style:
top: 64%
left: 150px
width: 50px
text-align: left
font-size: 1.3em
text-transform: uppercase
color: rgba(202,217,235,.75)
- type: icon
icon: mdi:weather-sunset-up
style:
top: 40%
left: 28%
color: rgba(202,217,235,1)
- type: state-label
entity: sensor.local_sunrise
style:
top: 40%
left: 31.2%
color: rgba(202,217,235,1)
- type: icon
icon: mdi:weather-sunset-down
style:
top: 75%
left: 28%
color: rgba(202,217,235,1)
- type: state-label
entity: sensor.local_sunset
style:
top: 75%
left: 31.2%
color: rgba(202,217,235,1)
- type: image
entity: person.anders
image: /local/assets/dykand.png
state_image:
not_home: /local/assets/dykand_away.png
home: /local/assets/dykand.png
show_name: false
style:
top: 50%
left: 44%
height: 54px
width: 54px
border-radius: 27px
- type: image
entity: person.line
image: /local/assets/line.png
show_name: false
state_image:
not_home: /local/assets/line_away.png
home: /local/assets/line.png
style:
top: 50%
left: 50%
height: 54px
width: 54px
border-radius: 27px
- type: image
entity: device_tracker.passat_bt
image: /local/assets/vw_logo.jpg
show_name: false
state_image:
not_home: /local/assets/vw_logo.jpg
home: /local/assets/vw_logo.jpg
tap_action:
action: navigate
navigation_path: /tablet-ui/1
style:
top: 50%
left: 56%
height: 54px
width: 54px
border-radius: 27px
- type: state-icon
entity: sensor.local_date
icon: mdi:home
style:
top: 40%
left: 78%
color: var(--primary-foreground-color)
"--iron-icon-height": 50px
"--mdc-icon-size": 50px
tap_action:
action: navigate
navigation_path: /tablet-ui/0
- type: state-icon
entity: vacuum.roborock_s5_max
icon: hass:robot-vacuum
style:
top: 40%
left: 84%
color: var(--primary-foreground-color)
"--mdc-icon-size": 50px
tap_action:
action: navigate
navigation_path: /tablet-ui/2
- type: state-icon
entity: sensor.local_date
icon: mdi:lightbulb
style:
top: 40%
left: 90%
color: var(--primary-foreground-color)
"--mdc-icon-size": 50px
tap_action:
action: navigate
navigation_path: /tablet-ui/3
- type: state-icon
entity: sensor.local_date
icon: mdi:music
style:
top: 40%
left: 96%
color: var(--primary-foreground-color)
"--mdc-icon-size": 50px
tap_action:
action: navigate
navigation_path: /tablet-ui/4
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: custom:button-card
name: Today's recipe
entity: sensor.madplan_dagensret
show_entity_picture: false
show_state: true
show_name: true
show_image: false
show_label: false
show_icon: false
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Today's recipe
large: true
card:
type: iframe
url: https://www.opskrifter.dk/sog?query=
styles:
card:
- background-image: >-
[[[ return "url(" +
states["sensor.madplan_dagensret_image"].state +
")"; ]]]
- background-size: cover
- height: 180px
grid:
- grid-template-areas: '"n" "l" "s"'
- grid-template-columns: 1fr
- grid-template-rows: 1fr 5fr 1fr
name:
- background-color: rgba(0, 0,0, 0.3)
- padding-left: 35px
- width: 100%
- line-height: 40px
- text-align: left
- display: inline-block
- vertical-align: middle
state:
- background-color: rgba(0, 0,0, 0.3)
- padding-left: 35px
- width: 100%
- line-height: 40px
- text-align: left
- display: inline-block
- vertical-align: middle
- type: horizontal-stack
cards:
- type: custom:button-card
color_type: card
icon: mdi:calendar-month
name: Meal plan
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: dummy.madplan
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Today's recipe
large: true
card:
type: iframe
url: https://www.opskrifter.dk/sog?query=
- type: custom:button-card
color_type: card
icon: mdi:format-list-checks
name: TO-DO
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Tasks
large: true
card:
type: shopping-list
- type: custom:button-card
color_type: card
icon: mdi:cart
name: Shopping
show_label: false
label: |
[[[
if (entity.attributes.shopping_lists[0].activeCount > 1)
var txt=' items'
else
var txt=' item';
]]]
custom_fields:
items: >
[[[return
entity.attributes.shopping_lists[0].activeCount;]]]
styles:
grid:
- position: relative
custom_fields:
items:
- background-color: var(--paper-item-icon-active-color)
- border-radius: 50%
- position: absolute
- left: 67%
- top: 10%
- height: 20px
- width: 20px
- font-size: 12px
- line-height: 20px
card:
- background-color: var(--card-background-color)
- color: rgb(255,255,255)
- border-radius: 10px
entity: sensor.our_groceries
state:
- operator: template
value: |
[[[
return entity.attributes.shopping_lists[0].activeCount==0
]]]
icon: mdi:cart-outline
styles:
card:
- background-color: var(--card-background-color)
custom_fields:
items:
- background-color: var(--card-background-color)
- color: var(--card-background-color)
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Shopping list
large: true
card:
type: custom:our-groceries-card
title: ""
show_crossed_off: false
- type: custom:button-card
color_type: card
icon: mdi:delete
name: Garbage
custom_fields:
days: >
[[[var currentdate = Date.parse(new Date()); var
nextdate=Date.parse(entity.attributes.start_time);
var diff=Math.ceil((nextdate - currentdate) /
(1000*60*60*24)); return diff;]]]
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
custom_fields:
days:
- background-color: var(--paper-item-icon-active-color)
- border-radius: 50%
- position: absolute
- left: 67%
- top: 10%
- height: 20px
- width: 20px
- font-size: 12px
- line-height: 20px
entity: calendar.garbage_collection
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Garbage collection
card:
type: custom:auto-entities
card:
type: entities
filter:
include:
- attributes:
device_class: garbage_collection__schedule
days: <40
sort:
method: attribute
attribute: days
numeric: true
- type: custom:atomic-calendar-revive
name: Calendar
entities:
- entity: calendar.faelles
name: Shared
- entity: calendar.garbage_collection
name: Garbage
initial_view: listWeek
disableEventLink: true
showMonth: false
showWeekDay: true
showLocation: true
showNoEventsForToday: true
dimFinishedEvents: true
maxDaysToShow: 7
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
color_type: card
icon: mdi:silverware-fork-knife
name: Dinner
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: null
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: null
- type: custom:button-card
color_type: card
icon: mdi:movie-roll
name: Movie
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: scene.film
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.film
- type: custom:button-card
color_type: card
icon: mdi:brightness-6
name: Medium
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: scene.mellem
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.mellem
- type: custom:button-card
color_type: card
icon: mdi:lightbulb-on
name: Max
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: scene.lege
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.lege
- type: custom:button-card
color_type: card
icon: mdi:lightbulb-off-outline
name: All off
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border-radius: 10px
entity: scene.sluk_stue_alrum
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.sluk_stue_alrum
- type: custom:mini-media-player
entity: media_player.alrum
icon: mdi:surround-sound
source: full
hide:
power: true
progress: true
speaker_group:
platform: sonos
show_group_count: true
entities:
- entity_id: media_player.alrum
name: Alrum
- entity_id: media_player.stue
name: Stue
- entity_id: media_player.bornevaerelse
name: Isabella
- entity_id: media_player.badevaerelse
name: Stort bad
- entity_id: media_player.terrasse
name: Lille bad
- type: picture-glance
title: Kids room 1
image: >-
https://www.home-assistant.io/images/merchandise/shirt-frontpage.png
aspect_ratio: 0%
camera_image: camera.reolink_e1_pro_profile000_mainstream
camera_view: live
entities:
- entity: sun.sun
name: Move left
icon: mdi:arrow-left-bold-circle-outline
tap_action:
action: call-service
service: onvif.ptz
service_data:
pan: LEFT
entity_id: camera.reolink_e1_pro_profile000_mainstream
move_mode: ContinuousMove
continuous_duration: 1
- entity: sun.sun
name: Move right
icon: mdi:arrow-right-bold-circle-outline
tap_action:
action: call-service
service: onvif.ptz
service_data:
pan: RIGHT
entity_id: camera.reolink_e1_pro_profile000_mainstream
move_mode: ContinuousMove
continuous_duration: 1
- entity: light.sky
name: Sky
icon: mdi:led-strip-variant
- entity: switch.on_off_plug_in_unit_12
name: Fan
icon: mdi:fan
- type: entities
title: Status
entities:
- alarm_control_panel.alarm
- entity: input_select.home_state
type: custom:multiple-entity-row
name: Home state
icon: mdi:shield-home
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Home State Selection
large: true
card:
type: horizontal-stack
cards:
- type: custom:button-card
color_type: card
icon: mdi:home
name: Home
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border: 5px solid var(--card-background-color)
entity: input_select.home_state
state:
- value: Home
styles:
card:
- border: >-
5px solid
var(--paper-item-icon-active-color)
tap_action:
service: input_select.select_option
action: call-service
service_data:
entity_id: input_select.home_state
option: Home
- type: custom:button-card
color_type: card
icon: mdi:home-outline
name: Away
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border: 5px solid var(--card-background-color)
entity: input_select.home_state
state:
- value: Away
styles:
card:
- border: >-
5px solid
var(--paper-item-icon-active-color)
tap_action:
service: input_select.select_option
action: call-service
service_data:
entity_id: input_select.home_state
option: Away
- type: custom:button-card
color_type: card
icon: mdi:weather-night
name: Night
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border: 5px solid var(--card-background-color)
entity: input_select.home_state
state:
- value: Night
styles:
card:
- border: >-
5px solid
var(--paper-item-icon-active-color)
tap_action:
service: input_select.select_option
action: call-service
service_data:
entity_id: input_select.home_state
option: Night
- type: custom:button-card
color_type: card
icon: mdi:party-popper
name: Guests
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border: 5px solid var(--card-background-color)
entity: input_select.home_state
state:
- value: Guests
styles:
card:
- border: >-
5px solid
var(--paper-item-icon-active-color)
tap_action:
service: input_select.select_option
action: call-service
service_data:
entity_id: input_select.home_state
option: Guests
- type: custom:button-card
color_type: card
icon: mdi:beach
name: Holiday
styles:
card:
- background-color: var(--card-background-color)
- color: var(--primary-foreground-color)
- border: 5px solid var(--card-background-color)
entity: input_select.home_state
state:
- value: Holiday
styles:
card:
- border: >-
5px solid
var(--paper-item-icon-active-color)
tap_action:
service: input_select.select_option
action: call-service
service_data:
entity_id: input_select.home_state
option: Holiday
- entity: sensor.last_motion_sensor
type: custom:multiple-entity-row
name: Recent motion detected
icon: mdi:run
secondary_info:
entity: sensor.last_motion_time
format: relative
name: false
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Recent motion
large: true
card:
type: horizontal-stack
cards:
- type: custom:auto-entities
card:
type: logbook
title: Recent events
show_header_toggle: false
positions:
icon: "off"
indicator: inside
name: outside
value: inside
height: 2vh
width: 50%
hours_to_show: 24
filter:
include:
- domain: binary_sensor
attributes:
device_class: opening
options:
secondary_info: last-changed
- domain: binary_sensor
attributes:
device_class: motion
options:
secondary_info: last-changed
- domain: person
options:
secondary_info: last-changed
- entity_id: alarm_control_panel.alarm
options:
secondary_info: last-changed
exclude:
- entity_id: person.alle
sort:
method: last_changed
numeric: true
- entity: sensor.last_door_sensor
type: custom:multiple-entity-row
name: Recent door/window opened
icon: mdi:door-open
secondary_info:
entity: sensor.last_door_time
format: relative
name: false
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Recent events
large: true
card:
type: horizontal-stack
cards:
- type: custom:auto-entities
card:
type: logbook
title: Recent events
show_header_toggle: false
positions:
icon: "off"
indicator: inside
name: outside
value: inside
height: 2vh
width: 50%
hours_to_show: 24
filter:
include:
- domain: binary_sensor
attributes:
device_class: opening
options:
secondary_info: last-changed
- domain: binary_sensor
attributes:
device_class: motion
options:
secondary_info: last-changed
- domain: person
options:
secondary_info: last-changed
- entity_id: alarm_control_panel.alarm
options:
secondary_info: last-changed
exclude:
- entity_id: person.alle
sort:
method: last_changed
numeric: true
- type: vertical-stack
cards:
- type: weather-forecast
entity: weather.hjem
name: Weather forecast
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.netatmo_weather_home_ude_temperature
name: Outside
- type: sensor
entity: sensor.ude_min_temp
name: Min
icon: mdi:arrow-collapse-down
- type: sensor
entity: sensor.ude_max_temp
name: Max
icon: mdi:arrow-collapse-up
- type: horizontal-stack
cards:
- type: sensor
graph: line
entity: sensor.netatmo_weather_home_regn_rain
name: Rain
- type: sensor
graph: line
name: Humidity
entity: sensor.netatmo_weather_home_ude_humidity
- type: horizontal-stack
cards:
- type: custom:button-card
template: custom_sensor_card
entity: sensor.bornevaerelse_sensor_temperature
name: Kids room 1
custom_fields:
vent: |
[[[
if (states["switch.on_off_plug_in_unit_12"].state == 'on')
return `<ha-icon
icon="mdi:fan"
style="width: 16px; height: 16px; color: white;">
</ha-icon>`
]]]
openings: |
[[[
if (states["binary_sensor.openclose_14"].state == 'on')
return `<ha-icon
icon="mdi:window-open-variant"
style="width: 16px; height: 16px; color: white;">
</ha-icon>`
]]]
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Kids room 1
large: true
card:
type: vertical-stack
cards:
- type: history-graph
entities:
- entity: sensor.bornevaerelse_sensor_temperature
name: Temperature
- entity: binary_sensor.openclose_14
name: Window
- entity: switch.on_off_plug_in_unit_12
- type: markdown
content: >-
For details, please refer to file under:
include/cards/room_kids01.yaml
- type: custom:button-card
template: custom_sensor_card
entity: sensor.temperature_5
name: Kids room 2
custom_fields:
openings: |
[[[
if (states["binary_sensor.openclose_38"].state == 'on')
return `<ha-icon
icon="mdi:window-open-variant"
style="width: 16px; height: 16px; color: white;">
</ha-icon>`
]]]
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Kids room 2
large: true
card:
type: vertical-stack
cards:
- type: history-graph
entities:
- entity: sensor.temperature_5
name: Temperature
- entity: binary_sensor.openclose_38
name: Window
- type: markdown
content: >-
For details, please refer to file under:
include/cards/room_kids02.yaml
- type: custom:button-card
template: custom_sensor_card
entity: sensor.netatmo_weather_home_inde_temperature
name: Office
custom_fields:
openings: |
[[[
if (states["binary_sensor.openclose_29"].state == 'on')
return `<ha-icon
icon="mdi:window-open-variant"
style="width: 16px; height: 16px; color: white;">
</ha-icon>`
]]]
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Office
large: true
card: