HA v0.101.3:
I would like to show different icon depending on the value a sensor has. The sensors values are 0, 1 ,2 and 3.
I though the picture-glance or picture.entity-card would be the solution, but I did not get it to run.
But I see this error in the card configuration editor: Expected a value of type `undefined` for `state_image` but received `{"0":"/local/images/off.jpg","1":"/local/images/on.jpg"}`.
The result is the same when I quote the values with single- or double quotes like “0”…
Following - I’d love to be able to more easily change icons (esp. if we could in Lovelace!). But, for now, I’m relegated to creating duplicate sensors and hand-crafting/creating the .png icon files from MDI…