@hajo62 wrote:
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-card would be the solution, but I did not get it to run.type: picture-glance title: Status image: /local/images/default.jpg entity: sensor.heizung_terrasse_temperatur state_image: 0: /local/images/off.jpg 1: /local/images/on.jpg entities: - entity: sensor.homee_status
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”…
Posts: 1
Participants: 1