dsandor / fauxmojs

Fake WeMo device ported to NodeJS. Allows Alexa (Amazon Echo) to make api calls.
56 stars 22 forks source link

Devices not discoverable by Gen 2 Echos #21

Open alanpuccinelli opened 6 years ago

alanpuccinelli commented 6 years ago

While debugging the discoveryService.js I can see that the XML formed in response doesn't appear to be compliant with what the latest echo firmware expects. I suspect its a matter of updating the response in similar fashion to how the guys on the original fauxmo project did.

It looks like the new Echos are now requesting a metainfoservice.xml and eventservice.xml response and perhaps the setup.xml isn't formed correctly either.

See this issue for reference: https://github.com/n8henrie/fauxmo/commit/1c3389c0b9bfd16e96d87591afc007e1399c36c1

timothe commented 6 years ago

There's a new release on the dev branch of fauxmo. Would it solve this issue? https://github.com/n8henrie/fauxmo/tree/dev

dsandor commented 6 years ago

@alanpuccinelli I will look at the python project and see if I can make some changes that will work. I do not have a Gen 2 Echo and have no way to test it at the moment.

timothe commented 6 years ago

@dsandor I do, if I can be of any help

dsandor commented 6 years ago

@timothe Sure! I assume the python version is just emulating a different device class. I will try to get some cycles over the next few days and see if I can get a branch of this project running with the same device class that the python code is using and maybe you can test it.

TanguyNa commented 5 years ago

@dsandor Hi, I also have a 2nd gen echo (French version), if I can help you to test on my echo, jusk ask me :)

50l3r commented 5 years ago

I have a 3rd gen echo. I can help too :)

dsandor commented 5 years ago

Hi @TanguyNa and @50l3r can you confirm it is not working at the moment. Also are you able to log out the discovery messages that we get from those devices? I recently acquired an Echo Show and an Echo Spot so I am hoping that I can troubleshoot the messages from those. I will ping you both again when I patch the code and you can re-test.

biddster commented 5 years ago

I have a 2nd gen show and 2nd gen echo. If I ask them to scan for a fauxmojs device, they don't detect it as per the above. However, if I go to https://alexa.amazon.co.uk and scan for devices in there, my fauxmojs device is discovered. However, all attempts to invoke it result in Alexa telling me it is unresponsive.

How do I help debug this?

djsunrise19 commented 5 years ago

I'm using a 3rd gen echo dot in here and I have the same problem. Tried a few ways but alexa can't find any new devices with the echo dot. Same problem with https://alexa.amazon.de.

It looks like the python version has been fixed?! When there will be an update for the NodeJS Version?

johngo7470 commented 5 years ago

Add me to the list as well. In the last few weeks (not really sure when), my mother's Echo 2nd gen is not discovering fauxmojs devices like it used to (but it does still discover the "real" WeMo switch). For grins, I just called her and asked her to disconnect the power from her Echo, and then asked her to ask her Echo DOT to discover devices, and interestingly, the fauxmojs devices re-appeared in her list of Smart Home devices. Does appear to be something specific to her Echo 2nd Gen, that is not (or not yet) affecting Echo Dot (2nd Gen).

ezar commented 5 years ago

I'm using a 3rd gen echo dot in here and I have the same problem.

johngo7470 commented 5 years ago

A few days ago, I visited my mom, deleted and re-discovered all devices using the Echo 2nd Gen, and found them again. Possibly the power cycle helped in some way...