knuckleheadsmiff / homebridge-garagedoor-ryobi

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

Setting odd “opening” state in home app #24

Closed knuckleheadsmiff closed 3 years ago

knuckleheadsmiff commented 3 years ago

@andyedinborough

I noticed this behavior and I can’t see an obvious error in the code but hope you have an idea. When I close my garage door not using homekit but with my car remote I’ll often see in the home app the state change from open to opening and then eventually to close!?! It’s odd and when it says opening it was already in the closed state for a long 30-90 seconds.

The only difference that I logically see from original code is the right side of the ?? In getState() but that path should never really be taken unless we got an error in getStatus.

Do you ever see this?

I use to never see see this behavior (at least before the restructuring) but I can’t say when in started.

knuckleheadsmiff commented 3 years ago

I’m going to close this. I don’t think it is the plug-in. Seems to work fine now.