3 Way Switch

I have two Sonoff devices that turn power on/off for a motor. One does up and the other does down.

I’m trying to configure a toggle type of switch that will have an off mode for both and an on for each. I’m also trying to failsafe this so that if one turns on, the other turns off to prevent anytype of overloading.

I read some stuff where people create templates and triggers but this syntax is a little new to me and was looking for some help.

I’ve managed to do the basics of setting them up as a switch but not sure where to go from here.

I’m not sure I follow, how many toggles are you looking at?
Do you mean when you turn one of the toggles off, both sonoff turn off?
What happens when you turn only 1 on?

We are trying to run a linear actuator. Basically to raise and lower a door. It’s powered by DC voltage. One polarity pushes the actuator out, the other pulls it in. So I have one Sonoff SV turning on to push the motor in one direction, and then another sonoff turns on to push it in the other direction. (both are running Tasmota).
To reverse the current, we have a dual pole, dual throw relay.
The issue is that we don’t want both sonoff’s on at the same time. If both are ON, then the relay will receive voltage and likely fry something (relay or sonoff).
So the toggle is “virtual” within the automation script.
Make sense?

If you want to be assured that the motor in no way can be actuated in both directions simultaneously you need a Sonoff 4ch Pro with SPDT relays. With that you can wire the contact in a way that the combination of both wires energized is never allowed.

Check this post from @reefab for some inspiration. The wiring is different (the Velux needed to invert polarity to go up and down) but the scenario is similar.

namadori,
From what I’m seeing, the Sonoff 4ch Pro is a 120V AC unit, but my actuator is 12V DC.
Am I correct?

Edit:
I see now that the version you reference is DC. Thanks for pointing that out.

The Pro is really versatile as it can be powered by mains voltage or dc 5-24V, and has relay output independent from its power so you can switch any voltage. Afaik is the only Sonoff with spdt relays.

Not 100% sure what you’re doing but you can certainly set one Sonoff up with direct control so when you turn it on it does one of your functions, then set an automation based on the state of that Sonoff and set the trigger to be the opposite of the first one.

You can also set this up to work the old fashioned way with a simple on/off switch on the first Sonoff and HA will make sure the other follows suit.

I took your advice and got the Sonoff 4 Chan Pro R2. It does indeed work well, without having to chain together different devices to accomplish the same thing. However, I’m not seeing if it can be flashed with Tasmota. Do you know by chance? And if it does, would I lose the function that I have now of being able to reverse polarity?

Yes, the 4CH pro is supported in Tasmota. see https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-4CH-and-4CH-Pro . I didn’t know there was an “R2” available.

What do you mean by “being able to reverse polarity”?