Lâerreur provient de ta modification
- entity: input_select.localisation_thomas
variables:
personne: "thomas"
template:
- icon_info_bg
- personne-Thomas #Si tu renomme ici, forcément il faut renommer le modÚle
name: Thomas
type: 'custom:button-card'
Câest beaucoup mieux
person-dylan: #s'appellait person-thomas auparavant
variables:
person: "thomas"
template: person
hold_action:
action: more-info
entity: input_boolean.thomas_nuit #A changer !!
styles:
custom_fields:
notification:
#input_select.localisation_thomas A changer !!
- background-color: >
[[[
if (states['input_select.localisation_thomas'].state == 'Present'){
return "rgba(var(--color-blue),1)";
}else{
return "rgba(var(--color-green),1)";
}
]]]
custom_fields:
#input_boolean.thomas_nuit A changer !!
#input_select.localisation_thomas A changer !!
notification: >
[[[
if (states['input_boolean.thomas_nuit'].state == 'on'){
return `<ha-icon icon="mdi:power-sleep" style="width: 10px; height: 10px; color: var(--primary-background-color);"></ha-icon>`
}else{
if (states['input_select.localisation_thomas'].state == 'Present'){
return `<ha-icon icon="mdi:home-variant" style="width: 10px; height: 10px; color: var(--primary-background-color);"></ha-icon>`
}else{
return `<ha-icon icon="mdi:pine-tree" style="width: 10px; height: 10px; color: var(--primary-background-color);"></ha-icon>`
}
}
]]]
Jâai mis A CHANGER lorsque tu dois modifier avec tes propres entitĂ©s les modĂšles.
Si tu laisses les entitĂ©s de @tben, tu retrouves lâerreur de rĂ©cupĂ©ration dâĂ©tat de ta capture.
Certains dĂ©veloppeurs sont en train de travailler dans lâombre pour variabiliser tout le code pour ne pas avoir Ă modifier les modĂšles.
Aucune idée de ce que représente ces entités par contre.
Personnellement, jâutilise cette carte :