mylesagray / homebridge-blueair

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

Investigate UseDefaultValue, SetValue and UpdateValue for realtime updates #3

Open mylesagray opened 6 years ago

mylesagray commented 6 years ago

Currently, a manual refresh is required to pull the latest info into Home.app, this should be done in real-time instead. Apparently possible using SetValue and UpdateValue.

ndlaham commented 5 years ago

Just checking in to see if you have had any revelations or progress with this enhancement. I know this has been a bit of a head scratcher. Wish I could help somehow.

mylesagray commented 5 years ago

Haven't looked back into it - I wasted a few days trying to get it working initially, but this may make most sense as part of a refactor into a platform in #1

ndlaham commented 5 years ago

Got it. If you ever get back to it, let me know if there is anything I can do to help as far as testing. Happy to follow instructions!

buczo23 commented 4 years ago

Any updates? Can't switch on/off the device, and i can observe only partial reads. "Already have device ID" and lot of undefined messages.

mylesagray commented 4 years ago

@buczo23 comtrolling the device doesn’t depend on this, this is purely a UI thing, if you set speed or any other param - they will still apply without this in place.

What this bug refers to is the condition when you press the icon to either turn on or off the device - it will perform the action on the device, but the UI won’t acknowledge that change until a close and reopen of the Home app.

If you’re having problems getting the plugin to actually control your unit - please open a bug with the logs and your config included, as well as what device model you are using.

ndlaham commented 4 years ago

I was seeing some activity on this again and I’m also wondering if you have had any developments to share on this topic. Let me know if I can be of help!

mylesagray commented 4 years ago

@ndlaham, unfortunately not, real life is busy™

I am still interested in refactoring into a dynamic platform, but it is a lot of work and I don't have the time right now - but welcome contributions :)

ndlaham commented 4 years ago

I hear you on that. I certainly appreciate all the work you’ve done thus far.