forked from herveaurel/HomeAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lovelace.yaml
15094 lines (15066 loc) · 578 KB
/
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
button_card_templates:
police:
styles:
card:
- font-family: Avenir
sidebar:
entity: weather.ta_ville_ou_il_fait_beau
show_entity_picture: true
show_icon: true
show_name: false
show_state: false
show_label: false
template:
- police
entity_picture: |
[[[
if ((entity.state == 'sunny') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/clear-day.svg"
if ((entity.state == 'sunny') || (entity.state == 'clear-night') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/clear-night.svg"
if ((entity.state == 'lightning-rainy') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/thunderstorms-day-rain.svg"
if ((entity.state == 'lightning-rainy') || (entity.state == 'clear-night') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/thunderstorms-night-rain.svg"
if ((entity.state == 'fog') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/fog-day.svg"
if ((entity.state == 'fog') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/fog-night.svg"
if ((entity.state == 'partlycloudy') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/partly-cloudy-day.svg"
if ((entity.state == 'partlycloudy') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/partly-cloudy-night.svg"
if ((entity.state == 'rainy') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/partly-cloudy-day-rain.svg"
if ((entity.state == 'rainy') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/partly-cloudy-night-rain.svg"
if ((entity.state == 'lightning') && (states['sun.sun'].state == 'above_horizon'))
return "/local/weather/icones animes/thunderstorms-day.svg"
if ((entity.state == 'lightning') && (states['sun.sun'].state == 'below_horizon'))
return "/local/weather/icones animes/thunderstorms-night.svg"
if (entity.state == 'clear-night')
return "/local/weather/icones animes/clear-night.svg";
if (entity.state == 'sleet')
return "/local/weather/icones animes/sleet.svg";
if (entity.state == 'pouring')
return "/local/weather/icones animes/pouring.svg";
if (entity.state == 'snow')
return "/local/weather/icones animes/snow.svg";
if (entity.state == 'cloudy')
return "/local/weather/icones animes/cloudy.svg";
if (entity.state == 'wind')
return "/local/weather/icones animes/wind.svg";
]]]
styles:
img_cell:
- border-radius: 50%
- width: 60px
- height: 60px
- position: absolute
- top: '-01%'
- left: 05%
- background-color: transparent
- color: transparent
- border-color: transparent
- box-shadow: transparent
entity_picture:
- width: 80%
grid:
- grid-template-areas: |
"date"
"meteo"
"alerte"
"titre_programme"
"anniv"
"calendrier"
"poubelle"
"titre_avertissement"
"device_hs"
"titre_activite"
"reveil"
"rappel"
"mouvement"
"porte"
"lumiere"
"appareil"
"modes"
"app_connectes"
"adguard"
"enedis"
"gaz"
"titre_maj"
"maj"
- grid-template-columns: 1fr
- grid-template-rows: >-
min-content min-content min-content min-content min-content
min-content min-content min-content min-content min-content
min-content min-content min-content min-content min-content
min-content min-content min-content min-content min-content
min-content 1fr
- gap: 0%
- overflow: hidden
card:
- '-webkit-tap-highlight-color': rgba(0,0,0,0)
- padding: 2% 4% 2% 4%
- border-color: var(--card_border)
- border-style: outset
- border-width: 1px
- box-shadow: var(--card_box_shadow)
- line-height: 125%
- font-size: 13px
custom_fields:
reglages:
- opacity: 100%
- position: absolute
- top: 1.5%
- left: 130.5%
- width: calc(80% + 0px)
- transform: translate(-50%, calc(-50% + 10px))
date:
- color: var(--text_on)
- padding: 02px 0px 0px 0px
- text-transform: null
- font-weight: bold
- align-self: middle
- line-height: null
- white-space: normal
meteo:
- padding: 05px 0px 0px 0px
- padding-left: 9px
- color: var(--text_on_sidebar)
- align-self: middle
- white-space: normal
- font-weight: bold
alerte:
- padding: 05px 0px 0px 0px
- padding-left: 8px
- font-size: 95%
- color: |
[[[
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Jaune')
return 'yellow'
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Orange')
return 'orange'
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Rouge')
return 'red'
return ''
]]]
- align-self: middle
- white-space: normal
titre_programme:
- padding: 15px 0px 01px 0px
- font-weight: bold
- justifiy-self: start
- text-align: left
- color: var(--text_on_sidebar)
- white-space: normal
anniv:
- border-left: |
[[[
if (states['sensor.anniversaire'].state == 'Aucun')
return '';
return '2px tomato solid';
]]]
- padding: 0px 0px 0px 0px
- padding-left: 8px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
calendrier:
- border-left: 2px tomato solid
- padding: 0px 0px 0px 0px
- padding-left: 8px
- color: |
[[[
if (states['sensor.calendar_famille'].state == 'Aucun évènement')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
- justifiy-self: start
- text-align: left
- white-space: normal
poubelle:
- border-left: 2px tomato solid
- padding: 0px 0px 0px 0px
- padding-left: 8px
- color: |
[[[
if (states['sensor.calendar_poubelles'].state == 'Aucun rappel')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
- justifiy-self: start
- text-align: left
- white-space: normal
titre_avertissement:
- padding: |
[[[
if (states['sensor.systeme_avertissement'].state == '' )
return "0px 0px 0px 0px" ;
return "15px 0px 01px 0px" ;
]]]
- font-weight: bold
- justifiy-self: start
- text-align: left
- color: red
- white-space: normal
device_hs:
- border-left: 2px red solid
- padding: |
[[[
if (states['sensor.systeme_avertissement'].state == '' )
return "0px 0px 0px 0px" ;
return "0px 0px 0px 08px" ;
]]]
- justifiy-self: start
- color: red
- white-space: normal
- text-align: left
titre_activite:
- padding: 15px 0px 01px 0px
- font-weight: bold
- justifiy-self: start
- text-align: left
- color: var(--text_on_sidebar)
- white-space: normal
appareil:
- border-left: 2px grey solid
- white-space: normal
- text-align: left
- padding: 0px 0px 0px 08px
- justifiy-self: start
- color: |
[[[
if (states['sensor.compteur_autre'].state == '0')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
reveil:
- border-left: 2px grey solid
- white-space: normal
- text-align: left
- padding: 0px 0px 0px 08px
- justifiy-self: start
- color: var(--text_on_info_sidebar)
lumiere:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- color: |
[[[
if (states['light.tout'].state == 'off')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
- white-space: normal
- text-align: left
mouvement:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: |
[[[
if (states['binary_sensor.mouvements'].state == 'off')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
- white-space: normal
porte:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: |
[[[
if (states['binary_sensor.portes'].state == 'off')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
- white-space: normal
rappel:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- white-space: normal
- color: |
[[[
if (states['sensor.rappel'].state == 'Aucun')
return 'var(--text_off_sidebar)';
return 'var(--text_on_info_sidebar)';
]]]
app_connectes:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
adguard:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
enedis:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
gaz:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
modes:
- border-left: 2px grey solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: var(--text_on_info_sidebar)
- white-space: normal
titre_maj:
- padding: 15px 0px 01px 0px
- font-weight: bold
- justifiy-self: start
- text-align: left
- color: var(--text_on_sidebar)
- white-space: normal
maj:
- border-left: 2px dodgerblue solid
- padding: 0px 0px 0px 08px
- justifiy-self: start
- text-align: left
- color: |
[[[
if (states['sensor.maj'].state == 'Aucune')
return "var(--text_off)" ;
return "var(--text_on_info_sidebar)"
]]]
- white-space: normal
custom_fields:
date: |
[[[ return states['sensor.date_simple'].state ]]]
meteo: >
[[[ return states['sensor.weather_temperature_v2'].state +"°
"+states['sensor.weather_conditions'].state ]]]
alerte: |
[[[
if (states['sensor.weather_alerte_couleur_v2'].state == "Aucune vigilance en cours" )
return ""
return "Vigilance "+states['sensor.weather_alerte'].state
]]]
titre_programme: |
[[[ return "Aujourd’hui"
]]]
anniv: |
[[[
if (states['sensor.anniversaire'].state == 'Aucun')
return ""
return "🎁 " + states['sensor.anniversaire'].state
]]]
calendrier: |
[[[ return states['sensor.calendar_famille'].state
]]]
poubelle: |
[[[ return states['sensor.calendar_poubelles'].state
]]]
titre_avertissement: |
[[[
if (states['sensor.systeme_avertissement'].state == '')
return ""
return "Avertissement"
]]]
device_hs: |
[[[
if (states['sensor.systeme_avertissement'].state == '')
return ""
return states['sensor.systeme_avertissement'].state ;
]]]
titre_activite: |
[[[ return "Activité"
]]]
appareil: |
[[[
if (states['sensor.compteur_autre'].state == 0 || states['input_boolean.sidecar_show_autre'].state == 'off')
return ""
return `<ha-icon
icon="mdi:home"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.autres_appareils'].state}</span>`
]]]
lumiere: |
[[[
if (states['sensor.lumiere_etat'].state == 'Aucune' || states['input_boolean.sidecar_show_lumiere'].state == 'off')
return ""
return `<ha-icon
icon="phu:bulb-group-filament-candle"
style="width: 18px; color: gold; height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.lumiere_etat'].state}</span>`
]]]
mouvement: |
[[[
if (states['sensor.mouv_on'].state == 'Aucun' || states['input_boolean.sidecar_show_mouvement'].state == 'off')
return ""
return `<ha-icon
icon="mdi:run"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.mouv_on'].state}</span>`
]]]
porte: |
[[[
if (states['sensor.porte_on'].state == 'Aucune'|| states['input_boolean.sidecar_show_porte'].state == 'off')
return ""
return `<ha-icon
icon="mdi:door-open"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.porte_on'].state}</span>`
]]]
rappel: |
[[[
if (states['sensor.rappel'].state == "Aucun")
return ""
return `<ha-icon
icon="mdi:reminder"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.rappel'].state}</span>`
]]]
reveil: |
[[[
if (states['sensor.reveil'].state == "")
return ""
return `<ha-icon
icon="mdi:alarm"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.reveil'].state}</span>`
]]]
app_connectes: |
[[[
if (states['sensor.app_connectes'].state == 'Aucun' || states['input_boolean.sidecar_show_connecte'].state == 'off')
return ""
return `<ha-icon
icon="mdi:desktop-mac"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.app_connectes'].state}</span>`
]]]
adguard: |
[[[
if (states['switch.adguard_protection'].state == 'on')
return `<ha-icon
icon="phu:adguard"
style="width: 15px; color: lightgrey; height: 15px; margin-right: 2px;">
</ha-icon><span> AdGuard activé</span>`
if (states['switch.adguard_protection'].state == 'off')
return `<ha-icon
icon="phu:adguard"
style="width: 15px; color: red; height: 15px; margin-right: 2px;">
</ha-icon><span> AdGuard désactivé</span>`
]]]
enedis: |
[[[
if (states['input_boolean.sidecar_show_electricite'].state == 'off')
return ""
if (states['sensor.myenedis_cost_yesterday_09397539765420'].state == '-1.0')
return `<ha-icon
icon="mdi:flash-alert"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span>Enedis: en attente</span>`
if (states['sensor.myenedis_cost_yesterday_09397539765420'].state == 'unavailable')
return `<ha-icon
icon="mdi:flash-off"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span>Enedis : indisponible</span>`
if (states['sensor.myenedis_cost_yesterday_09397539765420'].state != '-1.0')
return `<ha-icon
icon="mdi:flash"
style="width: 18px; color: gold; height: 18px; margin-right: 2px;">
</ha-icon><span>Électricité : ${states['sensor.electricite_conso_kwh_arrondie'].state}kWh / ${states['sensor.electricite_cout_jour_avec_abo'].state}€</span>`
]]]
gaz: |
[[[
if (states['input_boolean.sidecar_show_gaz'].state == 'off')
return ""
if (states['sensor.grdf_consommation_gaz'].state == 'unavailable')
return `<ha-icon
icon="mdi:gas-burner"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span>ERDF : indisponible</span>`
if (states['sensor.grdf_consommation_gaz'].state != '-1.0')
return `<ha-icon
icon="mdi:gas-burner"
style="width: 18px; color: '#6aa17f'; height: 18px; margin-right: 2px;">
</ha-icon><span>Gaz : ${states['sensor.grdf_consommation_gaz'].state}kWh / ${states['sensor.gaz_cout_jour_avec_abo'].state}€</span>`
]]]
modes: |
[[[
if (states['sensor.modes'].state == 'Aucun'|| states['input_boolean.sidecar_show_mode'].state == 'off')
return ""
return `<ha-icon
icon="mdi:checkbox-multiple-marked-outline"
style="width: 18px; color: var(--text_on_sidebar); height: 18px; margin-right: 2px;">
</ha-icon><span> ${states['sensor.modes'].state}</span>`
]]]
titre_maj: |
[[[ return "Mise à jour"
]]]
maj: |
[[[ return states['sensor.maj'].state ;
]]]
reglages:
card:
type: custom:button-card
name: reglages
show_name: false
show_icon: true
icon: mdi:cog
styles:
card:
- border-radius: 10px
- height: 25px
- width: 25px
icon:
- width: 60%
- color: darkgrey
tap_action:
action: navigate
navigation_path: /lovelace/Reglages
base:
show_icon: true
show_name: true
show_state: false
show_label: true
template:
- police
styles:
grid:
- grid-template-areas: '"i n" "i l" "i s" '
- grid-template-columns: min-content auto
- grid-template-rows: min-content min-content min-content
img_cell:
- background-color: var(--pastille_off)
- border-radius: 50%
- place-self: start
- text-align: start
- width: 35px
- height: 35px
- border-color: var(--card_border)
- border-style: outset
- border-width: 1px
- box-shadow: var(--card_box_shadow)
icon:
- width: 70%
- color: var(--icon_off)
name:
- color: lightgrey
- align-self: end
- justify-self: start
- text-align: left
- font-weight: null
- font-size: 14px
- margin-left: 10px
state:
- white-space: normal
- color: darkgrey
- justify-self: start
- align-self: end
- font-weight: bold
- text-align: left
- font-size: 12px
- filter: opacity(100%)
- margin-left: 11px
- line-height: 110%
label:
- white-space: normal
- color: darkgrey
- justify-self: start
- align-self: start
- text-align: left
- font-weight: bold
- font-size: 12px
- filter: opacity(100%)
- margin-left: 11px
- line-height: 110%
card:
- padding: 8px
- font-size: 100%
- border-color: var(--card_border)
- border-style: outset
- border-width: 1px
- box-shadow: var(--card_box_shadow)
- white-space: normal
custom_fields:
bouton:
- position: absolute
- top: 72%
- left: 50%
- width: calc(90% + 1px)
- transform: translate(-50%, calc(-50% + 10px))
gauge:
- position: absolute
- top: 60%
- left: 50%
- width: calc(90% + 0px)
- transform: translate(-50%, calc(-50% + 10px))
- z-index: 12
- '--paper-card-background-color': rgba(0, 0, 0, 0.0)
- '--ha-card-background': rgba(0, 0, 0, 0.0)"
- '--ha-card-box-shadow': none
tap_action:
action: more-info
double_tap_action:
action: toggle
carte_bouton:
show_name: false
show_state: false
show_icon: true
styles:
card:
- border-radius: 5px
icon:
- color: grey
- width: 15px
double_tap_action:
action: more-info
tap_action:
action: toggle
carte_bouton_state:
state:
- value: 'on'
styles:
icon:
- color: |-
[[[
var color = '211,211,211'; // Default Color
if( states[entity.entity_id].attributes.rgb_color != undefined)
color = states[entity.entity_id].attributes.rgb_color;
return 'rgb(' + color + ',1)';
]]]
- value: home
styles:
icon:
- color: rgb(176, 196, 222)
- value: heat
styles:
icon:
- color: rgb(176, 196, 222)
- value: armed_away
styles:
icon:
- color: rgb(176, 196, 222)
- value: playing
styles:
icon:
- color: rgb(176, 196, 222)
- value: veille
styles:
icon:
- color: rgb(176, 196, 222)
- value: 'off'
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: not_home
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: disarmed
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: standby
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: idle
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: paused
styles:
icon:
- color: rgb(211,211,211)
- opacity: 30%
- value: unavailable
styles:
icon:
- color: red
- animation: blink 0.8s ease infinite
tap_action:
action: more-info
base_petite:
styles:
card:
- height: 50px
base_moyenne:
styles:
card:
- height: 70px
base_large:
styles:
card:
- height: 95px
base_tres_large:
styles:
card:
- height: 147px
base_extra_large:
styles:
card:
- height: 235px
carte_piece:
styles:
custom_fields:
notification:
- border-radius: 50%
- position: absolute
- left: 3%
- top: 35%
- height: 15px
- width: 15px
- font-size: 85%
- line-height: 17px
- font-weight: null
- background-color: |
[[[
if (entity.state == "off")
return 'rgba(0,191,205,0)';
return 'rgba(0,0,0,0.4)';
]]]
- color: |
[[[
if (entity.state == "off")
return 'rgba(0,191,205,0)';
return 'lightgrey';
]]]
lum:
- position: absolute
- top: 52%
- left: 62.5%
- width: calc(100% + 0px)
- transform: translate(-50%, calc(-50% + 10px))
- z-index: 8
- '--paper-card-background-color': rgba(0, 0, 0, 0.0)
- '--ha-card-background': rgba(0, 0, 0, 0.0)
- '--ha-card-box-shadow': none
bouton:
- top: 75%
- z-index: 2
- '--paper-card-background-color': rgba(0, 0, 0, 0.0)
- '--ha-card-background': rgba(0, 0, 0, 0.0)
- '--ha-card-box-shadow': none
graph:
- opacity: 70%
- position: absolute
- top: 60%
- left: 50%
- width: calc(120% + 0px)
- transform: translate(-50%, calc(-50% + 10px))
- z-index: 4
- '--paper-card-background-color': rgba(0, 0, 0, 0)
- '--ha-card-background': rgba(0, 0, 0, 0)
- '--ha-card-box-shadow': none
- pointer-events: none
graph_fixe:
- opacity: 70%
- position: absolute
- top: 60%
- left: 50%
- width: calc(120% + 0px)
- transform: translate(-50%, calc(-50% + 10px))
- z-index: 12
- '--paper-card-background-color': rgba(0, 0, 0, 0)
- '--ha-card-background': rgba(0, 0, 0, 0)
- '--ha-card-box-shadow': none
- pointer-events: none
piece_jauge_lumiere:
custom_fields:
lum:
card:
type: conditional
card:
type: custom:my-slider
radius: 3px
height: 10px
width: 75%
mainSliderColor: var(--button-card-light-color-no-temperature)
secondarySliderColor: darkslategrey
thumbHorizontalPadding: 0px
thumbVerticalPadding: 0px
minSet: 1
thumbWidth: 1px
thumbColor: var(--text_on)
piece_graph:
custom_fields:
graph:
card:
type: conditional
card:
type: custom:mini-graph-card
height: 80
line_width: 2
points_per_hour: 1
hours_to_show: 24
show:
fill: false
icon: false
name: false
state: false
legend: false
points: false
labels: false
piece_graph_fixe:
custom_fields:
graph_fixe:
card:
type: custom:mini-graph-card
height: 80
line_width: 2
points_per_hour: 1
hours_to_show: 24
show:
fill: false
icon: false
name: false
state: false
legend: false
points: false
labels: false
jauge_lumiere:
styles:
custom_fields:
lum:
- position: absolute
- top: 67%
- left: 49%
- width: calc(90% + 1px)
- transform: translate(-50%, calc(-50% + 10px))
- z-index: 1
- '--paper-card-background-color': rgba(0, 0, 0, 0.0)
- '--ha-card-background': rgba(0, 0, 0, 0.0)"
- '--ha-card-box-shadow': none
carte_jauge_cercle:
show_state: false
show_label: false
show_last_changed: false
show_name: false
show_icon: false
template:
- police
- base
styles:
card:
- height: 110px
custom_fields:
pile:
- position: absolute
- top: 5%
- left: 85%
- font-size: 80%
- border-radius: 5px
- opacity: 100%
jauge_cercle:
- top: 57%
- left: 78%
- width: calc(140% + 10px)
- transform: translate(-50%, calc(-50% + 10px))
- position: absolute
- z-index: 2
- '--paper-card-background-color': rgba(0, 0, 0, 0.0)
- '--ha-card-background': rgba(0, 0, 0, 0.0)"
- '--ha-card-box-shadow': none
carte_meteo:
show_icon: false
show_name: false
show_state: false
show_label: true
show_last_changed: false
template:
- police
name: |
[[[
return states['sensor.weather_conditions'].state
]]]
label: |
[[[
return states['sensor.weather_alerte_couleur_v2'].state +" "+states['sensor.weather_alerte'].state
]]]
styles:
grid:
- grid-template-areas: '"i n" "temp vent " "nuage pluie" "uv neige"'
- grid-template-columns: 1fr 1fr
- grid-template-rows: 1fr 1fr 1fr 1fr
- column-gap: 1px
- row-gap: 1px
img_cell:
- border-radius: 50%
- width: 40px
- height: 40px
- background-color: var(--pastille_off)
- color: var(--text_systeme_info)
- justifiy-self: start
- place-self: start
- border-color: var(--card_border)
- border-style: outset
- border-width: 1px
- box-shadow: var(--card_box_shadow)
name:
- padding: 0px 0px 0px 0px
- color: var(--text_on)
- top: 4%
- left: 15%
- position: absolute
- font-size: 100%
- font-weight: bold
- text-align: left
- place-self: start
label:
- padding: 0px 0px 0px 0px
- top: 10%
- left: 5%
- position: absolute
- font-size: 100%
- font-style: bold
- text-align: left
- place-self: start
- color: |
[[[
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Jaune')
return 'yellow'
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Orange')
return 'orange'
if (states['sensor.weather_alerte_couleur_v2'].state == 'Vigilance Rouge')
return 'red'
return 'var(--text_on)'
]]]
card:
- height: 230px
- font-size: 100%
- padding-top: 1%
- padding-bottom: 3%
- padding-left: 1%
- border-color: var(--card_border)
- border-style: outset
- border-width: 1px
- box-shadow: var(--card_box_shadow)
- line-height: 130%
custom_fields:
soleil:
- position: absolute
- top: 0%
- left: 05%
- font-size: 100%
- opacity: 100%
temp:
- color: var(--text_systeme_info)
- padding-left: 10%
- align-self: middle
- font-size: 90%
- font-weight: null
- text-align: left
- '--text-color-sensor': |
[[[
if (states['sensor.weather_temperature'].state == "unavailable")
return 'transparent'
if (states['sensor.weather_temperature'].state < 19.1)
return 'dodgerblue'
if (states['sensor.weather_temperature'].state > 26.9)
return 'tomato'
return 'lightgrey'
]]]
jauge_temp:
- position: absolute
- top: 40%
- left: 7%
- opacity: 100%
- width: calc(40% + 0px)