Tasmota 3-Way Switch: Dumb Switch Not updating HAOS Status

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.

‘’'mqtt:

  • switch:
    command_topic: “cmnd/switch.tasmota_6/POWER2”
    name: “Landing”
    icon: “mdi:lightbulb”
    state_topic: “stat/switch.tasmota_6/POWER1”
    state_off: “ON”
    state_on: “OFF”
    payload_on: “ON”
    payload_off: “OFF”
    availability_topic: “tele/switch.tasmota_6/LWT”
    payload_available: “Online”
    payload_not_available: “Offline”

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.

Any hope here before I burn down my HAOS server?

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.

1 Like

This helped get my Gosund SW6 working correctly!

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.