dave-code-ruiz / elkbledom

Home Assistant custom component for LED STRIP NAME ELK BLEDOM
MIT License
77 stars 16 forks source link

Changing brightness slowly ruins the color #30

Closed Double-A-92 closed 1 year ago

Double-A-92 commented 1 year ago

When I change the brightness with the "Light" panel on my home view, the set color slowly degrades towards pure Red, pure Blue or pure Green.

E.g.

image

In real life this color has become Red at 30%

Maybe some rounding or integer division error while calculating the new RGB value?

ynsgnr commented 1 year ago

This should fix it: https://github.com/dave-code-ruiz/elkbledom/pull/41