Hi, you suggestions to others where of great help to me.
I’ve tried a bunch of code to be able to feed to the option image a variable instead of a url path
its supposed to be be like this:
image: "image/path"
I have a template variable that saves the changing url for the media for Sonos
also I can get the url from media_player.living_room.attributes.entity_picture
sensor.sonos_media
with a state :
/api/media_player_proxy/media_player.living_room?token=1124256fa1cae8e1be0c476c2ce881aaf523ff4cfeaba2b1866759033a944f8b&cache=d05f973fec3e2c7b
The token changes every time there is a new image cover
-I have an entity called media_player.living_room_2
-One of its attributes is entity_picture
-The content of that attribute is a url with a token that changes depending on the art cover
This works all fine and dandy in the media-control type card, because it pulls the url on its own. But im setting up another Lovelace with HomeKit styled cards an the code goes as follows:
I’ve also passed it the way I’ve stated and the way you have stated (the correct way), I’ve ALSO tried to pass the sensor “sensor.sonos_media” that has the url
like this
image: {{ states('sensor.sonos_media') }}
I get
image:
'[object Object]': null
but it can’t be null because im seeing its value right nou in developer tools!
This is the card:
And when I get long press to go to the more info pop up, the image I want is there!!! OMG and can’t get it out!!!
Ok I don’t know if this plays a role in the behavior im seeing, but all of this is wrapped in a fullscreen card add-on called home kit that makes rows and columns so I can organize mi view like so: