/BridgeEmulator/functions/colors.py:
hsv_to_rgb sets m component correctly, yet does not factor it into the return value.
On RGB lights this produces wrong color output.
Possible fix: Line 99
return clampRGB([r * 255, g * 255, b * 255]) -> return clampRGB([(r+m) * 255, (g+m) * 255, (b+m) * 255])
Though I do not know if the existing function is used by RGBW lights which compensate this with their W channel or something similar, bugging them in turn.
Issue does not already exist?
I have searched and found no existing issue
Select Environment
Install Script
Home Assistant related?
No
Description
/BridgeEmulator/functions/colors.py: hsv_to_rgb sets m component correctly, yet does not factor it into the return value. On RGB lights this produces wrong color output.
Possible fix: Line 99
return clampRGB([r * 255, g * 255, b * 255])
->return clampRGB([(r+m) * 255, (g+m) * 255, (b+m) * 255])
Though I do not know if the existing function is used by RGBW lights which compensate this with their W channel or something similar, bugging them in turn.
Errorlog:
Steps to reproduce
Expected result
R=255 with GB increasing to approximate white.
Actual result
GB staying at 0 and R decreasing until off.
Please enter your operating system details here
Linux 6.1.21 armv7l
What DiyHue version(branch) are you using?
master (latest)