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

Request: Know if command comes from Alexa or Google Home #134

Open
woody4165 opened this issue Dec 2, 2020 · 4 comments
Open

Request: Know if command comes from Alexa or Google Home #134

woody4165 opened this issue Dec 2, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@woody4165
Copy link

Hi

Is it possible to know if the command related to a device is requested via Alexa or via GH ?

Thanks

@coldfire84
Copy link
Owner

Can you explain your use case? To date I have actively worked to abstract the originating service (and all the differences) away from the user to make managing flows as simple as possible.

@woody4165
Copy link
Author

woody4165 commented Dec 5, 2020

I would like to have a single device defined and have different behavior depending on who is generating the command.
For example, "open gate". If the command comes from Android Auto, so GH, it has to open gate and turn on the light, if it's raised from Alexa, it has just open the gate.
Now I've found a workaround, since the msg._messageId field contains one or more "-" sign if generated from Alexa and no "-" if coming from GH.

@coldfire84 coldfire84 self-assigned this Dec 10, 2020
@coldfire84 coldfire84 added the enhancement New feature or request label Dec 10, 2020
@coldfire84
Copy link
Owner

I'll add this to the next release of the nodes.

@woody4165
Copy link
Author

@coldfire84 Thanks!!

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

2 participants