Logo

SA-P402A Power Strip

EU
SA-P402A

Available from:
Aliexpress.com



Manufacturer:
Alibaba.com

Flashed with:
Tuya-Convert

GPIO #Component
GPIO00 None
GPIO01 Button1
GPIO02 None
GPIO03 Led1i
GPIO04 Relay3
GPIO05 Relay5
GPIO09 Relay1
GPIO10 Relay4
GPIO12 Relay2
GPIO13 None
GPIO14 None
GPIO15 DHT11
GPIO16 None
FLAG Analog

Template

{"NAME":"SA-P402A","GPIO":[0,17,0,56,23,25,21,24,22,0,0,1,0],"FLAG":1,"BASE":18}

Converted with tuya-convert (OTA). The analog output number is the AC Voltage-200 (so 20 means 220V). The button controls single relay only. To switch other relays:

```console PowerOnState 3 Rule1 on Power1#boot do var1 %value% endon on Power1#state do var1 %value% endon on button1#state do event change=%var1% endon on event#change==0 do backlog POWER4 1; POWER3 1; POWER2 1; POWER1 1; POWER5 1 endon on event#change==1 do backlog POWER4 0; POWER3 0; POWER2 0; POWER1 0; POWER5 0 endon Rule1 1