# Alexa "Echo Node" how to input a device name or SerialNumber, to get information about the device

**URL:** <https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020>\
**Category:** General\
**Tags:** node-red-contrib-alexa-remote2-applestrudel\
**Created:** [23 July 2023 12:30 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020 "2023-07-23T12:30:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [23 July 2023 12:30 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/1 "2023-07-23T12:30:40Z")

</div>

Hi,  
I want to send a Message to the Alexa-Echo-Node, with a deviceName to information about the device.  
I tried payload,device,deviceName,name,id ... and others.

 ![Bildschirmfoto 2023-07-23 um 14.26.18](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2bca05e2ac0b9eeec1732f8ee06e6d38e5eb7e99.png)

 ![Bildschirmfoto 2023-07-23 um 14.13.58](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f034b48ab7c01074912b185b12526f7bdf60eca.png)

AlexaEcho:

This is working well, but I want to change the device or deviceID, this is not working dynamically

:o( can anybody help?

---

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [23 July 2023 12:31 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/2 "2023-07-23T12:31:54Z")

</div>

![Bildschirmfoto 2023-07-23 um 14.14.18](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/1989da71f2bf6902366885b1c8689af73e658844.png)  
This is the picture I can't publish in the first post

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [23 July 2023 13:24 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/3 "2023-07-23T13:24:49Z")

</div>

You can input the name or id of the echo using any msg property you wish. In this example I have use msg.payload  
e.g.

```auto
[{"id":"d4e55e1616b67743","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"G056756df430C6","payloadType":"str","x":160,"y":3060,"wires":[["7e86a25a34159dd7"]]},{"id":"d0bf7757ada5ae32","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Lounge","payloadType":"str","x":150,"y":3020,"wires":[["7e86a25a34159dd7"]]},{"id":"7e86a25a34159dd7","type":"alexa-remote-echo","z":"b9860b4b9de8c8da","name":"","account":"c8738129.d902c","config":{"option":"get","value":{"what":"bluetooth","device":{"type":"msg","value":"payload"}}},"x":390,"y":3020,"wires":[["ed8a158fd90c551c"]]},{"id":"ed8a158fd90c551c","type":"debug","z":"b9860b4b9de8c8da","name":"debug 324","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":490,"y":3100,"wires":[]},{"id":"c8738129.d902c","type":"alexa-remote-account","name":"alexa remote 2","authMethod":"proxy","proxyOwnIp":"localhost","proxyPort":"3456","cookieFile":"","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-GB","onKeywordInLanguage":"","userAgent":"","useWsMqtt":"on","autoInit":"off"}]

```

 ![chrome_screenshot_1690118734304](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51b7ef023f51cbf0232a8e0813f2169e72d5bb68.png)

 ![chrome_screenshot_1690118558507](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/3669401306f0342b3d5269686f6e827b39e17536.png)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 July 2023 14:01 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/4 "2023-07-23T14:01:00Z")

</div>

I use a technique just like @E1cid to capture a response from Alexa and use that to direct the resultant message to the appropriate Alexa device.

 ![capture_response](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44356fd1d8735fb57b9d3bae6c599b48d07fefc2.png)

 ![capture_response_B](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f2a34bbb3021256b3ea566599187c9122ef0dd33.png)

![capture_response_C](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cb243016c43cf53a7a01dc1aedbf42a00847084a.png)

I have a flow that is triggered every morning at 7:00am that goes and gets the weather forecast for my town, then sends it to the Alexa in my Back Bedroom.

During the day I can utter the words... "Alexa, give me a weather report". To which she reponds (using BluePrints) - "OK - please wait while I check the piece of sea weed". I trap this response and pick-up the name of the device that was used in this discourse. In this example it was... "Device\_name is Study" which is copied into msg.destination. As you can see this part of the message is used in the "Alexa\_Routine" node to route the response to the appropriate Alexa device.

---

<div class="post-metadata">

**Author:** ![wwyyrrmm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wwyyrrmm/32/75728_2.png) [@wwyyrrmm](https://discourse.nodered.org/u/wwyyrrmm)\
**Post date:** [23 July 2023 16:29 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/5 "2023-07-23T16:29:12Z")

</div>

Crazy, thank you very much. It takes a while to find the msg.payload option in the node. I was blind, because, if you have selected a device in drop down combobox, the msg option is no longer visible, after I select the list button on right, and select the serialnumber of the device, I was able to select the msg.payload.

Thank you very much,

---

<div class="post-metadata">

**Author:** ![haegar33](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haegar33/32/38805_2.png) [@haegar33](https://discourse.nodered.org/u/haegar33)\
**Post date:** [4 August 2023 15:21 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/6 "2023-08-04T15:21:22Z")

</div>

Did anyone notice the same? Alexa device listening node is no longer working. 🙄 The authors of this node are aware of the problem

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [4 August 2023 15:36 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/7 "2023-08-04T15:36:27Z")

</div>

This is the thread for the recent issue - not this one 🙂

> [@Alexa Remote2 event nodes not working (again)](https://discourse.nodered.org/t/alexa-remote2-event-nodes-not-working-again/80266):
>
> I know at least a few of us use this node, it seems to be broken again. There are lots of reports on GitHub but no solutions. Has anyone here found a fix ?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [4 August 2023 16:04 UTC](https://discourse.nodered.org/t/alexa-echo-node-how-to-input-a-device-name-or-serialnumber-to-get-information-about-the-device/80020/8 "2023-08-04T16:04:11Z")

</div>


