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: