-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Invalid password" after some period #12
Comments
I'm currently resorting to a lame workaround - a systemd timer & service that just I'm going to double-check that it is the password auth that provokes the issue, and that it's not something more general related to some missing resource de-allocation. (I'm NOT using HTTPS btw) |
Okay, okay... Despite searching for anything similar, I didn't understand where the bug was originally so I didn't register the fact that the root-cause is already documented in both PR:s and Issues. Namely:
I will still opt to leave this issue open for now at least, let's see if @alexryd returns or whether the issue can be fixed by creation of new forks of both projects. |
Quite tangential topic, but in case anyone wants to replace what could be a crontab oneliner with a recurring # /etc/systemd/system/restart-shelly-ng.service
[Unit]
Description=Trigger a restart of the Homebridge Shelly-NG plugin
DefaultDependencies=no
[Service]
Type=oneshot
User=1000
# NOTE: this obviously requires you to create a child-bridge for said plugin in Homebridge first
ExecStart=pkill -f 'homebridge: homebridge-shelly-ng'
SuccessExitStatus=0 1
[Install]
WantedBy=multi-user.target # /etc/systemd/system/restart-shelly-ng.timer
[Unit]
Description=Trigger Homebridge Shelly NG plugin restart
[Timer]
#OnUnitActiveSec=29min
OnUnitActiveSec=55min
[Install]
WantedBy=timers.target sudo systemctl enable restart-shelly-ng.service
sudo systemctl enable restart-shelly-ng.timer
sudo systemctl start restart-shelly-ng.service |
I'm observing a consistent issue between my Homebridge and the two Shelly 1 PM that I have connected: it was all fine and dandy. I added password auth on the Shelly devices, and it still works, initially. What seems to happen with homebridge-shelly-ng though is that after a certain amount of time (haven't measured, but it seems to be about 60 mins) of idling, the accessories just stop working, and I see the following in the logs when I try and toggle their switches:
I immediately suspected some kind of underlying code-related issue (since I didn't change passwords either in Homebridge or on the devices) so I added rudimentary extra logging to the place where the message originates:
so I can only conclude that that far, it looks like we have the right password and we are still seeing a Digest challenge with new nonce and so on.
Restarting the plugin/child-bridge clears the problem, but only until next period.
The text was updated successfully, but these errors were encountered: