iantrich / config-template-card

📝 Templatable Lovelace Configurations
MIT License
434 stars 56 forks source link

Cannot automate element position #56

Closed lativl closed 3 years ago

lativl commented 3 years ago

Release with the issue: HA - 0.118.3

Browser and Operating System: Any

Description of problem:

I'm trying to implement dynamic repositioning of the element but it looks like templating doesn't work within style block. Can it be fixed or workarounded somehow?

Code example (hardcoded variable to simplify the case):

image

iantrich commented 3 years ago

that's because the style is not rendered by the card, you're likely using card-mod, in which case use the tempting specified in those docs