nitaybz / homebridge-switcher-platform

Homebridge plugin for Switcher Smart Accessories
MIT License
35 stars 9 forks source link

Occasionally I have to restart my switcher plugin - error seen in the log #55

Open idanhod-cyco opened 9 months ago

idanhod-cyco commented 9 months ago

A bit about my setup: I have about a dozen switcher switches. One for boiler and 6 windows blinds and 15 light switches. They are all connected to my HB with switcher plugin that worked very well for me.

Sometimes, after a long break (night), the automations break. a sensor triggers the light, and the lights are not turning on. Reseting the HB is the solusion. I noticed seeing some logs about errors - it correlates with the failed switch triggered.

Log: [1/15/2024, 10:03:45 AM] [Switcher Platform] Switcher Light_14C9 - Setting Light1 Power to ON [1/15/2024, 10:03:46 AM] [Switcher Platform] ERROR for Switcher Light_14C9 [1/15/2024, 10:03:46 AM] [Switcher Platform] Error: login failed due to an error: read ECONNRESET at Switcher._login3 (/usr/local/lib/node_modules/homebridge-switcher-platform/node_modules/switcher-js2/src/switcher.js:802:27) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Switcher._run_general_command (/usr/local/lib/node_modules/homebridge-switcher-platform/node_modules/switcher-js2/src/switcher.js:835:16) [1/15/2024, 10:06:06 AM] [Switcher Platform] Switcher Light_16D1 - Setting Light2 Power to OFF [1/15/2024, 10:06:06 AM] [Switcher Platform] Switcher Light_16D1 - Setting Light1 Power to OFF [1/15/2024, 10:06:06 AM] [Switcher Platform] ERROR for Switcher Light_16D1 [1/15/2024, 10:06:06 AM] [Switcher Platform] Error: login failed due to an error: read ECONNRESET at Switcher._login3 (/usr/local/lib/node_modules/homebridge-switcher-platform/node_modules/switcher-js2/src/switcher.js:802:27) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Switcher._run_general_command (/usr/local/lib/node_modules/homebridge-switcher-platform/node_modules/switcher-js2/src/switcher.js:835:16)