Closed FOSV closed 1 year ago
I've tried this following lines of code, but they don't work
{ "type": "label", "label": "My Light", "checkedTemplate": "{{ states('light.my_light') }}", "icon": "wall-sconce-round-variant-customTemplate@2x.png", "reload": true, "action": { "domain": "light", "service": "toggle", "serviceData": { "entity_id": "light.my_light" } } },
Solved writing in this way: "checkedTemplate": "states('light.my_light')"
"checkedTemplate": "states('light.my_light')"
I've tried this following lines of code, but they don't work
{ "type": "label", "label": "My Light", "checkedTemplate": "{{ states('light.my_light') }}", "icon": "wall-sconce-round-variant-customTemplate@2x.png", "reload": true, "action": { "domain": "light", "service": "toggle", "serviceData": { "entity_id": "light.my_light" } } },