alexryd / homebridge-shelly-ng

Homebridge plugin for the next generation of Shelly devices
GNU General Public License v3.0
122 stars 45 forks source link

Invalid password after some time #116

Open Conpueru opened 7 months ago

Conpueru commented 7 months ago

I'm using Homebridge on Raspbian GNU/Linux Buster (10) on my Raspberry Pi 4B with 4GB RAM, version of Node.js is 18.19.0. In this plugin I have 4 Shelly Plus 1 PM and 1 Shelly Plus 2PM. Every Shelly has the same password (which is not changing, see below).

After install and first configuration everything was OK unfortunately the next day controlling of devices didn't work. After reseting Homebridge controlling was OK again. But some hours later the problem was back – controlling of devices didn't work until next HB restart. When I'm trying to control anything, in log there is message "Failed to set switch: Invalid password".

Showing the state in Homebridge and in Apple Home is working great, only switching it (with AH and HB) don't work.

apartmedia commented 7 months ago

This is an already known issue in node-shellies-ng… See https://github.com/alexryd/homebridge-shelly-ng/issues/37 https://github.com/alexryd/homebridge-shelly-ng/issues/53 https://github.com/alexryd/homebridge-shelly-ng/issues/59

There is a fixing PR from wagnerand but it‘s not merged yet (see https://github.com/alexryd/node-shellies-ng/pull/3/files).

Anyway, User cubi1337 commented last week that he added the Fix into his own fork homebridge-shelly-ds9. See… https://github.com/cubi1337/homebridge-shelly-ds9 So you might need to switch to his Repo if you need to use Authentication enabled in your NG Shellies and an immediate fix.