openhab / openhab-google-assistant

openHAB Google Assistant: Actions on Google for openHAB
Eclipse Public License 2.0
174 stars 85 forks source link

Add colorTemperatureInverted option #525

Closed michikrug closed 11 months ago

michikrug commented 11 months ago

Add new configuration option colorTemperatureInverted to SpecialColorLight

This will enable users to connect devices with color temperature Dimmer channels that expect low values for cold colors to invert the default conversion logic.

Example of a light device where low Kelvin values (warm light) are represented by high percentage values in the color temperature item:

Group  lightGroup { ga="SpecialColorLight" [ colorUnit="percent", colorTemperatureRange="2000,6500", colorTemperatureInverted=true ] }
Dimmer brightnessItem       (lightGroup) { ga="lightBrightness" }
Dimmer colorTemperatureItem (lightGroup) { ga="lightColorTemperature" }
felixschndr commented 11 months ago

For reference see this community post

felixschndr commented 11 months ago

Works as intended👍🏻