vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
383 stars 69 forks source link

Number of devices on the same network #113

Closed pvint closed 3 years ago

pvint commented 4 years ago

Original report by Roger Espinoza (Bitbucket: [Roger Espinoza](https://bitbucket.org/Roger Espinoza), ).


Hello, excuse me, I would like to know if it is possible to connect more than one (physical) esp device on the same network, what happens is that after adding an esp device in the alexa app, the following does not recognize me, thank you very much in advance.

rogerespinoza commented 3 years ago

Hello, there is no news?

pvint commented 3 years ago

Hi Roger,

I have used more than one physical device often in the past, and I just tested with two ESP32 devices, each with 8 fauxmo "devices", and when I do "Alexa Discover" it finds all 16 new devices, and they work fine. (Tested using a Gen3 Echo Dot).

If you're still having trouble, try setting: #define DEBUG_FAUXMO Serial in your code and see if you se the following when you do "Alexa discover": [FAUXMO] Responding to M-SEARCH request

rogerespinoza commented 3 years ago

Hello pvint, you will see my problem occurs because if I already connect a physical device (esp8266), the next one that I try to connect alexa does not recognize it, I suppose it is due to the port that the library already has assigned to work, and when more than one on the same network is no longer detected, how do you do to avoid problems at that point?

pvint commented 3 years ago

It's perfectly ok to use the same port on different devices (that's actually the standard way).

One thing to verify: Are you using a different device name when creating the devices (in fauxmo.addDevice on the second one?

Also, check in the alexa app that there aren't "stale" devices in the list.

rogerespinoza commented 3 years ago

I will verify all these points and report to you, thanks for the help.