-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved support for HomeKit scenes #59
Comments
Released v0.2.3. Seems to work on my server. Reset my entire HomeKit configuration and re-created the test scene. Now changes are sent to homebridge-hue in a different order, on iOS 10.2 as well as on iOS 10.3 beta 2 (on same iCloud account). I did find sometimes a manual change flips back and forth. This is due to a timing issue, which occurs more often with faster heartbeats (2 sec):
Solution: v0.2.4 suppresses updating the HomeKit value from the Hue bridge during update. |
I had thought this was #40 but was confused by the order of log messages, and it turned out not to be…now I can finally see to make my coffee in the morning as the light above the sink isn't impossibly dim. Thanks! |
When activating a HomeKit scene that contains multiple changes to a single light (e.g. power, brightness, and colour) while the light is off, homebridge-hue used to report
This is because the Hue bridge tries to execute the change for
bri
, before it has executed the change foron
. See also issues #15, #16, #28, #57.As an example, here's the debug log output of homebridge, when activating a HomeKit scene which sets the power, brightness and colour of six lights: apart.txt. Some observations:
Power
change beforeBrightness
,Hue
, andSaturation
. I'm testing on iOS 10.3 beta 2, not sure if this was the case on iOS 10.2 and earlier;xy
is updated twice for each light: once because of the change toHue
and once because of the change toSaturation
. When the bridge request for theHue
change is handled after theSaturation
request, this results in the light having the wrong colour, even thought there were no errors for those requests;Combining the changes to different characteristics for the same light into a single Hue bridge request not only prevents the 201 bridge error, it also reduces the load on the Hue bridge (and slightly on the Zigbee network). Here's the corresponding debug log: combined.txt. Again, some observations:
Power
beforeBrightness
beforeHue
beforeSaturation
);Technically, after receiving the first characteristic change for a light, homebridge-hue waits a little while before sending the corresponding request to the Hue bridge. If another change arrives, it is combined into the same request. The time (in milliseconds) homebridge-hue waits is configurable by the
timeWaitUpdate
parameter in config.json.I'll include these changes in the next release of homebridge-hue.
The text was updated successfully, but these errors were encountered: