basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.9k stars 136 forks source link

Separate min/max values for white_value and brightness for RGBW #118

Open sjoerdos92 opened 3 years ago

sjoerdos92 commented 3 years ago

Currently, white_value and brightness are set to identical values:

        if "brightness" in features and adapt_brightness:            
            brightness = round(255 * self._settings["brightness_pct"] / 100)            
            service_data[ATTR_BRIGHTNESS] = brightness

        if "white_value" in features and adapt_brightness:            
            white_value = round(255 * self._settings["brightness_pct"] / 100)            
            service_data[ATTR_WHITE_VALUE] = white_value

My Shelly Color Bulb RGBW GU10s are have very bright white LEDs paired with relatively dim RGBs. Ideally, I would like set the min/max brightness to 50/100 and min/max white_value to 0/50.

basnijholt commented 1 year ago

Related https://github.com/basnijholt/adaptive-lighting/issues/289