coldfire84 / node-red-alexa-home-skill-v3-web

Web Service/ API for Alexa and Google Home Node-RED Smart Home Control
https://red.cb-net.co.uk/
Apache License 2.0
51 stars 7 forks source link

Cannot access the deviceId of Alexa device responding #135

Closed s3frank closed 3 years ago

s3frank commented 3 years ago

I apologize upfront, this is not a bug report I think...maybe feature request. But I am trying to understand how to get a unique ID of some form that helps me to know in my flow which alexa echo dot in my house is responding. The idea being to have one Fan flow and dynamically based on the device know which fan to turn on or off.

Any help with that would be hugely appreciated.

coldfire84 commented 3 years ago

Some devices already support room awareness, such as lights, so, assuming you have a room, with a light and assigned Echo device, you can just say "Alexa, turn off the light."

The issue you've run into is that room awareness does not extend to all devices, as-per the feature request here to extend room awareness to cover additional devices: https://alexa.uservoice.com/forums/906892-alexa-skills-developer-voice-and-vote/suggestions/41106895-context-awareness-room-awareness-for-any-device

Last time I checked, there is no information regarding the originating Echo device in any command issued, essentially Room Awareness is designed to eliminate the need for this, albeit Amazon have stopped short of what you'd expect it to offer.

s3frank commented 3 years ago

Thanks. If I understand the two paths for me it's:

1) commit to groups and expose my devices directly via home assistant to alexa and use the models and groups native to alexa.

2) create virtual devices as lights via nodered for all so I can make generic flows that act on the correct room based on a variable injecting the room context. I got that working via a local alexa nodered node. But the limitation is everything is a light basically.

-FF

Sent from my mobile, powered by Frank's thumbs!

On Sun, Dec 6, 2020, 06:08 coldfire84 notifications@github.com wrote:

Some devices already support room awareness, such as lights, so, assuming you have a room, with a light and assigned Echo device, you can just say "Alexa, turn off the light."

The issue you've run into is that room awareness does not extend to all devices, as-per the feature request here to extend room awareness to cover additional devices: https://alexa.uservoice.com/forums/906892-alexa-skills-developer-voice-and-vote/suggestions/41106895-context-awareness-room-awareness-for-any-device

Last time I checked, there is no information regarding the originating Echo device in any command issued, essentially Room Awareness is designed to eliminate the need for this, albeit Amazon have stopped short of what you'd expect it to offer.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/coldfire84/node-red-alexa-home-skill-v3-web/issues/135#issuecomment-739422664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQW7CVXDOJDQ7IFAW2UVSTSTKVNJANCNFSM4UOTTBWA .