]> git.basschouten.com Git - openhab-addons.git/commit
[mqtt.homeassistant] implement non-deprecated color inference for JSON Schema lights...
authorCody Cutrer <cody@cutrer.us>
Fri, 11 Oct 2024 12:56:17 +0000 (06:56 -0600)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2024 12:56:17 +0000 (14:56 +0200)
commit4cbae6f111c3fcdc28e9dcbfd4098af88e6847dc
treec9db900b206c6af2a2589536b68eb72f054941e1
parent9d97fe4ed0f045f3bfeb9c8ef326548daa3eb3a3
[mqtt.homeassistant] implement non-deprecated color inference for JSON Schema lights (#17529)

In particular, use the color_mode attribute to tell us which color space to parse in,
instead of trying to guess. Some devices will fill out attributes not-pertinent to
the current color mode, and their math might be... less than optimal.
Also sync color temp and color channels when the color_mode is the opposite.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/JSONSchemaLight.java