@jimpower wrote:
Hi there,
I am trying to template the state based images of a picture entity card in order to show a dynamic “now playing” image. Can’t seem to get this to work so not sure templating is allowed where I’m trying to use it.
- aspect_ratio: 50% entity: sensor.now_playing show_name: false show_state: false state_image: "Unknown": /local/lovelace/downstairs/Media_5.jpg "kodi_playing": http://x.x.x.x:8123{{states.media_player.media_4k_kodi.attributes.entity_picture}} "android_playing": http://x.x.x.x:8123{{states.media_player.android_tv.attributes.entity_picture}} "spotify_playing": http://x.x.x.x:8123{{states.media_player.spotify_james_tina.attributes.entity_picture}} style: | ha-card { padding: 10px; } type: picture-entity
Posts: 1
Participants: 1