Kapok T16
Wall Outlet

Available from:
Amazon.com
Manufacturer:
Tiltech.cn
Flashed with:
Tuya-Convert
GPIO # | Component |
---|---|
GPIO00 | None |
GPIO01 | Led1i |
GPIO02 | None |
GPIO03 | Button1 |
GPIO04 | Switch1n |
GPIO05 | None |
GPIO09 | None |
GPIO10 | None |
GPIO12 | Relay1 |
GPIO13 | Relay2 |
GPIO14 | None |
GPIO15 | None |
GPIO16 | None |
FLAG | None |
Template
{"NAME":"tiltech-t16","GPIO":[0,56,0,17,82,0,0,0,21,22,0,0,0],"FLAG":0,"BASE":18}
Tuya-Convert might not be possible for this device if the manufacturer started using newest Tuya firmware since this template was published (2020-01-26).
There are 2 relays for the outlets and relay3i (blue light) and relay41 (yellow light) for the 2 led on the button.
Rule for on/off button press requires SUPPORT_IF_STATEMENT update
RULE1 ON BUTTON1#STATE=2 DO IF (var1!=1) POWER1 1; POWER2 1; VAR1 1 ELSE POWER1 0; POWER2 0; VAR1 0 ENDIF ENDON