-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for icon_color #325
Comments
Like which cards particularly?
card-mod. |
For example "mushroom-template-card" directly supports changing icon_color. Do you happen to have an example for how to do the above with card-mod? I've tried for half an hour but without success :( |
Unfortunately, this is the only example.
Suggest to ask all card-mod related questions in the dedicated card-mod Community thread. |
I've just finished successfully using card_mod to change the icon for the primary entity in multiple-entity-row without having the secondary entities icon(s) change as well.
Before I achieved that, I was trying:
but that was changing the icon for all entities in the row. @andreas-bulling
My version of the code works for the color of the primary entity icon.
|
Thanks a lot for the detailed answer and suggestion. Unfortunately it still doesn't work for some reason. I tried a basic example on a different card and this worked. So card-mod is working in principle. But for some reason I can't modify the multiple-entity-row |
I've since modified my card_mod: style: to
Can you post your problem code for the multiple-entity-row so I can check? |
There is a dedicated card mod community thread. |
Daniel, glad that you sorted out your issue in the config-template-card repo, but your examples with colored main icon are rather specific and may not be applied for all cases. In fact , your example is not optimal. |
It currently doesn't seem to be possible to customize the icon color(s) similar to other entity cards, e.g. depending on the state of a sensor:
icon_color: >- {{ is_state('binary_sensor.garage_1_reed', 'off') | iif('green', 'red') }}
The text was updated successfully, but these errors were encountered: