Sometimes you have single light but multiple switches. Lets say upstairs and downstairs. How to solve the situation where you use 2, 3 or more switches for single light? HA should compute status of all of them and decide if this = ON or OFF.
Anybody? This must be really hard.
if the sonoff is publishing to MQTT then you’d know if it’s on or off.
now that i think about it more, i would automate it. if switch A flipped on, then have it switch B to on as well. and if B is flipped off, then have it set A off as well.
That will work if the physical switch is linked to HA and not to the light. Is there a way for a sonoff switch to relay what state the physical switch is on?
Yes. Sonoff reports its state back.