Setting image card based on URL in sensor

can anyone help with this?
trying to put an image that will be taken from a sensor and not from a specific URL.
I would like to update the image dynamically
I am using a generic camera entity and the following configuration but this does not work

camera:

  • platform: generic
    still_image_url: {{states(“sensor.songurl”)}}

searching the forum I understood that the entity should work with a template.
where am i wrong ? is there another way?

What does {{states("sensor.songurl")}} return?

Got it work? i would like to do the same with the steam sensor to display the picture of the game on my witch list that has a discount.
thanks

I use cameras with various URLs (weather, radio station album art)
The most difficult bit is to get the picture URL as it’ll probably involve a scrape sensor which has its limitations and isn’t the most intuitive to set up

It returned only a loading preview. :slight_smile:

I tried both variations from the youtube integration to display a video picture.

These are doesn’t work:

  • {{ state_attr(“sensor.beardedtinker”, “entity_picture”) }} – result: preview loading
  • {{ states.sensor.beardedtinker.attributes.entity_picture }} – broken image

Does anyone have another suggestion

1 Like