WiLED icon indicating copy to clipboard operation
WiLED copied to clipboard

Adding color specific alexa commands

Open dvasilevsky opened this issue 5 years ago • 0 comments

I got this project up and running and maybe you could help save me a couple hours of searching thru the code to find the proper implementation for my question. I would like to create a custom light that when it turns on it is a specific color. I tried the following in Alexa.h but had no luck:

void movieCallback(uint8_t brightness) { if (!checkIsOff(brightness)) { controller.setBrightness(brightness); controller.setcolor({15,88,163}); controller.on(); } else { controller.off(); }

The light itself is initialized and works fine with alexa and recognizes its name. The issue is that I want it to take a different color than how "onCallback" starts and just takes the ws28_model.h color.

What would be the best way to add the entirety of the 150LED strip to the queue and set the color of it in the code so that when I say "Alexa, Movie Light" it turns on a red light for example?

dvasilevsky avatar Jun 23 '20 13:06 dvasilevsky