AtomikWiWa
(Atomik WiWa)
1
Hello,
I have a sensor with an attribute that is an image url:
image: >-
https://url.com/changing_url.png
i would like to put in lovelace in large size inside a picture-entity, picture, picture-elements or picture-glance.
Is there any way to do this?
I can get the url of the sensor with the code:
{{ states.sensor.sensorname.attributes.data.image }}
but I can’t get this code to work with lovelace’s picture-elements.
Thank you for helping.
1 Like
AtomikWiWa
(Atomik WiWa)
2
I went back to read some posts about this and I finally managed to do it, I didn’t know that you could use variables in a Markdown card.
That simple resulted in a Markdown card:
![image]({{ states.sensor.sensorname.attributes.data.image }})
I leave the example in case someone else needs it. Thanks.
5 Likes
deadxd
(Cesar Augusto)
3
Thanks so much for the feedback, help me a lot ! <3
1 Like
BambamNZ
(David)
4
Thank you, been looking allover how to display a hosted image (thumbnail) from an Entity attribute.
1 Like