Picture entity card templating

TIA as always
is it possible to have the picture entity card change if the state is above or below a number
i can get it to work if the state is an exact number
but i need it to be like a gauge and change a specific picture between 10 & 25 then a different card between 25 & 50, is the only way a template and if so does a template work in the picture entity card.

type: picture-entity
entity: sensor.oil_tank_level_percent
state_image:
  '9': /local/oil tank empty red.jpg
  '10': /local/oil tank 10 orange.jpg
  '25': /local/oil tank 25.jpg
  '50': /local/oil tank 50.jpg
  '75': /local/oil tank 75.jpg
  '76': /local/oil tank full.jpg

That will require the use of this

1 Like