node-red-contrib-wemo-emulator icon indicating copy to clipboard operation
node-red-contrib-wemo-emulator copied to clipboard

Identifiing asking Echo/Alexa

Open CarJu opened this issue 7 years ago • 8 comments

Hello Biddster! I have two echos in two rooms. I want to tell node-red to do different things, depending on the echo where the command comes from.

Is there any possibility to identify the IP or any kind of id where comes the command from?

For example: I build a flow for "lights". If I ask from livingroom "alexa turn lights on" then the livingroom-lights should turn on... in kitchen, lights of kitchen should reakt. From my opinion, that would be a "killer-feature"! :-)

THANK YOU for your great work!

CarJu avatar Jan 05 '18 08:01 CarJu

I think this is a great idea @CarJu. However, I can't see any identifying information on the callback I get from Wemore.

I've raised an issue in Wemore asking the question. https://github.com/dhleong/wemore/issues/13

biddster avatar Jan 20 '18 23:01 biddster

@CarJu, @dhleong has very kindly added support in wemore for identifying the callee. I'll look to incorporate that asap and get a release out.

biddster avatar Jan 24 '18 17:01 biddster

Oh, that are great news! I will be very happy to see your next update!

Thank You!

CarJu avatar Jan 31 '18 13:01 CarJu

Great! I'm too looking forward to this!!! It will simplify my multi Echo setup siginificantly

Thank you!!!

martinschki avatar Feb 01 '18 09:02 martinschki

I've finally got around to do some testing and it seems that the origin of the request is always from the same alexa device, regardless of which device was spoken to.

I think I'll do a release anyway as it doesn't do any harm and you folks can see if it works for you.

biddster avatar Feb 21 '18 22:02 biddster

0.5.1 released, give it a try.

biddster avatar Feb 21 '18 23:02 biddster

Hello Biddster, I'm sorry for late reply... I testet very much and it is not working and I'm sorry, it will not work! Amazon has changed handling of answering and so it is random which echo is shown.

If you are still interested in a solution, on this page I found a sh-script for asking amazon for the last alexa with voice command: https://wennez.wordpress.com/light-on-with-alexa-for-each-room/

heres the script on github: https://github.com/thorsten-gehrig/alexa-remote-control

I will now try to send all room-specific commands from Alexa over HABridge and http requests to note-red. It is much more complicated... but it seems to work,

Thank you for your great work! For simple "on" "off" your node is still my favorite!

CarJu avatar Apr 09 '18 14:04 CarJu

Could I also please ping this??? Is there a solution? Would be awesome

martinschki avatar Dec 25 '18 14:12 martinschki