Fix color state update (#15908)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
7d24cfbc9e
commit
608007c67e
@ -261,7 +261,7 @@ public class HDPowerViewRepeaterHandler extends AbstractHubbedThingHandler {
|
|||||||
// Light is off when RGB black, so discard brightness as otherwise it would appear on.
|
// Light is off when RGB black, so discard brightness as otherwise it would appear on.
|
||||||
hsb = HSBType.BLACK;
|
hsb = HSBType.BLACK;
|
||||||
} else {
|
} 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));
|
hsb = new HSBType(hsb.getHue(), hsb.getSaturation(), new PercentType(color.brightness));
|
||||||
}
|
}
|
||||||
updateState(CHANNEL_REPEATER_COLOR, hsb);
|
updateState(CHANNEL_REPEATER_COLOR, hsb);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user