vintlabs / fauxmoESP

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

Alexa App / device discovery problems #68

Closed pvint closed 3 years ago

pvint commented 5 years ago

Original report by Ralf (Bitbucket: ralle80, ).


Hi,

I'm having problems getting fauxmoESP to work. I'm using NodeMCU and an Echo Dot 3rd Gen and have already applied the patched code from Arpad in #66. But still the Alexa App cannot discover the device.

The Alexa App has a strange behavior which is not described in fauxmoESP documentation:

Documentation only says "run the "discover devices" option from your Alexa app" - but Alexa app asks for more information (in German, don't know the english equivalent but I try to translate as best as I can):

  1. Which "common brands" I want to add and so I select "Philips Hue" from the list.

  2. Next I'm a asked what type of Bridge I am using - the round V1 or the square V2 version or no hub at all. Only if I select V1 it starts to search but no device is found :-(

Another thing I noticed is that the serial console of Arduino IDE does not output any messages concerning fauxmoESP while running the code. So no HTTP Requests while discovery is running - like I read in other posts here - simply nothing.

Thanks for your help ;-)

pvint commented 5 years ago

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


Can you test it with the latest version in dev branch? I got good results with gen1 and gen3 devices.

pvint commented 5 years ago

Original comment by Ralf (Bitbucket: ralle80, ).


I just tested with Commit 0614271 - no change at all. Shouldn't I see the fauxmo.onSetState-Event fired while Alexa App is searching ? And is it right to select Philips Hue V1 bridge in the app ?

pvint commented 5 years ago

Original comment by Ralf (Bitbucket: ralle80, ).


Oh, I forgot to set port 80. Now it works perfectly. Device was discovered now in Alexa App and Event fires when switching on/off. Thank you !

pvint commented 5 years ago

Original comment by Kris (Bitbucket: krisn1967, ).


Ralf,

I have a same problem can you explain in details how did you do this.

pvint commented 5 years ago

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


Great news @ralle80 ! @krisn1967 , check the basic example code. If you want the library to work with gen3 devices the TCP port where the library listens to requests from the Alexa device must be port 80. To do it you must set the port before calling enable, like this:

fauxmo.setPort(80);
fauxmo.enable(true);
pvint commented 3 years ago

Closing stale issue.