Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add client IP address #22

Closed
hifiberry opened this issue Feb 11, 2019 · 10 comments
Closed

Add client IP address #22

hifiberry opened this issue Feb 11, 2019 · 10 comments
Labels
enhancement New feature or request

Comments

@hifiberry
Copy link

It would be good to have the IP address of the Amazon Echo that sent the request in the JSON data. This would allow better automatisations with multiple Echo devices in the same apartment.

@datech datech added the enhancement New feature or request label Feb 11, 2019
@Barabba11
Copy link

Barabba11 commented Feb 12, 2019

To let use the same names to different Echo devices (example soft lights in different rooms/floors) in my opinion it would be better to specify IP address of the desidered Echo into Node Red Echo HUB, and into the flow connect to it the devices that we want only that Echo should recognize.

@hifiberry
Copy link
Author

Not sure how you mean that. You mean during discovery? In this case this won't work as all Echo devices on the same account share the discovered devices.

@Barabba11
Copy link

Yes, and you can't use duplicate names, for example. If you "customize" the HUB for working only with that Echo you can be sure the JSON data will come from only that Alexa

@hifiberry
Copy link
Author

That's not the idea here. I don't want to have multiple hubs. This would complicate things a lot. I want a single hub for all Alexa's. It should just be possible to identify which Alexa sent the command, that's all. A simple attribute with the IP address of the client would be enough for this.

@hifiberry
Copy link
Author

Ok, I patched the code and added the client IP address. Bad news: requests always come from a "master" Alexa device in the network. Other Alexa devices route their requests via the master device. I don't know if there is any other way to identify the "active" Alexa device.

@Barabba11
Copy link

So you mean Alexa are descovering each other into the network and assign between them a master? That's a horrible news!

@hifiberry
Copy link
Author

Seems like this. All the requests to the Hue emulation always come from a single Alexa device, even if you're talking to another device.
I wouldn't say this is "horrible", but it won't allow an emulated Hue to behave differently for different Alexa devices.

@Barabba11
Copy link

are you maybe using the same amazon account for both Alexa? Have you tried to register the Alexas in different accounts?

@hifiberry
Copy link
Author

Sure I'm using the same account. Setting them up on different accounts doesn't make sense to me.

@Barabba11
Copy link

PLease use a different account, and then check if the IP packet come from different IP, that maybe can make sense to you,.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants