rule "WSxx Change" when Item WS28xx_Strip received command then if (receivedCommand instanceof HSBType) { val red = ((WS28xx_Strip.state as HSBType).red * 2.55) as Number val green = ((WS28xx_Strip.state as HSBType).green * 2.55) as Number val blue = ((WS28xx_Strip.state as HSBType).blue * 2.55) as Number logInfo("WS Status", red.toString + "," + green.toString + "," + blue.toString) executeCommandLine("/usr/bin/python3 /etc/openhab2/scripts/ws28xx.py " + red.toString + " " + green.toString + " " + blue.toString ) } else if (receivedCommand == ON){ //logInfo("WS Status", "ON") } else if (receivedCommand == OFF){ } end