I have an “Entities” card with (among others) a switch entity.
The default behavior is that the associated icon is highlighted when the switch is on and not when it’s off.
If possible, I’d like to change that for that one single instance, so that it’s highlighted when the switch is off.
And additionally I would like to choose a custom colour for the highlighted state that is independent of the chosen Lovelace template.
In circumstances like this I have found using a template switch works.
I’ve also had to create my own icons using the MDI icons website. Unsure if there is a better or easier way, but this is the one that I found to at least be functional…
Thanks - I’m not sure though how this could help in my case.
From a functional point, “my” switch is fine. It’s “on” when it should be on and “off” when it should not.
I also already assigned a suitable icon via customize.yaml.
The thing is, that the normal state of the switch should be “on” while I would like the icon to be highlighted in red, when it is off (the switch turns on/off a motion sensor).
Of course, I could define a “counterpart” template switch that has an opposite state, but that’s a rather ugly solution (who wants an “Motion Sensor Off: ON” switch ) and it’s not that important to me.
I was hoping there was an easy way e.g. through some customize.yaml attributes.