Aircoookie / Espalexa

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

Alexa only discovering the last device and not all #220

Open coding-ram opened 1 year ago

coding-ram commented 1 year ago

Hello coders, I facing an issue using the Espalexa library. I used it first and it worked great for some days but then the Alexa app keeps showing "Device is unresponsive" while the board is still connected to the wifi. And now when I tried to upload the Basic example code for the library, Alexa only discovered the last device from the 3 defined devices. I tried 3-4 times, but sometimes the app didn't discover any devices, sometimes the deviceip/espalexa doesn't open and then it discovers only the last device. I don't know what's going on. Please help me with the problem. It gives no errors while compiling and uploading. The serial monitor says connected to wifi and gives the IP. But the problem is in the discovery process. Please help me.

Versions Used : Esp8266 Boards - 3.0.2 ESPAlexa Library - 2.7.0

Aircoookie commented 1 year ago

Hi! Yeah, as Espalexa builds upon an anchient API, it is sometimes not the most stable unfortunately. Have you attempted deleting all Espalexa devices in the Alexa app? A device that is already registered in the app will most likely not re-discover correctly, even if device type and name are changed, since the device ID remains the same.

BoeckEH commented 1 year ago

I had this issue with the gen threes. I bought a fourth gen dot on prime day 2020 and they were immediately picked up and still work today. YMMV.

coding-ram commented 1 year ago

I successfully discovered the devices in the Alexa app. I just degraded the ESPalexa library and then upgraded it. But a new problem occurred. After uploading and discovering the code it was working fine with Alexa app buttons and voice. After that withing within half an hour, the Alexa app started showing "Device unresponsive" while the device is still connected to the hotspot, and when I try to ON the button in the app despite the error shown, the error changes to "Server not responding". What should I do now? I faced the same problem in my first project but it worked for at least 5-6 days and then it keep showing the same errors till today. Please help me.