-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlovelace-ui.yaml
executable file
·7730 lines (7726 loc) · 263 KB
/
lovelace-ui.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
#################################################################################
#
# _ _ _
# | | _____ _____| | __ _ ___ ___ _ _(_)
# | |/ _ \ \ / / _ \ |/ _` |/ __/ _ \_____| | | | |
# | | (_) \ V / __/ | (_| | (_| __/_____| |_| | |
# |_|\___/ \_/ \___|_|\__,_|\___\___| \__,_|_|
#
#
#################################################################################
# I use the Lovelace Dashboards in Home Assistant so this file is
# manually updated for completness and so people can see by card
# configuration
#################################################################################
button_card_templates:
basic:
show_state: true
color: white
styles:
card:
- '--mdc-ripple-color': blue
- '--mdc-ripple-press-opacity': 0.5
- text-transform: capitalize
state:
- font-size: 12px
label:
- font-size: 12px
icon:
- padding-bottom: 5px
name:
- font-size: 14px
- font-weight: bold
- color: var(--primary-color)
- text-overflow: unset
- white-space: unset
- word-break: break-word
hold_action:
action: more-info
inkwell:
show_name: false
show_state: true
extra_styles: |
[[[ return `
@keyframes pulse {
5% {
background-color: ${variables.color};
}
}
`]]]
styles:
icon:
- opacity: 0.7
- color: '[[[ return variables.color ]]]'
- filter: drop-shadow( 0 0 2px rgba(0, 0, 0, .7))
state:
- font-size: 1.5em
- font-weight: bold
- text-shadow: 0 0 6px black
- overflow: visible
card:
- border: solid 3px gray
- border-top: none
- background: |
[[[
var level = entity.state;
var color = variables.color;
return `linear-gradient(to top, ${color}, ${color} ${level}%, rgba(255,255,255,0.12) ${level}%)`
]]]
- animation: |
[[[
return (0 + entity.state) < 10
? 'pulse ease-in-out 1s infinite'
: 'none'
]]]
network_device:
template: basic
entity: binary_sensor.downstairs_access_point
icon: phu:ubiquiti-ap
name: MAT-AP-002
state:
- value: OK
styles:
state:
- color: white
- value: ERROR
styles:
icon:
- color: red
- value: 0/0
operator: '='
styles:
icon:
- color: red
- value: 60
operator: '>='
styles:
icon:
- color: orange
- value: 80
operator: '>='
styles:
icon:
- color: red
- value: 'off'
operator: '!'
styles:
state:
- color: red
card:
- opacity: 0.2
- value: warning
operator: '=='
color: orange
- value: error
operator: '=='
color: red
- operator: default
styles:
state:
- color: white
picture_button:
template: basic
aspect_ratio: 4/3
color_type: icon
hold_action:
action: none
layout: vertical
show_entity_picture: true
show_icon: false
show_label: false
show_name: false
show_state: false
styles:
entity_picture:
- width: 80%
- height: 80%
- object-fit: contain
button_trigger:
variables:
trigger: binary_sensor.front_door_open_closed
entity_notify: binary_sensor.front_door_open_closed
icon_off: null
icon_on: null
template: basic
color_type: icon
show_state: false
show_last_changed: true
color: white
layout: name_state
tap_action:
action: call-service
service: automation.trigger
service_data: null
entity_id: '[[[ return variables.trigger ]]]'
hold_action:
action: more-info
entity: '[[[ return variables.entity_notify ]]]'
styles:
card:
- height: 115px
state:
- value: 'off'
icon: '[[[ return variables.icon_off ]]]'
styles:
name:
- color: null
card:
- opacity: 0.2
- value: unavailable
icon: '[[[ return variables.icon_off ]]]'
color: red
styles:
card:
- opacity: 0.5
- operator: default
icon: '[[[ return variables.icon_on ]]]'
color: white
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
motion_door_light:
variables:
icon_off: mdi:door-closed
icon_on: mdi:door
template: basic
color_type: icon
show_state: true
show_last_changed: true
layout: name_state
styles:
card:
- height: 115px
state:
- value: 'off'
icon: '[[[ return variables.icon_off ]]]'
styles:
name:
- color: null
card:
- opacity: 0.2
- value: unavailable
icon: '[[[ return variables.icon_off ]]]'
color: red
styles:
card:
- opacity: 0.5
- operator: default
icon: '[[[ return variables.icon_on ]]]'
color: var(--button-card-light-color)
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
location-zone:
template: basic
show_label: true
state:
- value: 1
label: Mark is here
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
- value: 2
operator: '>='
label: |
[[[ return entity.state + ' people here'; ]]]
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
- operator: default
label: No one here
styles:
name:
- color: null
card:
- opacity: 0.2
rubbish:
template: basic
show_state: true
state:
- value: in (?<value>[0-6]) days
operator: regex
- value: tomorrow
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
- value: today
- operator: default
styles:
name:
- color: null
card:
- opacity: 0.2
views:
- theme: Backend-selected
title: Home
path: ha-home
type: custom:horizontal-layout
layout:
width: 400
max_cols: 3
card_margin: 10px
icon: mdi:home
badges: []
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:account-circle"></ha-icon> Status
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: custom:digital-clock
timeFormat: HH:mm:ss
dateFormat: cccc, dd MMMM yyyy
view_layout:
column: 1
- type: horizontal-stack
cards:
- type: custom:button-card
template: basic
entity: person.mark_matheson
entity_picture: /local/images/mark_matheson-circular.png
name: Mark
show_entity_picture: true
show_label: true
show_state: false
layout: name_state
hold_action:
action: call-service
service: browser_mod.popup
service_data:
title: Occupants at Home
content:
type: custom:auto-entities
card:
type: glance
filter:
include:
- group: group.residents
- group: group.guests
exclude:
- state: not_home
- state: unknown
- state: unavailable
sort:
method: none
state:
- value: home
color: blue
icon: mdi:home
- operator: default
color: green
icon: mdi:home-off
label: |
[[[
if (entity.state == 'not_home')
return "Not Home";
else
return "At " + entity.state;
]]]
- type: custom:button-card
template: basic
entity: sensor.marks_iphone_battery_level
name: Phone
show_state: true
state:
- value: 20
operator: <=
styles:
icon:
- color: red
- value: 40
operator: <=
styles:
icon:
- color: orange
- value: 80
operator: <=
styles:
icon:
- color: yellow
- operator: default
styles:
icon:
- color: green
- type: custom:button-card
template: basic
entity: sensor.marks_iphone_connection_type
show_state: false
show_label: true
name: |
[[[ if (entity.state == 'Cellular')
return "Cellular";
else
return "WiFi";
]]]
icon: |
[[[ if (entity.state == 'Cellular')
return "mdi:signal-4g";
else
return "mdi:wifi";
]]]
label: |
[[[ if (entity.state == 'Cellular')
return states['sensor.marks_iphone_sim_1'].state;
else
return states['sensor.marks_iphone_ssid'].state;
]]]
state:
- value: Cellular
color: cadetblue
- value: Wi-Fi
color: steelblue
- operator: default
styles:
card:
- opacity: 20%
- type: custom:button-card
template: basic
entity: binary_sensor.marks_iphone_focus
label: |
[[[
return (states['binary_sensor.marks_iphone_focus'].state)
]]]
name: Focus
show_state: true
state:
- value: 'on'
color: yellow
- operator: default
styles:
name:
- color: null
card:
- opacity: 0.2
- type: horizontal-stack
cards:
- type: custom:button-card
template: basic
entity: weather.marsfield
name: Weather
show_state: true
state:
- value: rainy
color: lightblue
- value: cloudy
color: cornflowerblue
- value: clear-night
color: indigo
- value: windy
color: lightgreen
- value: windy-variant
color: mediumseagreen
- value: exceptional
color: red
- value: sunny
color: gold
- value: lightning-rainy
color: firebrick
- value: hail
color: orangered
- value: pouring
color: purple
- type: custom:button-card
template: basic
entity: sun.sun
show_label: true
show_state: false
state:
- value: above_horizon
color: lightyellow
name: Sunset
icon: mdi:weather-sunset-down
label: |
[[[
return states['sensor.nextsunset'].state;
]]]
- operator: default
color: lightyellow
name: Sunrise
icon: mdi:weather-sunset-up
label: |
[[[
return states['sensor.nextsunrise'].state;
]]]
- type: custom:button-card
template: basic
entity: switch.security
name: Security
show_label: true
show_state: false
color: white
tap_action:
action: more-info
hold_action:
action: toggle
state:
- operator: default
icon: mdi:cctv
label: Home
color: blue
- value: 'on'
icon: mdi:cctv-off
operator: '!='
color: red
label: Away
- type: custom:button-card
template: basic
entity: alarm_control_panel.home_alarm
name: Alarm
show_label: true
show_state: false
tap_action:
action: more-info
states:
- arm_away
- arm_night
state:
- value: disarmed
label: Disarmed
icon: mdi:lock-open-variant-outline
styles:
card:
- opacity: 20%
- value: armed_away
label: Away
icon: mdi:lock-outline
color: red
- value: armed_night
label: Night
icon: mdi:lock-alert-outline
color: orange
- value: armed_home
label: Downstairs
icon: mdi:lock-check-outline
color: blue
- value: armed_vacation
label: Outside
icon: mdi:lock-minus-outline
color: green
view_layout:
column: 1
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:map-marker-outline"></ha-icon> Locations
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: horizontal-stack
cards:
- type: custom:button-card
template: basic
entity: zone.home
show_label: true
show_state: false
state:
- value: 1
label: Mark is here
- value: 2
operator: '>='
label: |
[[[ return entity.state + ' people here'; ]]]
- operator: default
label: No one here
styles:
name:
- color: null
card:
- opacity: 0.2
hold_action:
action: call-service
service: browser_mod.popup
service_data:
title: Occupants
content:
type: custom:auto-entities
card:
type: glance
columns: 3
filter:
include:
- domain: person
state: home
exclude: []
sort:
method: none
- type: custom:button-card
template: basic
entity: person.mark_matheson
name: Away
icon: mdi:home-off
show_label: true
show_state: false
state:
- operator: default
label: No one here
styles:
name:
- color: null
card:
- opacity: 0.2
- value: not_home
label: Mark is here
tap_action:
action: more-info
entity: zone.home
- type: custom:button-card
template: location-zone
entity: zone.zig_zag
show_state: false
- type: custom:button-card
template: location-zone
entity: zone.woolies
show_state: false
- type: horizontal-stack
cards:
- type: custom:button-card
template: location-zone
entity: zone.dan_murphys
show_state: false
- type: custom:button-card
template: location-zone
entity: zone.macquarie_centre
show_state: false
- type: custom:button-card
template: location-zone
entity: zone.springbok_delights
show_state: false
- type: custom:button-card
template: location-zone
entity: zone.sop
show_state: false
view_layout:
column: 1
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:account-group"></ha-icon> Occupants
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: horizontal-stack
cards:
- type: custom:button-card
template: basic
entity: group.residents
label: (Click to see members)
show_label: true
state:
- value: not_home
styles:
name:
- color: null
card:
- opacity: 0.2
- operator: default
tap_action:
action: call-service
service: browser_mod.popup
service_data:
title: Residents
content:
type: custom:auto-entities
card:
type: glance
columns: 3
filter:
include:
- group: group.residents
exclude: []
sort:
method: none
- type: custom:button-card
template: basic
entity: group.guests
label: (Click to see members)
show_label: true
state:
- value: not_home
styles:
name:
- color: null
card:
- opacity: 0.2
- operator: default
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
tap_action:
action: call-service
service: browser_mod.popup
service_data:
title: Guests
content:
type: custom:auto-entities
card:
type: glance
columns: 3
filter:
include:
- group: group.guests
exclude: []
sort:
method: none
view_layout:
column: 1
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:weather-sunny"></ha-icon> Weather
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- card_config_version: 8
daily_forecast_days: 5
daily_forecast_layout: horizontal
entity_apparent_temp: sensor.sydney_olympic_park_temp_feels_like
entity_extended: sensor.marsfield_extended_text_0
entity_fire_danger: sensor.marsfield_fire_danger_0
entity_forecast_icon: sensor.marsfield_icon_descriptor_0
entity_forecast_icon_1: sensor.marsfield_icon_descriptor_1
entity_forecast_max: sensor.marsfield_temp_max_0
entity_forecast_max_1: sensor.marsfield_temp_max_1
entity_forecast_min: sensor.marsfield_temp_min_0
entity_forecast_min_1: sensor.marsfield_temp_min_1
entity_humidity: sensor.sydney_olympic_park_humidity
entity_pop_1: sensor.marsfield_rain_chance_1
entity_pos: sensor.marsfield_rain_amount_range_0
entity_pos_1: sensor.marsfield_rain_amount_range_1
entity_possible_tomorrow: sensor.marsfield_rain_amount_range_1
entity_summary: sensor.marsfield_short_text_0
entity_summary_1: sensor.marsfield_short_text_1
entity_sun: sun.sun
entity_temperature: sensor.sydney_olympic_park_temp
entity_todays_fire_danger: sensor.marsfield_fire_danger_summary
entity_todays_uv_forecast: sensor.marsfield_uv_summary
entity_update_time: sensor.marsfield_extended_text_0
entity_uv_alert_summary: sensor.marsfield_uv_category_0
entity_wind_bearing: sensor.sydney_olympic_park_wind_direction
entity_wind_gust: sensor.sydney_olympic_park_wind_speed_knot
entity_wind_speed: sensor.sydney_olympic_park_wind_speed_kilometre
extended_use_attr: false
option_color_fire_danger: false
option_locale: en
option_pressure_decimals: 2
option_show_overview_decimals: true
option_show_overview_separator: false
option_time_format: 24hour
option_today_rainfall_decimals: true
option_today_temperature_decimals: true
option_tooltips: false
overview_layout: complete
section_order:
- overview
- extended
- slots
- daily_forecast
slot_l1: forecast_max
slot_l2: forecast_min
slot_l3: wind
slot_l4: humidity
slot_l5: fire_danger
slot_l6: remove
slot_l7: remove
slot_l8: remove
slot_r1: possible_today
slot_r2: possible_tomorrow
slot_r3: uv_summary
slot_r4: sun_next
slot_r5: sun_following
slot_r6: remove
slot_r7: remove
slot_r8: remove
text_card_title: Marsfield
text_update_time_prefix: at
type: custom:platinum-weather-card
update_time_name_attr: issue_time
update_time_use_attr: true
view_layout:
column: 2
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:home-clock"></ha-icon> Quarantine
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: markdown
content: >-
The gauge displays the amount of time spent at home in the last {{
states("input_number.quarantine_days")|int }} days.
Mark left the house {{ states("sensor.quarantine_times_away_mark")
}} times for a total of {{
states('sensor.quarantine_hours_away_mark')|round(2) }} hours.
This equates to {{
(states("sensor.quarantine_times_away_mark")|int /
states("input_number.quarantine_days")|int) | round(1) }} times
per day for a total of {{
states('sensor.quarantine_hours_away_per_day_mark')|round(2) }}
hours per day.
- type: custom:bar-card
entities:
- entity: sensor.quarantine_times_home_mark
name: Home
icon: mdi:home
decimal: '1'
- entity: sensor.quarantine_woolies_mark
name: Woolies
icon: mdi:store
decimal: '1'
- entity: sensor.quarantine_zig_zag_mark
name: Zig-Zag Cafe
icon: mdi:coffee
decimal: '1'
- entity: sensor.quarantine_sop_hockey_centre_mark
name: SOP Hockey Centre
icon: mdi:hockey-sticks
decimal: '1'
- entity: sensor.quarantine_other_mark
name: Other
unit_of_measurement: '%'
decimal: '1'
severity:
- from: '0.0'
color: red
to: '79.9'
- from: '80.0'
to: '94.9'
color: orange
- from: '95.0'
to: '100'
color: green
- type: custom:auto-entities
show_empty: false
filter:
include:
- type: custom:slider-entity-row
entity: input_number.quarantine_days
card:
type: entities
show_header_toggle: false
view_layout:
column: 2
- type: vertical-stack
cards:
- type: markdown
content: |
# <ha-icon icon="mdi:trash-can"></ha-icon> Rubbish Collection
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: horizontal-stack
cards:
- type: custom:button-card
template: rubbish
entity: sensor.garbage_waste
color: red
- type: custom:button-card
template: rubbish
entity: sensor.garbage_recycling
color: yellow
- type: custom:button-card
template: rubbish
entity: sensor.garbage_greens
color: green
view_layout:
column: 3
- type: vertical-stack
cards:
- type: markdown
content: >
# <ha-icon icon="mdi:timer-refresh-outline"></ha-icon> Domestic
Status
style:
.: |
ha-card {
background-color: transparent !important;
box-shadow: none !important;
}
ha-markdown:
$: |
h1 {
font-size: 25px;
font-weight: bold;
text-align: center;
letter-spacing: '-0.01em';
vertical-align: middle;
}
img {
vertical-align: middle;
}
- type: horizontal-stack
cards:
- type: custom:button-card
template: basic
entity: input_boolean.laundry_hung
show_label: true
show_state: false
state:
- value: 'on'
label: On The Line
icon: mdi:washing-machine
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)
- box-shadow: 0px 0px 10px 3px var(--paper-item-icon-active-color)
- value: 'off'
label: Brought inside
icon: mdi:washing-machine-off
styles:
name:
- color: null
card:
- opacity: 0.2
tap_action:
action: more-info
hold_action:
action: call-service
service: automation.trigger
service_data:
entity_id: automation.laundry_status
- type: custom:button-card
template: basic
entity: input_boolean.rubbish_bins
show_label: true
show_state: false
state:
- value: 'on'
label: At The Kerb
icon: mdi:trash-can
styles:
card:
- border: solid 1px var(--paper-item-icon-active-color)