-
-
Notifications
You must be signed in to change notification settings - Fork 405
Description
Feature request
Make it so that instead of the user manually having to set a brightness value in the configuration, hyperion calculates a good brightness value for each update
What problem does this feature solve?
Currently, it is very hard to get colors looking right in the home assistant output. The fact that every color is always being sent with the same brightness limits the dynamic range drastically and causes the effect to be very mediocre. For example having the brightness be set quite high (like the default) makes it look great in well lit scenes or situations in which a large amount of light is required (think explosions, fire, and the like) but makes it look terrible in dimly lit scenes, and vice versa.
Another issue this might fix is that for homeassistant lights which support both rgb color mode and temperature adjustable white light, having the brightness be high but also sending color values close to black but not quite there yet can make the light go out of color mode and instead start emitting white light.
(I know that the current implementation tries to work around this by turning the light off when it is black but it is still quite common for me to run into this and get flashbanged)
What does the proposed API look like?
In the current implementation every api request contains a color value and (optionally) a fixed brightness value, I propose replacing the fixed brightness value with some calculated brightness value based on the rgb value (eg. higher values = more brightness and the other way around).
How should this be implemented in your opinion?
find some mathematical function to calculate the perceived brightness of any rgb value and implement it as stated above.
Are you willing to work on this yourself?
yes absolutely, am just kind of unsure about my coding skills since I honestly suck at coding but this seems like something fun I'd like to try out
Metadata
Metadata
Assignees
Labels
Type
Projects
Status