Aircoookie / Espalexa

Alexa voice control for ESP8266/ESP32 (including brightness and color!)
MIT License
545 stars 137 forks source link

"Color Device" type doesn't support color #54

Open Aircoookie opened 5 years ago

Aircoookie commented 5 years ago

If using an Echo Dot 3rd gen, or Echo 2nd gen, "Royal Philips Electronics smart device" will be found. Color is sent in hue + sat format, this will work with v2.2.0+ of Espalexa

If using an Echo Dot from a prior generation, "Color light" will be found. Espalexa will not be able to apply the color, since it is given in "xy" format. This is not currently supported in Espalexa, so it needs to be enhanced to support "xy" type color requests.

PyxelFox commented 5 years ago

The xy might be from the CIE 1931 color space, which works with xyz values where: Z = 1 - X -Y

Aircoookie commented 5 years ago

Color support now fixed for Echo Dots (1st + 2nd gen). Color temperature not functional, though.