knuckleheadsmiff / homebridge-garagedoor-ryobi

Homebridge plugin for Ryobi GDO (Garage Door Opener)
4 stars 4 forks source link

Log Error - UnhandledPromiseRejectionWarning #18

Closed fatkid98 closed 3 years ago

fatkid98 commented 3 years ago

Since the 0.3.2 update, I'm getting an UnhandledPromiseRejectionWarning. I can uninstall the plugin and reinstall it and it'll work fora little bit, but then goes back to the error. Attached is a screenshot of the log. I am running the plugin using Hoobs on a RPi.

Screen Shot 2021-04-24 at 1 43 44 PM
knuckleheadsmiff commented 3 years ago

I see it too although things still seem to work. I’ll forward to Andy to look into.

62F10A3A-7806-4E79-BA22-C55B643369A2

fatkid98 commented 3 years ago

What I have noticed is that whatever state the door was in (open or closed) when the error shows up will continue to show that way in HomeKit, even if the door is in a different state.

knuckleheadsmiff commented 3 years ago

Yup, it seems as the code that polls the current state every 90 seconds is not kicked off again when the error happens. It will be looked into. Thanks.

andyedinborough commented 3 years ago

I've got a fix nearly ready. Just adding some unit tests.