Repository navigation
Conversation
Adds AdaptiveLightingController, which receives the color temperature
curve from a HomeKit controller and applies it through a handler.
Supporting changes: writes with response ("r": true) answered with 207,
instance ids stored on characteristics, TLV8 characteristic values.
Contributor
Author
|
Tested with the Home app (iOS, with a home hub). The Adaptive Lighting option did not appear for the bulb, so the curve handling could not be tested end to end. What was checked:
Cross-check with HAP-NodeJS 2.3.0: its own Adaptive Lighting example bulb, bridged and in the same home, also gets no Adaptive Lighting option, and the hub behaves the same way. So the missing option comes from the Home/hub setup, not from this change. Keeping the PR as a draft until it can be tested on a setup where Adaptive Lighting shows up. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Adaptive Lighting for lightbulbs. A HomeKit controller sends a 24-hour color temperature curve;
AdaptiveLightingControllerapplies it in the requested interval, adjusted to the current brightness, through anAdaptiveLightingHandler.Supporting changes:
CharacteristicsController.putanswers writes with"r": truewith 207 and the value, via the newWriteResponseCharacteristic. Withoutrit still returns 204.HomekitRegistrystores each characteristic's instance id onBaseCharacteristic; the supported transition configuration has to name the ids of Brightness and ColorTemperature.IntegerCharacteristic.getMinValue()/getMaxValue(), to keep the color temperature within the characteristic's range.No breaking API changes; everything is additive.