vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
47 stars 15 forks source link

Error in tuyapi #143

Open minscof opened 6 months ago

minscof commented 6 months ago

I have 4 tuya bulbs.

When I active theses bulbs, nodered fails and stops.

I have this message in the log :

[error] TypeError: Cannot read properties of undefined (reading 'payload') 2024-03-23T17:14:38.587789678Z at Socket. (/data/node_modules/tuyapi/index.js:985:30) 2024-03-23T17:14:38.587806419Z at Socket.emit (node:events:513:28) 2024-03-23T17:14:38.587819678Z at UDP.onMessage [as onmessage] (node:dgram:930:8)

I use the version 5.2 of the node.

Can you help ? Thank you