Gosund SP112 energy monitoring smart plugs

Hi, I have bought some Gosund SP112 enegy monitoring plugs and want to control them via the node red tuya-smart-device-node. I have spent a few days searching the web but no matter what I try I cant get them to simply turn on or turn off !!. I do have the correct device IDs etc and I can get the nodes to connect to the Gosund SP112 but whatever I try on/off they return an error: Timeout waiting for status response from device id: bf5bb5cc385d39XXXXXX.

Has anyone managed to get these plugs to work from the tuya-smart-device-node as I would like to see how it is achieved. Many Thanks...

8/22/2022, 9:52:21 AMnode: On Errormsg : Object

object

context: object

message: "Timeout waiting for status response from device id: bf5bb5cc385d390XXXXXX"

deviceVirtualId: ""

deviceIp: "192.168.0.59"

deviceKey: "0a88020523XXXXXX"

error: object

message: "Timeout waiting for status response from device id: bf5bb5cc385d390XXXXXX"

source: object

id: "e63245d0.e6cdc8"

type: "tuya-smart-device"

name: "go sun one"

count: 1

_msgid: "6d75ec98.cf7574"

8/22/2022, 9:52:21 AMnode: Node Statemsg.payload : Object

{ state: "ERROR" }

8/22/2022, 9:52:31 AMnode: Node Statemsg.payload : Object

{ state: "CONNECTED" }

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"]]}]