Fix color state update (#15908)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2023-11-18 16:24:10 +01:00 committed by GitHub
parent 7d24cfbc9e
commit 608007c67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,7 +261,7 @@ public class HDPowerViewRepeaterHandler extends AbstractHubbedThingHandler {
// Light is off when RGB black, so discard brightness as otherwise it would appear on.
hsb = HSBType.BLACK;
} else {
hsb = HSBType.fromRGB(color.red, color.green, color.red);
hsb = HSBType.fromRGB(color.red, color.green, color.blue);
hsb = new HSBType(hsb.getHue(), hsb.getSaturation(), new PercentType(color.brightness));
}
updateState(CHANNEL_REPEATER_COLOR, hsb);