Hi,
I am struggling to use templates with the picture elements card. I would like to get the state of my thermostat and display it with a colour on a floorplan, but using templates are not working, does anyone have any other ideas on what would work.
From where did you get the idea that you can use Template under the " style" tag ?
I think you “mix up” features from some other card you have used, cards various “options” are not direct “applicable” to any other cards.
I don’t think you can use a template like this applied to i.e an Icon-element
However you can use card_mod, or a " card-template"
What you are trying to achieve is not that simple.
Picture-elements does not support templates.
Use card-mod to define a variable dynamically, then use this variable inside the native “style” option. Here.
An “image” element with card-mod-variables defining top, left and scale - and yet these attributes are set in the native “style” option)))
But - if need a repeated animation - then yes, card-mod only to define the animation. But initial position may be set by the native option.
What “nope”?
You made exactly what I described)
Btw, I made a similar UI which you posted - but only a system to fill tanks, open containers’ covers for missiles on a submarine - surely not in HA, html, css etc - it was a pure C in QNX ))).
in grid-layout 2 of 3 columns,on laptop, And mediaquery Yes , 1 column on phone, but both the Pic and the View is still under construction , just started 2 weeks ago