biddster / node-red-contrib-wemo-emulator

Why might you want to emulate Wemo? Well I wanted to be able to control my Node-RED Raspberry Pi using my Amazon Echo. The Echo has Wemo support built in so I thought I'd give it a try.
17 stars 9 forks source link

Alexa app can't control emulated devices #17

Closed jonathanschneider closed 4 years ago

jonathanschneider commented 6 years ago

Controlling the emulated devices with the Echo works fine. When trying to control them through the Alexa app though it says the device doesn't respond. Is this error on Amazon or the node?

martinschki commented 6 years ago

Works with me But, in my case, I get two entries in the Alexa app for one device. I then have to manually delete one before it works...

jonathanschneider commented 6 years ago

Weird. I only have one entry per device. Can you control the device from both entries in the Alexa app?

martinschki commented 6 years ago

NO, I have to delete one first (One entry is English and one German, my system is setup in german)

jonathanschneider commented 6 years ago

Maybe it’s a port/firewall issue? Which ports are you using for example?

Where does the Alexa app get the second language from in your case?

AlGu1 commented 6 years ago

Hi,

i have also this problem and fixed it with changing the code. See here.

Thanks for your work AlGu

biddster commented 6 years ago

Thanks for the report. I wonder if this is what's causing others to see 2 devices?

AlGu1 commented 6 years ago

I think it's only the fix for "Alexa app can't control emulated devices". Not for other bugs e.g. 2 devices. :-)

biddster commented 6 years ago

@AlGu1 Did you have to remove and then get alexa to rescan for devices after you changed emulate.js? Or was a node-red restart enough?

AlGu1 commented 6 years ago

I have removed all devices in Alexa, restart node-red and then rescan. Now i can change the state in Alexa App but there is a little missing feature: If i change the state outside of Alexa App, the Alexa App dose not get anything. I think there is no event that tells Alexa the new state?!

biddster commented 4 years ago

Fix released in version 1.0.0 for duplicate devices and I think it will fix this issue. Please let me know how you get on and reopen if needed.

You will get one more duplicate device after upgrading to 1.0.0, that's unavoidable unfortunately. However, you can remove all of the old duplicate devices and you should not get any more duplicates.