kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
115 stars 37 forks source link

Plugin Needs Polling to Determine Status #47

Closed MoTechnicalities closed 3 years ago

MoTechnicalities commented 3 years ago

HomeKit does not update the bulb status unless you leave the room or app and come back. My test:

Result: Icon never changes until I exit the HomeKit room then re-enter. Same if I start with a "no response" bulb and power it on. The status doesn't update until I exit the HomeKit room and re-enter.

kpsuperplane commented 3 years ago

Polling unfortunately results in a large amount of network traffic that is most likely detrimental to the experience of other devices of the network.

The reason this works fine in the Wiz app is because the app "subscribes" to the bulbs only when the app is open. However, I don't believe HomeBridge lets me know when the plugin should be subscribing to the bulbs.

I'm open to suggestions here but I don't believe subscribing to the bulbs 24/7 is a good solution for the vast majority of users.

MoTechnicalities commented 3 years ago

With homebridge-wiz-lan v3.0.2 performance is now greatly improved, so for now, I'll just be happy with what we've got. Thanks.