I’m trying to use an LED (light.led1) to follow the state of a certain switch (switch.relay3) .
I can do this using two automations. One triggered by the switch coming on and setting the led on.
And a second one doing the inverse.
I do feel like this should be possible using only one automation, but i have no idea how.
It should basically monitor the change in state of the relay and set the led accordinly.
This would probably need templates? Well i’m no good at that so any help to start would be greatly appreciated!