dsandor / fauxmojs

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

each device executed during discovery #26

Closed johngo7470 closed 4 years ago

johngo7470 commented 5 years ago

Is there a way to differentiate between the callback function being triggered by Device Discovery and calling the function from a voice command? When I ask Alexa to discover all devices, it actually triggers each device to operate as if it were called with an "on". This is a bit of a problem, because it is activating devices, that I don't want activated during discovery.

boeserwolf commented 4 years ago

You could use my PR from 2017 which solves the issue by handling the status queries and caching the last known device states:

https://github.com/boeserwolf/fauxmojs

johngo7470 commented 4 years ago

Thank you for your reply.

For reasons unknown, my configuration went haywire over the summer, and all devices were constantly activating, even though nothing was being called. I resolved it by switching to fauxmo, so I never did figure out what went wrong with my implementation of fauxmojs.