Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95409

Show different images depending of sensors value

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95409

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>