Sorry, forgot to add my flow...
[{"id":"b2e04683.825318","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"e63245d0.e6cdc8","type":"tuya-smart-device","z":"b2e04683.825318","deviceName":"go sun one","disableAutoStart":true,"deviceId":"","deviceKey":"0a88020523XXXXXX","deviceIp":"192.168.0.59","retryTimeout":"10001","findTimeout":"10000","tuyaVersion":"3.1","eventMode":"event-both","x":690,"y":360,"wires":[["ff4bd686.53ae18"],["15d22ba6.824b84"]]},{"id":"c016131.e98faf","type":"function","z":"b2e04683.825318","name":"","func":"msg.payload ={\n //dps : 1,\n dps: 20,\n set : msg.payload\n}\n\n/*\n\n */\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":510,"y":360,"wires":[["e63245d0.e6cdc8"]]},{"id":"993c8470.01a278","type":"inject","z":"b2e04683.825318","name":"Turn On","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":310,"y":320,"wires":[["c016131.e98faf"]]},{"id":"6403cde.251ab34","type":"inject","z":"b2e04683.825318","name":"Turn Off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"bool","x":310,"y":400,"wires":[["c016131.e98faf"]]},{"id":"8f69fe68.9e4ce","type":"catch","z":"b2e04683.825318","name":"","scope":null,"uncaught":false,"x":640,"y":140,"wires":[["3764c769.6e1298"]]},{"id":"3764c769.6e1298","type":"debug","z":"b2e04683.825318","name":"On Error","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":870,"y":140,"wires":[]},{"id":"ff4bd686.53ae18","type":"debug","z":"b2e04683.825318","name":"Device Data","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":880,"y":300,"wires":[]},{"id":"15d22ba6.824b84","type":"debug","z":"b2e04683.825318","name":"Node State","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":400,"wires":[]},{"id":"47ea1d2a.7d85f4","type":"inject","z":"b2e04683.825318","name":"RECONNECT ACTION","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"operation\":\"CONTROL\",\"action\":\"RECONNECT\"}","payloadType":"json","x":330,"y":220,"wires":[["e63245d0.e6cdc8"]]},{"id":"1991e72.c15c719","type":"inject","z":"b2e04683.825318","name":"DISCONNECT ACTION","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"operation\":\"CONTROL\",\"action\":\"DISCONNECT\"}","payloadType":"json","x":330,"y":160,"wires":[["e63245d0.e6cdc8"]]}]