openhab / openhab-google-assistant

openHAB Google Assistant: Actions on Google for openHAB
Eclipse Public License 2.0
176 stars 86 forks source link

Invert color temperature percentage range #518

Closed michikrug closed 8 months ago

michikrug commented 8 months ago

As mentioned at https://community.openhab.org/t/oh3-color-light-bulb-and-google-assistant/129938/7, there is some confusion about the relationship between color temperatures and their percentage equivalent.

In the current implementation, the percent values are inverted before conversion to Kelvin. I honestly don't know why this was implemented this way.

To make this more intuitive, we remove the inversion and reflect low kelvin values to low percent values and vice versa.