Coder Social home page Coder Social logo

Comments (3)

Barabba11 avatar Barabba11 commented on August 14, 2024

Well, I asked the same..
chances are Echo devices becoming cheaper, it would lovely to have other Echo in other rooms/floors.. but only one Wifi, and only one Raspberry running Node Red an all automations needed.. and say to every floor "Alexa turn down curtains".. but only curtains of that room/floor will go down..

Unfortunately Alexa will search for devices on port 80 on all the IP domain broadcast.. so if we this module running all the Alexa in that WiFi will recognize all devices that are connected to the Echo HUB in Node Red..
yes we can delete it by our app later.. or disable the undesidered devices before discovering (I have around 50!), but if one day wrongly we say to one Alexa "Alexa find new devices" it will search all IP again and find all, and our list will be dirty again. And what about if we use the same names? For example "curtains"? Wich one has to be deleted? Which one appear in the list is the one of the second floor?

Even if we use multiple IP addresses on Raspberry and open for each IP an 80, to be routed somehow to the main IP with a different TCP, and load on that TCP a different Echo HUB in Node red, the Alexa will anyway find all the Eco HUBS and all devices too.. because it scans all the IP of the domain, so it's not a solution.

The only way we have is to chose/filter the Echo device on the http server (by its IP or MAC address) and let that Echo recognize only the devices connected to it (on that HUB on Node Red).
Possible solution:
It may be possible to change a bit the http server to pass also the source IP address of the Alexa incoming, or its MAC address, on Node red the Echo HUB device can contain a field to specify the Echo IP address, this HUB will talk only to that IP address, and let that Echo only recognize the devices connected to that Echo HUB.
We ma add then a second Echo HUB with the IP address of the second Alexa, and connect to it only the devices that the second Alexa should recognize and control.
A device may be connected to two hubs and be recognized and controlled by both.. but this is not mandatory of course
Thank you a lot for considering this

PS: filtering by IP address may be easier to implement, but router can give another day another IP address.. and our Node Red will not work more with that Alexa. We should then reserve an IP address in DHCP of our router to avoid this, maybe some routers don't have this feature. A MAC address can't be changed, so it's more safe to use that, but maybe more complicated to implement

from node-red-contrib-amazon-echo.

datech avatar datech commented on August 14, 2024

I'm not aware of a way to distinguish Amazon Echo devices, because usually all requests are routed trough the master Echo device.

Duplicate issues #22 , #59

from node-red-contrib-amazon-echo.

Barabba11 avatar Barabba11 commented on August 14, 2024

It's just needed to use two different Amazon accounts, one for every Echo.
Filter can be set on every device by IP address, hub will pass source IP address to device, if it doesn't match the device will not reply
Thank you

from node-red-contrib-amazon-echo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.