Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding color specific alexa commands #10

Open
dvasilevsky opened this issue Jun 23, 2020 · 0 comments
Open

Adding color specific alexa commands #10

dvasilevsky opened this issue Jun 23, 2020 · 0 comments

Comments

@dvasilevsky
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant