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

Issue: alexa is overlapping devices calls / Both Devices Triggering the Same Callback / Only one device showing out of multiple devices #234

Open
Debasish444x opened this issue Feb 22, 2025 · 0 comments

Comments

@Debasish444x
Copy link

I encountered an issue where I had two devices and two callbacks, but both devices were triggering the same first callback instead of their respective ones.

Solution:
The problem was caused by the way the unique ID was generated in espalexa.h. To fix it, replace this line:

sprintf_P(out, PSTR("%02X:%02X:%02X:%02X:%02X:%02X:00:11-%02X"), mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], idx);

With this corrected version:

sprintf_P(out, PSTR("%02X:%02X:%02X:%02X:%02X:%02X-%02X-00:11"), mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], idx);

📌 File to Modify: espalexa.h (located in the ESPAlexa library folder)

Note:
I did not come up with this solution myself—I’m simply sharing it here so that others don’t waste an entire day troubleshooting like I did!

🔗 Original Discussion: Arduino Forum - ESPAlexa Only One Callback Working

Hope this helps! 🚀

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