mylesagray / homebridge-blueair

BlueAir air purifier plugin for homebridge
Apache License 2.0
39 stars 20 forks source link

classic 405 switching on/off keeps pending #17

Closed paqpaqpaq closed 5 years ago

paqpaqpaq commented 5 years ago

When a 405 is switched on or off, the switching bit keeps on pending. when I close and reopen home app, it is actually on or off.

when I switch off ::

[2018-12-3 18:35:30] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attribute/fanspeed/ { currentValue: 0,
  scope: 'device',
  defaultValue: 0,
  name: 'fan_speed',
  uuid: 'id' }

And then nothing happens. The device keeps on pending stating it is switching off. As soon as I reopen home

[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Already have device ID
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings
[2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined
[2018-12-3 18:37:16] [BlueAir 405] Got device settings

Then the actual (correct) status is presented. I replaced the actual device id with id

mylesagray commented 5 years ago

Is the device physically switching off, but the app states pending?

Sent from mobile

On 3 Dec 2018, at 17:38, paqpaqpaq notifications@github.com wrote:

When a 405 is switched on or off, the switching bit keeps on pending. when I close and reopen home app, it is actually on or off.

when I switch off ::

[2018-12-3 18:35:30] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attribute/fanspeed/ { currentValue: 0, scope: 'device', defaultValue: 0, name: 'fan_speed', uuid: 'id' } And then nothing happens. The device keeps on pending stating it is switching off. As soon as I reopen home [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Already have device ID [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings [2018-12-3 18:37:16] [BlueAir 405] Polled API: https://api-eu-west-1.foobot.io/v2/device/id/attributes/ undefined [2018-12-3 18:37:16] [BlueAir 405] Got device settings

I replaced the actual device id with id

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

paqpaqpaq commented 5 years ago

Correct Same with ON

The tile itself does turn grey and white as you go, though.

mylesagray commented 5 years ago

Okay, known bug, covered in #3, I haven’t figured out how to post back to the Home app when the value has updated yet.

Appreciate any help on that one as it plagued me for a few days before and I’ve been unable to figure it out.

Sent from mobile

On 3 Dec 2018, at 18:18, paqpaqpaq notifications@github.com wrote:

Correct Same with ON

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

mylesagray commented 5 years ago

Closing as tracked as part of #3