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
43 stars 15 forks source link

Bi-Meter disconnects from node red #133

Open Eucliwood090 opened 8 months ago

Eucliwood090 commented 8 months ago

Hello, I use your plugin a lot for home management since node red it works great except on some device.

I have a device that allows me to know the consumption of the house or the reinjection of the panels. the problem is that this device displays disconnect it cannot reconnect to the node red flow, if I deactivate it and reactivate it in the node red flow it reconnects without problem. have you ever had the problem

balucio commented 8 months ago

Hi, I also have a similar problem, the tuya-smart-device module often lost the "connection" with a Tuya smart switch. The automatic re-connection process seems not working: when the connection is lost with the smart switch, no others attempts of re-connection appears to be done. In order to reconnect to the device I have to change something in the flow (simply the position of some node blocks) and the reapply the new configuration. After some seconds the connection is established.

Now I added a periodic event to force "RECONNECTION" with the device that every 30 mins sends:

{
    "operation": "CONTROL",
    "multiple": false,
    "action": "RECONNECT"
}

at the moment this seems to work.

Eucliwood090 commented 8 months ago

I will try thank you

msillano commented 7 months ago

For most critical cases (unattended server 24/7) I designed a watchdog with hardware restart.

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.