aschzero / homebridge-airmega

Homebridge plugin for the Coway Airmega air purifier.
34 stars 19 forks source link

handling wifi button press #3

Closed ohmantics closed 5 years ago

ohmantics commented 5 years ago

My 2 year old has taken to pressing the wifi button, which takes it offline. Pressing the button to go back online doesn't necessarily bring it back online in HomeKit. I found the following in the log:

Nov 30 16:03:58 ha homebridge[11276]: [2018-11-30 16:03:58] [Airmega] [ERROR] Unable to update purifier status. TypeError: Cannot read property 'power' of undefined Nov 30 16:03:58 ha homebridge[11276]: [2018-11-30 16:03:58] [Airmega] [ERROR] Unable to get active state. TypeError: Cannot read property 'power' of undefined

aschzero commented 5 years ago

Hi @ohmantics thanks for letting me know about this! I was able to identify the issue that caused the plugin to not be able to recover after a failed status update and just released an update (v3.1.6) to fix this. Please update when you can and let me know if the issue has been resolved. Thanks!

aschzero commented 5 years ago

Closing this issue, please re-open if needed.