Describe the bug
Most likely my setup is just wrong - I am having 2 templates and I want to have them both apply styles based on different things. However sometimes all the styles from one or the other or used, or I get different results based on template order, or if I use the id functionality to "merge" states. However I'm not sure how this applies to styles.
To Reproduce
I have a card based on a light entity
Describe the bug Most likely my setup is just wrong - I am having 2 templates and I want to have them both apply styles based on different things. However sometimes all the styles from one or the other or used, or I get different results based on template order, or if I use the
id
functionality to "merge" states. However I'm not sure how this applies to styles.To Reproduce I have a card based on a light entity
one template applies styles to different places on the card:
another JUST modifies the label
I'd like the red label template to overide just the template of the yellow one, however the yellow one takes precedence
Swapping order of the templates produces same result.
If i use same
id
on both, then: if the order isthe yellow is activated instead when the red one is activated, not based on "on".
If i swap order, it even affects not related cards
Expected behavior A way for all the yellow styles to apply, but me to override just one (label). Like this:
However, when the light is OFF - I want it to stay just red label.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Related Logs (can be found in the browser-console (F12)) Add related logs for the problem
Related Card Config Add the card config from
ui-lovelace.yaml
with the related problem