diff --git a/bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandler.java b/bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandler.java index a3991d3649a..78269444207 100644 --- a/bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandler.java +++ b/bundles/org.openhab.binding.wled/src/main/java/org/openhab/binding/wled/internal/WLedHandler.java @@ -256,7 +256,7 @@ public class WLedHandler extends BaseThingHandler { * @return WLED needs the letter h followed by 2 digit HEX code for RRGGBB */ private String createColorHex(HSBType hsb) { - return String.format("h%06X", hsb.getRGB()); + return String.format("h%06X", hsb.getRGB() & 0x00FFFFFF); } @Override