dgreif / homebridge-hatch-baby-rest

A homebridge plugin for Hatch Baby Rest night light
MIT License
74 stars 19 forks source link

Not responding while Online #59

Open simplytoast1 opened 3 years ago

simplytoast1 commented 3 years ago

Since the latest update - my hatch devices (Rest+ & Restore) are ignoring (or not recieving) HB commands. A simple reboot of the Hb instance restores functionality.

Both devices have a static IP and for some reason in a rollback of a previous version of the plugin seems to maintain stability although 3.2.3 only updated dependancies.

dgreif commented 3 years ago

Can you try updating to the latest version again to verify that the latest version in fact caused it to break for you?

simplytoast1 commented 3 years ago

Ah it seems the issue persists now in the old and new version. I have both the Rest+ and Restore set with a static IP and no obvious issue in the logs. Will reboot with Debug mode on. A simple reboot of HB fixes the issue with no other changes. Odd.

simplytoast1 commented 3 years ago

I ran Homebridge in Debug mode and after about 24 hours of uptime my Hatch+ and Hatch restore no longer respond to HB commands.

I looked at the debug logs but it seems nothing useful is in there.

[8/29/2021, 10:28:05 PM] [homebridge-hatch-baby-rest] Turning off Restore [8/29/2021, 10:28:07 PM] [homebridge-hatch-baby-rest] Turning on first betime step for Restore

(My testing)

After a reboot of the HB service the Hatch devices are responding to commands.

FlipABit commented 3 years ago

I'm having the same issue. The logs seem to indicate the plugin is sending commands and there is no sign of errors, but the hatch doesn't not respond to the commands. Rebooting home bridge restores functionality for some amount of time, but then will stop responding again.

goobags commented 3 years ago

I am also having issues. Only new to homebridge and this is my first plug in. It worked initially then stopped responding after a few days. Since seeing the above comments I have restarted homebridge and the Rest+ is responding to commands and receiving manual state changes. I will monitor over the next few days to see if it loses connection again.

williamw commented 2 years ago

Same exact issue here. I have a Rest Mini and Rest+. After starting HomeBridge, 12-24 hours later the devices stop responding to commands from this plugin. Nothing in the logs. Simple reboot of HomeBridge resolves the problem for another 12-24 hours.

goobags commented 2 years ago

I monitored Homebridge over a day or so and it again lost connection to the Rest+. I have since uninstalled this plugin and rely on the Hatch app

dgreif commented 2 years ago

Hey all, sorry for not getting around to this sooner. I've been noticing this same issue over the past week or two and have been watching my logs closely to see if there are any errors I can go off of. Ultimately, I think I just need to refresh the connection with AWS every 8 hours or so to keep it fresh, and not count on an auth error to tell me to reconnect. I don't have time to get it fixed up today but will get something out as soon as I can. Thanks for your patience!

dgreif commented 2 years ago

Just released v3.2.4 which will automatically reconnect every 8 hours. I'll be keeping a close eye on it over the next few days, but hopefully this resolves the issue!

simplytoast1 commented 2 years ago

Seems to be working great here @dgreif ! Proud to be a supporter!

hsarji commented 2 years ago

In installed the plugin, added my login info, added the mac address for the baby rest, and can see the controls in Homebridge and the Home app. But the controls do nothing to the Baby Rest. I turn on the white noise and turn up the volume, but the actual Baby Rest is still off.

simplytoast1 commented 2 years ago

Hate to open this issue again, but it seems the token issue has been reoccurring for me. Same behavior. Simple restart of the plugin fixes it.

simplytoast1 commented 8 months ago

I have had this pop up in and out again, I think the issue is if there is ANY interruption to the AWS back end a new token is issued.

Perhaps we can move the refresh to hourly (or at least give the user to change the default). I think that would put this issue to bed (pun intended).

simplytoast1 commented 5 months ago

Following up on the token refresh interval being adjustable?