]> git.basschouten.com Git - openhab-addons.git/commitdiff
[http] Fix brightness (#15751)
authorTimotheos Constambeys <timo0190@gmail.com>
Sun, 15 Oct 2023 09:24:18 +0000 (12:24 +0300)
committerGitHub <noreply@github.com>
Sun, 15 Oct 2023 09:24:18 +0000 (11:24 +0200)
* [http] Fix brightness

---------

Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/ColorItemConverter.java

index 2d53a7817b412660277bc328c2a1933cbbf4f5cc..be1b1d58a5bd4d730124d2eb2ff4caf7427bbc74 100644 (file)
@@ -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);
         }