I currently have a setup where a relay is connected to a remote that controls my lights. The on and off command to control the relay are the same as it is “pressing” the same button on the remote. As you can see this causes problems. In an automation for example, if the lights are already off home assistant reruns the off command and my lights actually turn on when home assistant thinks that they are still off. I was wondering if there is any way to bypass this issue or to make home assistant not rerun the command.
Hass would need to get the status of the switch, if it can’t it wouldn’t know what position the switch is in.
How would I go about doing that