Kapok T16 Wall Outlet
Configuration (old version)
Tuya-Convert might not be possible for this device since the template was added (2020-01-26). All new Tuya devices have firmware preventing flash but it is still possible to Tuya-Convert old stock devices without connecting them to the Tuya app.
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