iRayanKhan / homebridge-chamberlain

A Homebridge plugin for Chamberlain garage door openers with MyQ.
75 stars 36 forks source link

Wrong status if button pressed while opening in progress #99

Closed dxdc closed 4 years ago

dxdc commented 4 years ago

Explain the issue occuring:

If the button is pressed while the garage is "opening", it immediately reverts to "closed" although the garage will ultimately be open.

Expected Result

Info

iOS Version: 13.4 Plugin Version: 1.6.0 HomeBridge Version: 1.1.0 Node/Npm Version: 10/6

Log Output:

[5/18/2020, 10:56:35 AM] [Garage Door] Initializing Chamberlain accessory...
[5/18/2020, 10:57:37 AM] [Garage Door] desireddoorstate changed from closed to open
[5/18/2020, 10:57:39 AM] [Garage Door] desireddoorstate changed from open to closed <--- this is the problem
[5/18/2020, 10:57:57 AM] [Garage Door] desireddoorstate changed from closed to open
[5/18/2020, 10:57:57 AM] [Garage Door] doorstate changed from closed to open
[5/18/2020, 10:57:59 AM] [Garage Door] desireddoorstate changed from open to closed
[5/18/2020, 10:58:21 AM] [Garage Door] doorstate changed from open to closed
iRayanKhan commented 4 years ago

I could try to mitigate this where it will compare actual door state to desired door state. In the comment I left in the PR, I wonder if adding those new states could fix it?

iRayanKhan commented 4 years ago

Rc3 has been published. closing.