andreyoshev / node-red-contrib-miio-humidifier

3 stars 6 forks source link

NodeRed restarts cyclically due to humidifier unavailability #10

Open Ravexkgd opened 2 years ago

Ravexkgd commented 2 years ago

when the humidifier loses connection with the cloud service, it results in an error (log below) and NR reboot loop Log from NR: 9 Feb 03:52:22 - [warn] [miio-humidifier-server:humidifier_cb1] Miio humiditifier Error: Could not connect to device, handshake timeout 9 Feb 03:52:22 - [red] Uncaught Exception: 9 Feb 03:52:22 - [error] Error: Could not connect to device, handshake timeout at Timeout._onTimeout (/config/node-red/node_modules/miio/lib/network.js:427:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [03:52:26] INFO: Starting Node-RED...

start

lockheed commented 2 years ago

Exactly.

As soon as the Humidifier is unplugged from power, entire NodeRed stack goes down into a bootloop.

Here's the log: https://pastebin.com/raw/KVANLJZn

Second after plugging humidifier back on, NodeRed start normally and works.