SmartThings
SmartThings copied to clipboard
Fix colour commands from Alexa
The HSV->RGBW colour conversion in the device handler is not working correctly. When Alexa sends commands as Hue,Saturation, the wrong colour was being set. Even for a primary colour like blue.
This PR fixes the algorithm.