EU

WF-CS01 Curtain Switch

Available from:
Aliexpress.com
Aliexpress.com

Template

{"NAME":"Tuya Shutter","GPIO":[157,0,54,10,22,19,0,0,17,21,53,23,52],"FLAG":0,"BASE":18}

Added a rule to get it working properly:

Rule1 on Power1#State=1 do backlog Power3 0; Power2 0 endon
      on Power2#State=1 do backlog Power1 0; Power2 0; Power3 0 endon
      on Power3#State=1 do backlog Power1 0; Power2 0 endon
Rule1 1

This combines to: Rule1 on Power1#State=1 do backlog Power3 0; Power2 0 endon on Power2#State=1 do backlog Power1 0; Power2 0; Power3 0 endon on Power3#State=1 do backlog Power1 0; Power2 0 endon

Added some commands too:

SetOption1 1   # restrict button-multipress to single, double and hold actions
PulseTime1 145 # set relay 1 activation to 45 seconds (+100 for 1sec interval)
PulseTime2 1   # deactivate button 2 immediately after activation (disables relays)
Pulsetime3 145 # set relay 3 activation 45 seconds (+100 for 1sec interval)
PowerOnState 0 # keep relay(s) OFF after power up
PowerRetain 0  # Don't retain states

This combines to: Backlog SetOption1 1; PulseTime1 145; PulseTime2 1; Pulsetime3 145; PowerOnState 0; PowerRetain 0