I am slowly adding sonoffs to the lights in my house wired in the ceiling at the light fitting. Switched live turns on a relay the toggles gpio14 so light switches still work.
In the lounge I have a 2 way (UK) switch and 2 light fittings. I can add a sonoff at each light and this will worked with the switches.
What I want is home assistant to turn on both light at the same time.
Was thinking of an automation the detects 1 light bing turn on and turns on the other but likely there will be a delay between the 2 lights.
And other ideas on how this could be made to work with minimal delay between the 2 lights responding.
You could group the switches or create a script that turns on both. The group might be the better solution, then simply turn on the group.
I think you might mean a two gang switch, ie it has two switches, two way is what you have on hall/landing lights, one light with two single gang switches at different locations.
The delay is no more than any other method of doing it, ie virtually instant, so just pick a method your comfortable with.
Thanks for the feedback definitely a 2 way switch one at each end of the room (that said never use one of the switches)
You’re not making any sense now, can you describe exactly your set up? Draw a diagram of it helps.
If you have a 2-way switch it makes no sense that you would want to put a Sonoff in both???
Original circuit
with sonoff added
Hope this is now clearer.
I have now completed this setup and it works great.
set it up with each sonoff being controlled independently with a light switch and then added a boolean input which runs an automation to turn on both lights. Almost no delay between both lights turning on.
The switched live to each light drives a relay which in turn drives GPIO14 so the light switch still functions.