Treatlife 3 Way Switch SS01 SS02 Setup



TreatLife SS01 SS02 3 Way Switch

Tasmota Setup Commands (copy and paste each section to one line in the Tasmota Console)

template {"NAME":"Moes/Treat 3-Way","GPIO":[21,255,157,255,56,53,0,0,30,10,9,255,255],"FLAG":0,"BASE":18}

module 0

Console will Reboot. Wait for it.

backlog switchtopic 0 ; switchmode1 2 ; switchmode2 5 ; setoption32 7 ; setoption34 1 ; rule3 1

rule1 on event#ON do power2 TOGGLE endon

rule2 on event#OFF do power2 TOGGLE endon

(this is all one line below!)
rule3 on power1#boot do backlog ledpower1 %value% ; ledpower2 %value% endon on power1#state=1 do backlog rule1 0; rule2 1 ; ledpower1 %value% ; ledpower2 %value% endon on power1#state=0 do backlog rule1 1; rule2 0 ; ledpower1 %value% ; ledpower2 %value% endon on switch2#state=3 do publish stat/%topic%/switch long endon

Toggle the switch a couple times to activate the rules correctly.

Currently the Red LED is on while the light is off and the White LED is on while the lights is on.  If you want this reversed, go to Configuration, Configure Template and change Led1i to Led1, and Led2 to Led2i.  Click Save.

NOTE: You CANNOT use Auto Discovery with this switch at this time due to the split config.  Please use the configuration below.  Do not use the ON/OFF buttons in the Tasmota GUI to manually toggle the switch.  Issue an "event on" or "event off" on the Tasmota Console to toggle the switch.

Sample Home Assistant Config

- platform: mqtt
  name: "Hallway 3-Way"
  state_topic: "stat/MyHallWay/POWER1"
  command_topic: "cmnd/MyHallWay/EVENT"
  availability_topic: "tele/MyHallWay/LWT"
  payload_on: "ON"
  payload_off: "OFF"
  payload_available: "Online"
  payload_not_available: "Offline"


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

Internal Pictures



Comments