DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

feed a variable to the option image #100

Open guaro2k opened 3 years ago

guaro2k commented 3 years ago

I've tried a bunch of code to be able to feed 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

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

How do I do image: sensor.sonos_media????

DBuit commented 3 years ago

Not possible at the moment have to add code to make it work