Hello everyone !
I have a fairly simple need but I can’t find the answer so I’ll give it a go.
I have an input-select (let’s call it “A”) with “AUTO”, “ON”, “OFF” options
A is used in some automations to switch a plug (let’s call it “P”).
If A=ON my switch is turned on, if A=OFF, my switch is turned off, and if A=AUTO, my switch goes on or off depending of my solar input.
What I’m trying to do is to switch my input_select icon on or off based on the switch state. For instance if A = Auto and my switch is on, the icon will be yellow, and if the switch is off, the icon will be blue.
How can I do that ?
Thank you for your help !