You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 is
- red_climate_problem_on
- yellow_device_on
the 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
paste the yaml code here
The text was updated successfully, but these errors were encountered:
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
![image](https://private-user-images.githubusercontent.com/19420884/303174246-b39ce900-ff63-4fbf-a4db-4b7942a9007b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDc2MDcsIm5iZiI6MTczOTE0NzMwNywicGF0aCI6Ii8xOTQyMDg4NC8zMDMxNzQyNDYtYjM5Y2U5MDAtZmY2My00ZmJmLWE0ZGItNGI3OTQyYTkwMDdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAwMjgyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmNWY2OGJjYmZjNDQ5Y2Q2ZTQ1YzczZmU5YjFhNWJkOGY5ZjMxOTUyMzg4NTIwYmU4MGIwMGJmNmMwMzYyYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iwHDL75cTGV5bbGdzKhmLW1q0qJ3fFtGVDpMxiQyMqY)
Swapping order of the templates produces same result.
If i use same
id
on both, then:if the order is
the yellow is activated instead when the red one is activated, not based on "on".
![image](https://private-user-images.githubusercontent.com/19420884/303174670-e034fda3-519a-4a48-af3f-aa5a4b5a68f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDc2MDcsIm5iZiI6MTczOTE0NzMwNywicGF0aCI6Ii8xOTQyMDg4NC8zMDMxNzQ2NzAtZTAzNGZkYTMtNTE5YS00YTQ4LWFmM2YtYWE1YTRiNWE2OGYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAwMjgyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3ZTIwMDk1NzU0ZTJjN2RiNTY1OTFmNzJjZGE5NmE4YjJiOGMyMWJiMzYyYjkxYzMxNjQ3ZmMyYjAxNDJmZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SCTNqdZAV4qaqSxddu_VB70xLqe2eaz_AjOmU8RqyoM)
If i swap order, it even affects not related cards
![image](https://private-user-images.githubusercontent.com/19420884/303174849-248bd36b-ad0a-452d-b960-5ecd4aa7ad96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDc2MDcsIm5iZiI6MTczOTE0NzMwNywicGF0aCI6Ii8xOTQyMDg4NC8zMDMxNzQ4NDktMjQ4YmQzNmItYWQwYS00NTJkLWI5NjAtNWVjZDRhYTdhZDk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAwMjgyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiZjliZjEwMTc1NGQ2YTI1YjVkZWM1NTkwMGRhOGU2NWVhZmYzOTdhODhlOWYyNzUzYjE4M2IwOTIzOWQ5MGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6P2vj7YTZDJBeCT2t4IEPWon74QhvSahigjmnc2kQ8Q)
Expected behavior
![image](https://private-user-images.githubusercontent.com/19420884/303174997-171bbc3c-0139-480c-ad1c-0223fc545128.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDc2MDcsIm5iZiI6MTczOTE0NzMwNywicGF0aCI6Ii8xOTQyMDg4NC8zMDMxNzQ5OTctMTcxYmJjM2MtMDEzOS00ODBjLWFkMWMtMDIyM2ZjNTQ1MTI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAwMjgyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4MTYwY2NhNDI4NTM4MjdlMzc1YTZjZjAyYjk3MmIzYzk4NTU0N2Q3ZjFkY2FkZTMyMmMwMTlkYTQzOTE5ZDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zyBWWvSX_7x53k8IiAZvooE1oVO--3yGav_AQoVci5M)
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 problempaste the yaml code here
The text was updated successfully, but these errors were encountered: