Picture-elements background image from template possible?

As per title, is it possible to set the background image from a template?
Example:

type: picture-elements
image: '{{ state_attr("media_player.living_room", "entity_picture") }}'
elements:
  ... etc

I’ve tried the above and variations to no avail. I’m not sure is it my syntax or if its just not possible…

trying to get the same but no success… anyone having success here?

@thundergreen
Don’t think that’s possible, but you can use a Generic Camera which has an image path that can be a template.
https://www.home-assistant.io/integrations/generic/