True 3-Way Smart Switch w/ Tasmota - No rewiring!

It's here!  A smart switch that works in several different 3 way wiring configurations without any rewiring or other tricks.  Swapping out one of the 3 way switches with this one is the only requirement.  This video also shows the details of using with Tasmota for local MQTT control with Home Assistant.

Moes 3-Way Smart Switch

Additional Parts for Flashing Tasmota if Needed
Soldering Iron Station
Helping Hands(as shown)
Alternative Upgraded Helping Hands
0.015 Solder
Female Jumper Wires
USB FTDI for Flashing

Amazon US Link

Tasmota Backlog Commands

backlog ssid1 NetWorkName;password1 MyPassword

Updated with templates for the new Tasmota - 
{"NAME":"Moes 3-Way","GPIO":[255,255,255,255,21,57,0,0,30,10,9,255,255],"FLAG":0,"BASE":18}

To control the switch via MQTT you will need to monitor the Power1 state and send an ON/OFF as an event command.
If the light is backwards toggle the Power1 relay once on the Tasmota GUI to follow the light correctly. Power1 state should then follow the “light on” sensor after this.

rule1 on event#ON do power2 TOGGLE endon
rule2 on event#OFF do power2 TOGGLE endon
rule3 on power1#state=1 do backlog rule1 0; rule2 1 endon on power1#state=0 do backlog rule1 1; rule2 0 endon on switch2#state=3 do publish Moes3Way/Action Long endon
rule3 1
switchtopic 0
switchmode1 2
switchmode2 5
setoption32 7

Sample Home Assistant Config

- platform: mqtt
  name: "SW-HallWay"
  state_topic: "stat/SW-HallWay/POWER1"
  command_topic: "cmnd/SW-HallWay/EVENT"
  availability_topic: "tele/SW-HallWay/LWT"
  qos: 0
  payload_on: "ON"
  payload_off: "OFF"
  payload_available: "Online"
  payload_not_available: "Offline"
  retain: false

Take note of the slightly different command topic with the EVENT command.

Additional Links
Excellent guide with various 3 way wiring configurations
Tasmota Releases
Flash ESP8266
Termite Terminal App

Internal Pictures


  1. I followed this to a tee twice with 2 separate switches with the same results. The three way switch works turning off the light from the Moes switch or the dumb switch. I can control it from the HA front end. However, no matter how i turn the light off, from HA or either switch, the stat topic POWER1 toggles on and off repeatedly.
    16:23:40 MQT: stat/Mudroom/RESULT = {"POWER1":"OFF"}
    16:23:40 MQT: stat/Mudroom/POWER1 = OFF
    16:23:40 MQT: stat/Mudroom/RESULT = {"POWER1":"ON"}
    16:23:40 MQT: stat/Mudroom/POWER1 = ON
    16:23:41 MQT: stat/Mudroom/RESULT = {"POWER1":"OFF"}
    16:23:41 MQT: stat/Mudroom/POWER1 = OFF
    16:23:42 MQT: stat/Mudroom/RESULT = {"POWER1":"ON"}
    16:23:42 MQT: stat/Mudroom/POWER1 = ON
    16:23:43 MQT: stat/Mudroom/RESULT = {"POWER1":"OFF"}
    16:23:43 MQT: stat/Mudroom/POWER1 = OFF
    16:23:43 MQT: stat/Mudroom/RESULT = {"POWER1":"ON"}
    16:23:43 MQT: stat/Mudroom/POWER1 = ON
    16:23:44 MQT: stat/Mudroom/RESULT = {"POWER1":"OFF"}
    16:23:44 MQT: stat/Mudroom/POWER1 = OFF
    16:23:45 MQT: stat/Mudroom/RESULT = {"POWER1":"ON"}
    16:23:45 MQT: stat/Mudroom/POWER1 = ON
    16:23:45 MQT: stat/Mudroom/RESULT = {"POWER1":"OFF"}
    16:23:45 MQT: stat/Mudroom/POWER1 = OFF

    Any ideas would be greatly appreciated.
    BTW I love your work and Vids. You are the reason I switched to HA from TUYA. But I am struggling a little.

  2. I bought 4 of these moes switches. There is something wrong with them. I thought it was the flash of Tasmota, but it's not. I just hooked up a new on with stock firmware on it and connected it to the smart life app and it reacts the same way. taht is my post abve BTW.


  3. Hello , in 7.1.2 the toggle 1 is reversed, when light is ON on toggle 2 the toggle 1 shows OFF.

    Would you be able to advise how to fix it?

    1. Fixed with the commands from template repository. Thank you


Post a Comment

Popular posts from this blog

Tuya Convert 2.3 Update | Flash Tuya Smartlife Devices | No Soldering! | Remove the cloud | Custom Firmware

Tuya Convert 2 - Flash Tuya Smartlife Devices - No Soldering - Remove the cloud with Tasmota ESPHome

Smart Laundry Notifications with a Sonoff S31 & Home Assistant