I have some color pool lights. I'd like to control their color using Alexa in HE. For example,
Alexa, turn the pool lights blue.
I currently do it using a Smart Home skill on a Lambda server + a python script running locally on an rpi. It works, but I'm trying to migrate everything to HE.
The colors are changed by sequencing through the supported colors (only 8) using bursts of fast (< 1 second) on/off sequences. For example, blue is 5 on/off cycles, red is 6 on/off cycles.
For Alexa, I think I need to implement a custom driver that advertises ColorControl capability so that Alexa will recognize commands like "Change pool light color to blue". I think I'll need to implement setHue, setColor, and setSaturation methods and that these will get called by Alexa.
Are there other alternatives (different capabilities) I should consider? What I'd really like is a capability that just gets the text that Alexa recognized, then the driver could parse it and do whatever is needed. That would require no compromise in flexibility, but I don't see that in HE.