Skip to content

Conversation

@treellama
Copy link

The plugin currently converts HomeKit's HSV to RGB when setting the light, but when reading it back it uses HSL. This causes round trip errors.

For instance, setting hue 120, saturation 100, brightness 100 from HomeKit converts to RGB 00ff00. But on read, using HSL, the brightness drops to 50% ( (max - min) / 2).

This pull request uses HSV for read conversions instead, which correctly converts the brightness back to 100%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant