Cannot get Picture Glance card to work with state_image(s)

Hello.

I’m trying to get a picture glance card to display an image based on the value of a template sensor (sensor.watertank_card).

I cannot figure out what I am missing / doing wrong. Lovelace displays the following:

image

Please help!!

Thanks

I’m not 100% sure, but probably you should look at the example at the very bottom of https://www.home-assistant.io/lovelace/picture-glance/ which suggest that you need to specify a single entity to be used for the state_image section.

type: picture-glance
title: Water Tank
state_image:
  '10': /local/10.png
...
entity: sensor.watertank_card
1 Like

Thank you Patman

You were spot-on.

Working 100% now.

Please mark Patrick’s post as the solution.