Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95419

Lovelace Picture Entity Card Templating

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>