I flashed a Gosund SW6 3-Way switch with Tasmota. The other switch is a dumb switch. When I used it with the native app, it worked perfectly.
The switch will update states when using either the smart switch or the HAOS GUI. However, when I use the dumb switch, the bulb it controls will turn on or off, but HAOS does not reflect any change.
The SW6 Tasmota template defines 3 relays: Relay 1 being a dummy storing the actual state of the circuit, Relay 2 being the actual switch and Relay 3 being dependent on Relay 1. HAOS does see relay 1 and change itâs state consistently even when using the dumb switch. However, changing relay 1 does not change the actual status of the circuit, only the led indicator bulb on the smart switch.
I have attempted to modify the Tasmota template, adding the below code to the configuration file and several other things to no avail.
All other threads are older and the code structure has apparently changed. I had to read through the MQTT section but am still lost. For example, finding the correct syntax for the âcommand_topicâ has been a PITA as the HAOS page is a bit vague for a newbie like me.
On the off chance an SW6 plug is flashed by more than 2 of us in the Home Assistant Universe, I solved this. The Tazmotized SW6 will have: Relay 1, Relay 2, Switch 1, Switch 2 and Switch 3. Your Home Assistant will show 3 entities for the one SW6 device, these are: Switch 1, 2 and 3.
Details about the Relays, templates, switched and rules here:
In my case, it seems that when flashing my switches, âRule 2â was not turned on. It was coded into the switch, just in an âOFFâ status.
To turn it on, go to the IP address of your Tasmota switch and select the âconsoleâ button. In the âEnter Commandâ field, write the following code:
''Rule2 1"
That will turn on rule 2 for the Tasmotized SW6. Rule 2 makes sure that Switch 1 and Switch 3 are in sync. Why does this matter? Switch 1 is extremely important when you wire the smart SW6 to a dumb switch. Switch 1 is what tells the SW6 device the status of the circuit, i.e. âONâ or âOFFâ. It is the only Switch that the dumb switch can âtoggleâ; at least indirectly.
With that out if the way, go to your Home Assistant dashboard and add your SW6 but make sure you select Switch 3 as the entity to control. If your power setting is swapped, meaning when you toggle âONâ the light is âOFFâ and vice-versa, go back to the Tasmota console and change the SwitchMode by entering the following code:
SwitchMode1 2
This effectively reverses the switch status to match whatâs in Home Assistant.
And thatâs it. Your 3-way switch woes should be over.
Were you able to find a reset button on this switch? Mine sometimes drops off the WiF network and it would be great to not have to power the cycle the circuit at the breaker to get it back online.