Closed RJ-Make closed 10 months ago
Hi @RJ-Make you can now use templates in the image
field of the card.
You can use jinja templates (like the one in your example) and also javascript templates, I think this last ones are better :)
Publishing new version now.
Oh VERY nice, working almost perfectly... except one (pretty big) issue.
The card is for forcing a rapid page refresh, making it almost impossible to navigate to the card on the page?
I'll try the javascript example are report back.
Thanks you for all your hard work. This one feature makes this card a must-have for me.
So I tried the JavaScript example and the 'problem' persists.
Not sure If I'm able to reproduce the error. Are you using the exact config you posted above?
I'm trying the card in my production environment and not suffering any "page refresh", could you describe this a little more into detail?
Also, could you check how often is the sensor.mqtt_12345_blueiris_front_lower_cam_image_path
sensor updating? Maybe update frequency is too high.
Ok, forget about that, using a input_text helper in the template gives me the flickering/refresh efect.
I'll have a look into it.
It was a stupid mistake that made the card update any time the hass object changed. This is, every time any sensor in HA is changed (!!!)
I think it's already fixed, please, try it and let me know.
I just published v0.2.0 and removed v0.1.2, it was a mistake in version numbers.
That fixed it, Thank you!
Happy New Year!
Thank you for your source image card. How can I use a picture name stored in an Entity?
The picture name is stored in:
sensor.mqtt_12345_blueiris_front_lower_cam_image_path
This works
This does not work