Closed SanderH030 closed 10 months ago
Found it:
style: |
:host {
--icon-color: rgba(255, 255, 255, 1) !important; /* White color */
}
If you want to do it based on state you can also do this @sanderhoeppermans
style: |
:host {
--icon-color: {% if is_state('light.main_floor', 'on') %}rgba(255, 0, 0, 1){% else %}rgba(255, 255, 255, 1){% endif %} !important;
}
Is there a way to change the color or the icon? Haven't found it yet.
I was trying to make it red (see code), unfortunately without any result.
Code: