-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEtat des lieux tempo
63 lines (60 loc) · 2.13 KB
/
Etat des lieux tempo
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
type: horizontal-stack
cards:
- type: custom:button-card
entity: sensor.cout_tempo_jour_total
label: |
[[[
var label = ""
label = '<b>Rouge</b><hr width="100" size="1" align=center color ="#FFFFFF"></hr>' + states['sensor.rte_tempo_cycle_jours_restants_rouge'].state + '/' + states['sensor.nb_jours_rouge_total'].state + '<br>HP ' + states['sensor.tarif_jour_rouge_hp'].state + '<BR>'+'HC ' + states['sensor.tarif_jour_rouge_hc'].state
return label;
]]]
show_label: true
show_icon: false
show_state: false
show_name: false
card_mod:
style: |
ha-card {
border-radius:10px;
padding-top: 5px;
background-color: red;
}
- type: custom:button-card
entity: sensor.cout_tempo_jour_total
label: |
[[[
var label = ""
label = '<b>Blanc</b><hr width="100" size="1" align=center color ="#00000"></hr>' + states['sensor.rte_tempo_cycle_jours_restants_blanc'].state + '/' + states['sensor.nb_jours_blanc_total'].state + '<br>HP ' + states['sensor.tarif_jour_blanc_hp'].state + '<BR>'+'HC ' + states['sensor.tarif_jour_blanc_hc'].state
return label;
]]]
show_label: true
show_icon: false
show_state: false
show_name: false
card_mod:
style: |
ha-card {
border-radius:10px;
padding-top: 5px;
color: black;
background-color: white;
}
- type: custom:button-card
entity: sensor.cout_tempo_jour_total
label: |
[[[
var label = ""
label = '<b>Bleu</b><hr width="100" size="1" align=center color ="#FFFFFF"></hr>' + states['sensor.rte_tempo_cycle_jours_restants_bleu'].state + '/' + states['sensor.nb_jours_bleu_total'].state + '<br>HP ' + states['sensor.tarif_jour_bleu_hp'].state + '<BR>'+'HC ' + states['sensor.tarif_jour_bleu_hc'].state
return label;
]]]
show_label: true
show_icon: false
show_state: false
show_name: false
card_mod:
style: |
ha-card {
border-radius:10px;
padding-top: 5px;
background-color: blue;
}