brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
98 stars 6 forks source link

Support DPT 251.600 for light color #35

Closed brutella closed 2 years ago

brutella commented 4 years ago

HomeKit expect light colours as HSB (Hue, Saturation, Brightness). On the other hand 251.600 expects the colour as RGBW. A conversion from HSB to RGBW seems doable but I couldn't find an algorithm to go from RGBW to HSB.

Therefore this feature is on hold for now.

nico-rogasch commented 3 years ago

I‘m trying to make my rgbw strip with lunatone dali 4ch controller in dim&color mode & MDT dali gateway work right now and and kinda got stuck on it. I guess it‘s because of this unsupported datatype, but haven’t tried all combinations yet. But i found this post on stackoverflow, do you know it already? https://stackoverflow.com/questions/21117842/converting-an-rgbw-color-to-a-standard-rgb-hsb-representation

nico-rogasch commented 3 years ago

Googleing some more I found quiet a couple of articles about RGBW to HSB conversion, even a wikipedia entry : https://de.m.wikipedia.org/wiki/HSV-Farbraum But I guess you already found them, so if this doesn’t work, could you eleborate the problems you encountered a bit more?

bernd70 commented 2 years ago

Any updates here? I also would really like to have 251.600 support!

brutella commented 2 years ago

Fixed in 2.2.0