Teepao Curtain Switch


Available from:

GPIO #Component
GPIO00 User
GPIO01 User
GPIO02 User
GPIO03 Button2
GPIO04 Relay2
GPIO05 Button3
GPIO09 None
GPIO10 None
GPIO12 User
GPIO13 Relay1
GPIO14 User
GPIO15 User
GPIO16 Button1
FLAG Analog


interlock 1 2 3
PulseTime1 130
PulseTime2 130
PulseTime3 1

I obtain a perfect result with below configuration (tested and approved on 5 Teepao!) :

  • Top button blink blue when recevied an order
  • Bottom or Top button light red during movement, and stop immediatly when the position is reached.
  • Stop button is working perfectly (blink red when pressed). Based on :
  • Program Version stb-1.16(sonoff)
  • Build Date & Time 2019-10-09T07:26:57 ```console template: ‘{“NAME”:”Teepao”,”GPIO”:[158,58,23,18,22,19,0,0,56,21,57,0,17],”FLAG”:0,”BASE”:18}’

interlock on interlock 1,2,3 PulseTime1 0 PulseTime2 0 PulseTime3 1 sleep 0 setoption80 1 setoption81 1 PowerOnState 0 SetOption1 1 ButtonTopic 1 switchmode3 5 setoption61 1 => Restart the device !

Don't forget to configure durations !

Usually open duration is one or two seconds more than close (adjust as you need).
For exemple :
shutteropenduration 22
shuttercloseduration 20