forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-lovelace.yaml
3442 lines (3357 loc) · 144 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
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
cch:
kiosk_mode: true
resources:
- type: js
url: /community_plugin/bar-card/bar-card.js
- type: module
url: /community_plugin/button-entity-row/button-entity-row.js
- type: module
url: /community_plugin/circle-sensor-card/circle-sensor-card.js
- type: js
url: /community_plugin/light-entity-card/light-entity-card.js
- type: module
url: /community_plugin/lovelace-card-mod/card-mod.js
- type: module
url: /community_plugin/lovelace-layout-card/layout-card.js
- type: module
url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js
- type: module
url: /community_plugin/mini-media-player/mini-media-player-bundle.js
- type: js
url: /community_plugin/vertical-stack-in-card/vertical-stack-in-card.js
- type: css
url: 'https://sf.abarba.me/font.css'
- url: /community_plugin/compact-custom-header.js
type: module
- type: js
url: /community_plugin/light-slider-card.js
- type: module
url: /community_plugin/popup-backdrop-filter.js
- type: js
url: /community_plugin/upcoming-media-card.js
title: Hemma
views:
- badges: []
cards:
- elements:
#############################################################################################################################################
# #
# SIDEBAR #
# #
#############################################################################################################################################
#################################################################
# #
# CLOCK #
# #
#################################################################
- entity: sensor.time
tap_action:
action: none
hold_action:
action: none
style:
color: 'rgba(255, 255, 255, 0.7)'
font-family: SF Text
font-size: 5.41vw
font-weight: 200
left: 2.8%
letter-spacing: '-0.05vw'
max-width: 1px
top: 10.8%
type: state-label
#################################################################
# #
# MARKDOWN #
# #
#################################################################
- content: >
<font color='#5d6569'><b>{{ states('sensor.dag') }}</b><br>
<b>{{ states('sensor.datum') }}</b> </font><br>
{% if now().hour < 5 %} <b>God natt {{'\U0001F634'}}</b>
{% elif now().hour < 12 %} <b>God morgon</b> {{'\u2615\uFE0F'}}
{% elif now().hour < 18 %} <b>God dag</b> {{'\U0001F44B\U0001F3FB'}}
{% else %} <b>God kväll</b> {{'\U0001F44B\U0001F3FB'}}
{% endif %}
{% set lights = [states.light.tvlampa, states.light.golvlampa, states.light.fonsterlampa, states.light.datorlampa, states.light.vask_hoger, states.light.vask_vanster,
states.light.taklampa, states.light.kladkammare_2, states.light.hallampa_1, states.light.hallampa_2, states.light.hallampa_3, states.light.mattias, states.light.sanja, states.light.spot_1, states.light.spot_2] %}
{% set lights_on = lights | selectattr('state','eq','on') | list %}
{% set lights_name = lights | selectattr('state','eq','on') | map(attribute='name') | join(', ') %}
{% set switches = [states.switch.dator_template, states.switch.tv_template, states.switch.playstation_template, states.switch.wemo_monitorer, states.switch.wemo_flakt] %}
{% set switches_on = switches | selectattr('state','eq','on') | list %}
{% set switches_name = switches | selectattr('state','eq','on') | map(attribute='name') | join(', ') %}
{% if (lights_on | length ==0 ) and (switches_on | length > 0) %}
<b>{{ switches_name | regex_replace(',([^,]*)$',' och\\1') }} är på</b>
{% elif (lights_on | length ==1) and (switches_on | length == 1) %}
<b>{{ lights_name }} och {{switches_name }} är på</b>
{% elif (lights_on | length ==1) and (switches_on | length > 1) %}
<b>{{ lights_name }}, {{ switches_name | regex_replace(',([^,]*)$',' och\\1') }} är på</b>
{% elif (lights_on | length > 1) and (switches_on | length == 1) %}
<b>{{ lights_on | length }} lampor och {{ switches_name }} är på</b>
{% elif (lights_on | length > 1 ) and (switches_on | length > 1) %}
<b>{{ lights_on | length }} lampor, {{ switches_name | regex_replace(',([^,]*)$',' och\\1') }} är på</b>
{% elif (lights_on | length ==1) and (switches_on | length ==0) %}
<b>{{ lights_name }} är på</b>
{% elif (lights_on | length >1 ) and (switches_on | length ==0) %}
<b>{{ lights_on | length}} lampor är på</b>
{% else %}
<font color='#5d6569'><b>Allt är avstängt</b></font>
{% endif %}
<font color='#5d6569'>
{% if states('sensor.dark_sky_temperature') | float <= 0.0 %}
Känns som {{ states('sensor.runda_darksky_temp') }} {{'\u2744\uFE0F'}} med {{ states('sensor.runda_darksky_prob') }} risk för snö
{% elif states('sensor.dark_sky_temperature') | float > 0.0 %}
Känns som {{ states('sensor.runda_darksky_temp') }} med {{ states('sensor.runda_darksky_prob') }} risk för regn {% if states('sensor.dark_sky_precip_probability') | float > 50.0 %} {{'\u2614\uFE0F' }} {% endif %}
{% elif states('sensor.dark_sky_temperature') | float > 19.0 and states('sensor.dark_sky_precip_probability') | float < 5.0 %}
Känns som {{ states('sensor.runda_darksky_temp') }} {{'\U0001F60E' }} med {{ states('sensor.runda_darksky_prob') }} risk för regn
{% endif %}
{% if is_state('device_tracker.mattias', 'home') and is_state('device_tracker.sanja', 'not_home') %}
Sanja gick för {{ states('sensor.sanja_last_changed_h') }} sedan
{% elif is_state('device_tracker.mattias', 'not_home') and is_state('device_tracker.sanja', 'home') %}
Mattias gick för {{ states('sensor.mattias_last_changed_h') }} sedan
{% endif %}
{% if state_attr('calendar.tvatta', 'start_time') == null %}
{% else %} {{ states('sensor.tvatta_countdown') }} {% endif %}
{% if states('sensor.imac_get_ip') == states('sensor.myip') %} {{ '\u26A0\uFE0F' }} <b>VPN</b> verkar vara nere på datorn!{% endif %}
</font>
style:
'--ha-card-background': 'rgba(255, 255, 255, 0)'
'--ha-card-box-shadow': 0vw
'--primary-text-color': 'rgba(255, 255, 255, 0.9)'
font-family: SF Display
font-size: 1.6vw
font-weight: 300
height: 1px
left: 11%
letter-spacing: 0.06vw
line-height: 2.05vw
max-width: 17vw
opacity: 0.65
position: absolute
top: 16%
width: 17.5vw
type: 'custom:hui-markdown-card'
#################################################################
# #
# REFRESH BUTTON #
# #
#################################################################
- icon: 'mdi:refresh'
style:
'--iron-icon-height': 3.5vw
'--iron-icon-width': 3.5vw
color: 'rgba(255, 255, 255, 0.10)'
left: 5%
top: 88.7%
tap_action:
action: call-service
service: shell_command.fullykiosk_load_start_url
title: null
type: icon
#################################################################
# #
# INFO BUTTON #
# #
#################################################################
- icon: 'mdi:information-outline'
style:
'--iron-icon-height': 3.2vw
'--iron-icon-width': 3.2vw
color: 'rgba(255, 255, 255, 0.10)'
left: 10.5%
top: 88.7%
tap_action:
action: call-service
service: browser_mod.popup
service_data:
card:
cards:
- cards:
- entities:
- entity: sensor.hass_version_installed
icon: 'mdi:home-assistant'
name: Installerad version
- entity: sensor.hass_version_template
icon: 'mdi:update'
name: Senste versionen
- entity: sensor.home_assistant_v2_db
icon: 'mdi:database'
name: Databas
- entity: sensor.rpi_power_template
- entity: sensor.last_boot
name: Senaste omstart
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.processor_use
height: 2.1em
icon: 'mdi:chip'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.5em;
margin-top: 0.1em;
}
title: Processor
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.processor_use
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.memory_use_percent
height: 2.1em
icon: 'mdi:memory'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.5em;
margin-top: 0.1em;
}
title: Minne - 1GB
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.memory_use_percent
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.disk_use_percent_home
height: 2.1em
icon: 'mdi:sd'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.5em;
margin-top: 0.1em;
margin-bottom: 1.5em;
}
title: Lagring
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.disk_use_percent_home
- buttons:
- entity: script.homeassistant_restart
icon: 'mdi:reload'
name: Home Assistant
style:
background: '#FFFFFF10'
border-radius: 0.6vw
font-weight: 500
padding: 1.2vw 1.5vw 1.2vw 1.2vw
- entity: script.homekit_restart
icon: 'mdi:reload'
name: Homekit
style:
background: '#FFFFFF10'
border-radius: 0.6vw
font-weight: 500
padding: 1.2vw 1.5vw 1.2vw 1.2vw
margin-right: -0.7em
type: 'custom:button-entity-row'
show_header_toggle: false
style: |
ha-card {
box-shadow: none;
border-radius: 1vw;
background: rgba(36, 42, 43, 0.88);
padding-right: 0.7em;
}
title: Home Assistant
type: entities
type: 'custom:hui-vertical-stack-card'
- break
- cards:
- entities:
- entity: switch.fullykiosk_screen
icon: 'mdi:tablet'
name: Skärm av/på
- entity: input_number.fullykiosk_brightness_slider
- entity: sensor.fullykiosk_battery_level
- entity: sensor.fullykiosk_plugged
- entity: sensor.fullykiosk_motion_detector_state
- entity: sensor.fullykiosk_device_name
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.fullykiosk_memory_percentage
height: 2.1em
icon: 'mdi:memory'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.7em;
margin-top: 0.1em;
}
title: Minne - 2GB
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.fullykiosk
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.fullykiosk_storage_percentage
height: 2.1em
icon: 'mdi:sd'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.7em;
margin-top: 0.1em;
margin-bottom: 1.5em;
}
title: Lagring - 32GB
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.fullykiosk
- buttons:
- icon: 'mdi:reload'
name: Startsidan
service: shell_command.fullykiosk_load_start_url
style:
background: '#FFFFFF10'
border-radius: 0.6vw
font-weight: 500
padding: 1.2vw 1.5vw 1.2vw 1.2vw
- icon: 'mdi:reload'
name: Hela appen
service: shell_command.fullykiosk_restart_app
style:
background: '#FFFFFF10'
border-radius: 0.6vw
font-weight: 500
padding: 1.2vw 1.5vw 1.2vw 1.2vw
margin-right: -0.7em
type: 'custom:button-entity-row'
show_header_toggle: false
style: |
ha-card {
box-shadow: none;
border-radius: 1vw;
background: rgba(36, 42, 43, 0.88);
padding-right: 0.7em;
}
title: Väggplattan
type: entities
style: |
ha-card {
--paper-card-background-color: rgba(36, 42, 43, 0.88);
box-shadow: none;
border-radius: 1vw;
}
type: 'custom:vertical-stack-in-card'
- break
- cards:
- entities:
- entity: sensor.synology_dsm_status
- entity: sensor.synology_dsm_temperature_sdb
name: Disktemperatur
- entity: sensor.drifttid
icon: 'mdi:calendar-month'
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.synology_dsm_cpu_load_total
height: 2.1em
icon: 'mdi:chip'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.7em;
margin-top: 0.1em;
}
title: Processor
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.synology_dsm_cpu_load_total
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.synology_dsm_memory_usage_real
height: 2.1em
icon: 'mdi:memory'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.7em;
margin-top: 0.1em;
}
title: Minne - 4GB
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.synology_dsm_memory_usage_real
- background_style:
background: >-
radial-gradient(circle, rgba(45,45,45,1) 0%,
rgba(0,0,0,1) 100%)
card_style:
background: '#FFFFFF00'
box-shadow: none
entity: sensor.synology_dsm_volume_used_volume_1
height: 2.1em
icon: 'mdi:harddisk'
icon_position: left
icon_style:
color: '#9e9e9e'
margin-left: '-0.35em'
max: 100
min: 0
rounding: 0.3em
severity:
- color: '#303435'
value: 90
- color: '#6d2525'
value: 100
style: |
ha-card {
background-color: #FFFFFF00;
margin-left: -0.4em;
margin-right: -0.7em;
margin-top: 0.1em;
}
title: Lagring - 16TB
title_style:
color: '#e0e1e1'
margin-left: 0.95em
type: 'custom:bar-card'
value_style:
color: '#e0e1e1'
font-size: 0.95em
font-weight: 400
width: 50%
tap_action: service
service_options:
domain: homeassistant
service: update_entity
data:
entity_id: sensor.synology_dsm_volume_used_volume_1
show_header_toggle: false
style: |
ha-card {
box-shadow: none;
border-radius: 1vw;
background: rgba(36, 42, 43, 0.88);
padding-right: 0.7em;
}
title: Synology NAS
type: entities
- align_state: left
entities:
- color: green
entity: sensor.synology_dsm_network_down
name: Nedladdning
- color: '#6d252590'
entity: sensor.synology_dsm_network_up
name: Uppladdning
group: false
name: Nätverk
show:
fill: fade
icon: false
name: false
name_adaptive_color: true
style: |
ha-card {
box-shadow: none;
margin-top: -0.48em;
border-radius: 8vw;
background: rgba(36, 42, 43, 0.88);
padding-left: 1em;
}
tap_action:
action: none
type: 'custom:mini-graph-card'
style: |
ha-card {
--paper-card-background-color: rgba(36, 42, 43, 0.88);
box-shadow: none;
border-radius: 1vw;
}
type: 'custom:vertical-stack-in-card'
column_num: 3
layout: vertical
type: 'custom:layout-card'
deviceID:
- this
large: true
style:
background: 'rgba(255, 255, 255, 0)'
border-radius: 0.8vw 0.8vw 0.8vw 0.8vw
padding: 3vw 2.5vw 5vw 2.5vw
title: Stäng
title: null
type: icon
#################################################################
# #
# SCENES BUTTON #
# #
#################################################################
- icon: 'mdi:home-heart'
style:
'--iron-icon-height': 3.5vw
'--iron-icon-width': 3.5vw
color: 'rgba(255, 255, 255, 0.10)'
left: 15.8%
top: 88.7%
tap_action:
action: call-service
service: browser_mod.popup
service_data:
card:
cards:
- entities:
- entity: scene.hemma_above_horizon
icon: 'mdi:weather-sunny'
name: Hemma dag
- entity: scene.hemma_below_horizon
icon: 'mdi:weather-sunset'
name: Hemma kväll
- entity: scene.hemma_below_horizon
icon: 'mdi:fire'
name: Bemysa
- entity: scene.hemma_below_horizon
icon: 'mdi:popcorn'
name: Filmdags
- entity: scene.hemma_below_horizon
icon: 'mdi:alarm'
name: Vakna
- entity: scene.hemma_below_horizon
icon: 'mdi:power-sleep'
name: Läggdags
- entity: scene.hemma_below_horizon
icon: 'mdi:party-popper'
name: Fest
type: entities
type: 'custom:vertical-stack-in-card'
deviceID:
- this
style:
'--ha-card-border-radius': 0vw 0vw 0.8vw 0.8vw
border-radius: 0.8vw
opacity: 0.9
title: Belysning
title: null
type: icon
#############################################################################################################################################
# #
# VARDAGSRUM #
# #
#############################################################################################################################################
#################################################################
# #
# BELYSNING #
# #
#################################################################
- entity: light.belysning
state_image:
'off': /local/vardagsrum_belysning_off.png
'on': /local/vardagsrum_belysning_on.png
unavailable: /local/unknown.png
style:
left: 30.31%
top: 20.35%
width: 10%
type: image
- conditions:
- entity: light.belysning
state_not: unavailable
elements:
- entity: light.belysning
icon: 'bha:hue-bulb'
style:
'--iron-icon-height': 1.87vw
'--iron-icon-width': 1.87vw
left: 27.40%
top: 15.55%
type: state-icon
type: conditional
- conditions:
- entity: light.belysning
state: 'on'
elements:
- entity: sensor.belysning_percent
fill: '#FFFFFF10'
font_style:
color: '#7d7e80'
font-size: 1.0vw
font-weight: 400
margin-left: '-0.8%'
margin-top: 1.9%
gradient: true
max: 100
min: 0
stroke_color: '#aaabad'
stroke_width: 6
style:
height: 3.15vw
left: 32.8%
opacity: 0.7
top: 16.3%
width: 3.15vw
type: 'custom:circle-sensor-card'
units: '%'
type: conditional
- hold_action:
action: call-service
service: browser_mod.popup
service_data:
card:
cards:
- entities:
- entity: light.belysning
secondary_info: last-changed
style: |
ha-card {
z-index: 5
}
type: entities
- entities:
- color_temp: true
entity: light.belysning
header: false
persist_features: true
type: 'custom:light-slider-card'
show_header_toggle: false
style: |
ha-card {
z-index: 0;
}
type: entities
- brightness: false
color_picker: false
color_temp: true
effects_list: false
entity: light.belysning
full_width_sliders: false
header: false
persist_features: true
show_slider_percent: false
style: |
ha-card {
padding-bottom: 3em;
margin-top: -1.5em;
margin-left: -1.8em;
opacity: 0.7;
z-index: 5;
}
type: 'custom:light-entity-card'
- entities:
- buttons:
- icon: 'mdi:'
service: browser_mod.popup
service_data:
card:
cards:
- entities:
- entity: light.belysning
secondary_info: last-changed
type: entities
- brightness: false
color_temp: false
entity: light.belysning
full_width_sliders: true
header: false
persist_features: true
show_slider_percent: true
smooth_color_wheel: true
type: 'custom:light-entity-card'
type: 'custom:vertical-stack-in-card'
deviceID:
- this
style:
'--ha-card-border-radius': 0vw 0vw 0.8vw 0.8vw
border-radius: 0.8vw
opacity: 0.9
title: Belysning
style:
background: >-
radial-gradient(circle at 50% 0,
rgba(255,0,0,.5), rgba(255,0,0,0) 70.71%),
radial-gradient(circle at 6.7% 75%,
rgba(0,0,255,.5), rgba(0,0,255,0) 70.71%),
radial-gradient(circle at 93.3% 75%,
rgba(0,255,0,.5), rgba(0,255,0,0) 70.71%)
beige
border-radius: 50%
font-weight: 500
margin-bottom: 0.5em
margin-top: 0.8em
padding: 1.8em
type: 'custom:button-entity-row'
style: |
ha-card {
margin-top: -2.3em;
}
type: entities
type: 'custom:vertical-stack-in-card'
deviceID:
- this
style:
'--ha-card-border-radius': 0vw 0vw 0.8vw 0.8vw
border-radius: 0.8vw
opacity: 0.9
title: Belysning
image: /local/overlay.svg
style:
left: 30.31%
opacity: 0
top: 20.35%
width: 10%
tap_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.belysning
title: null
type: image
#################################################################
# #
# SKRIVBORD #
# #
#################################################################
- entity: light.fonsterlampa
state_image:
'off': /local/vardagsrum_skrivbord_off.png
'on': /local/vardagsrum_skrivbord_on.png
unavailable: /local/unknown.png
style:
left: 41.31%
top: 20.35%
width: 10%
type: image
- conditions:
- entity: light.fonsterlampa
state_not: unavailable
elements:
- entity: light.fonsterlampa
icon: 'bha:skrivbord'
style:
'--iron-icon-height': 2.5vw
'--iron-icon-width': 2.5vw
left: 38.45%
top: 15.45%
type: state-icon
type: conditional
- conditions:
- entity: light.fonsterlampa
state: 'on'
elements:
- entity: sensor.fonsterlampa_percent
fill: '#FFFFFF10'
font_style:
color: '#7d7e80'
font-size: 1.0vw
font-weight: 400
margin-left: '-0.8%'
margin-top: 1.9%
gradient: true
max: 100
min: 0
stroke_color: '#aaabad'
stroke_width: 6
style:
height: 3.15vw
left: 43.8%
opacity: 0.7
top: 16.3%
width: 3.15vw
type: 'custom:circle-sensor-card'
units: '%'