Logo

Moes SS01-1 3-Way Switch

US
Moes SS01-1 3-Way

Available from:
Amazon.com
Banggood.com


Manufacturer:
Moeshouse.com


GPIO #Component
GPIO00 User
GPIO01 User
GPIO02 User
GPIO03 User
GPIO04 Relay1
GPIO05 Led2i
GPIO09 None
GPIO10 None
GPIO12 Relay2i
GPIO13 Switch2
GPIO14 Switch1
GPIO15 User
GPIO16 User
FLAG None

Template

{"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

Optional: A long press rule can be added to the rule3 if needed for switch2#state=3 for a long press action.

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"