How can I send a color as command?

See Type Conversions for some details.

But I think just putting the argument in quotes will work in this case:

sendCommand("360,1,1") // note the removed spaces

If not perhaps passing the arguments to an HSBType will work

sendCommand(new HSBType(new DecimalType(360), new PercentType(1), new PercentType(1)))
1 Like