setColor() arguments error. Source Code attached

Something like that might work, but really…

Study (read several times) the Capability colorControl section: http://docs.smartthings.com/en/latest/capabilities-reference.html#color-control

Then realize … it is really a bit of an ambiguous mess… (not your fault… it just evolved inconsistently, IMHO. There have been a few discussions on this…


For a “sync” SmartApp I think you can avoid using the setColor() method, and, instead use the Hue and Saturation Attributes and Commands directly:

1 Like