From 58c7928b23d96e85eb78b7e7f487de1cc01f28a4 Mon Sep 17 00:00:00 2001 From: Ryz Date: Tue, 22 Jun 2021 12:51:16 +0200 Subject: [PATCH] [http] Fix parsing of Color RGB values (#10897) * Fixed parsing of Color RGB values Signed-off-by: Ryz --- .../binding/http/internal/converter/ColorItemConverter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 5da525a78..0c5193132 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 @@ -109,9 +109,9 @@ public class ColorItemConverter extends AbstractTransformingItemConverter { if (matcher.matches()) { switch (channelConfig.colorMode) { case RGB: - int r = Integer.parseInt(matcher.group(0)); - int g = Integer.parseInt(matcher.group(1)); - int b = Integer.parseInt(matcher.group(2)); + int r = Integer.parseInt(matcher.group(1)); + int g = Integer.parseInt(matcher.group(2)); + int b = Integer.parseInt(matcher.group(3)); newState = HSBType.fromRGB(r, g, b); break; case HSB: