From d2b3f68d2edcd7d3dbe3f476cc1b067c1304c170 Mon Sep 17 00:00:00 2001 From: Timotheos Constambeys Date: Sun, 15 Oct 2023 12:24:18 +0300 Subject: [PATCH] [http] Fix brightness (#15751) * [http] Fix brightness --------- Signed-off-by: Timotheos Constambeys --- .../binding/http/internal/converter/ColorItemConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/ColorItemConverter.java b/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/ColorItemConverter.java index 2d53a7817..be1b1d58a 100644 --- a/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/ColorItemConverter.java +++ b/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/ColorItemConverter.java @@ -64,7 +64,7 @@ public class ColorItemConverter extends AbstractTransformingItemConverter { state = newState; return hsbToString(newState); } else if (command instanceof PercentType percentCommand && state instanceof HSBType hsb) { - HSBType newState = new HSBType(hsb.getBrightness(), hsb.getSaturation(), percentCommand); + HSBType newState = new HSBType(hsb.getHue(), hsb.getSaturation(), percentCommand); state = newState; return hsbToString(newState); }