# Node red and Alexa remote

**URL:** https://discourse.nodered.org/t/node-red-and-alexa-remote/93217
**Category:** General
**Created:** [18 November 2024 10:03 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217 "2024-11-18T10:03:22Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 10:03 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/1 "2024-11-18T10:03:22Z")

</div>

Hi Chaps.  
After a reinstall of Raspberry Pi OS, I have managed to get my Node Red instance working again by importing a previously backed up JSON file with all my home automation flows. I had to install a few extra nodes including Alexa-remote2-applestrudel. This is where the problem lies, I cannot reinitialise this set of smart home nodes to communicate with my Alexa account. The message in Node red to open [http://192.168.1.XXX:3456](http://192.168.1.XXX:3456) is complied with and login to my Alexa account. Entering my credentials and receiving a code on my phone is also performed only to receive a message that the page could not be found. I have read that other folks are having the same issues, and the conclusion seems that it is no longer possible to link Node Red to Alexa. My question is: has anyone managed to regain the Alexa functionality from Node Red or is it lost forever?  
Thank you for any guidance.

---

<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: [18 November 2024 11:38 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/2 "2024-11-18T11:38:35Z")

</div>

It is very hit and miss and usually involves sacrificing a small animal!

Also, I've found best to do it on Tuesdays 🙂

Eventually, on about the 15th attempt it might work

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 11:50 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/3 "2024-11-18T11:50:23Z")

</div>

Hmmm that easy eh?  
Annoying thing is, if I boot from my old SSD with old OS, the Node red instance there will allow the Alexa node will connect. I wonder if its just a matter of identifying and copying a configuration file across to the new OS.

---

<div class="post-metadata">

### Author: ![Johnnybegoode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnybegoode/32/88032_2.png) [@Johnnybegoode](https://discourse.nodered.org/u/Johnnybegoode)
#### Post date: [18 November 2024 11:52 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/4 "2024-11-18T11:52:08Z")

</div>

I have found also that this page is sometimes very difficult to load. It does though, in the end, and just recently after success I implemented this solution for proxy.  
[How to get your Alexa cookie](https://discourse.nodered.org/t/how-to-get-your-alexa-cookie/88174)?

I can see the saved Alexa cookie in the context folder (Filebrowser on an iHost), which refreshes periodically and so far everything is running great.

---

<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: [18 November 2024 11:52 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/5 "2024-11-18T11:52:52Z")

</div>

Who knows!

It's one of the flakiest things I've ever had the misfortune to work with

For some people, it failed about 3 years ago and they never managed to get it going again

It stopped working for me for about 2 months once ☹

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 12:20 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/6 "2024-11-18T12:20:48Z")

</div>

I seem to be lucky then as it was working fine until I re-installed the Raspberry pi OS. I was wondering if I could copy the AuthFile from the old install to the new if only I knew where it was located.

---

<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: [18 November 2024 12:45 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/7 "2024-11-18T12:45:31Z")

</div>

If the old OS connects, and you save the alexa login cookie to context you can simply move the logincookie to the new OS.  
I use this simple flow to renew and save logincookie. I copy the context to a new machine and avoid the :3456 login hassle.

```auto
[{"id":"48d034130f262ec8","type":"inject","z":"e1ef5728e9206b4a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 02 * * 5","once":true,"onceDelay":0.1,"topic":"","payload":"#:(file)::alexa","payloadType":"flow","x":150,"y":620,"wires":[["f78696691771c3ee"]]},{"id":"f78696691771c3ee","type":"alexa-remote-init","z":"e1ef5728e9206b4a","name":"","account":"c8738129.d902c","option":"initialise","x":360,"y":620,"wires":[["3b6342b82af27c5f"]]},{"id":"3b6342b82af27c5f","type":"change","z":"e1ef5728e9206b4a","name":"","rules":[{"t":"set","p":"#:(file)::alexa","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":600,"wires":[[]]},{"id":"c8738129.d902c","type":"alexa-remote-account","name":"alexa remote 2","authMethod":"proxy","proxyOwnIp":"localhost","proxyPort":"3456","cookieFile":"/data/data/com.termux/files/home/.node-red/.alexa.cookie","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","pushDispatchHost":"","amazonPage":"amazon.co.uk","acceptLanguage":"en-GB","onKeywordInLanguage":"","userAgent":"","usePushConnection":"on","autoInit":"off","autoQueryActivityOnTrigger":"off"}]

```

Obviously you have to have logged in at least once. and save the logincookie

 ![chrome_screenshot_18 Nov 2024 12_43_04 GMT](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/feffd1677f42887ab5fb8661b67be8567ac590e9.png)

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 12:54 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/8 "2024-11-18T12:54:56Z")

</div>

Thanks for that. Any idea how/where to find then move the old cookie? Sorry not very good at this stuff.

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 13:05 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/9 "2024-11-18T13:05:47Z")

</div>

I didn't really specify a location in the file path box (I know I should have) just typed authFile so just wondering where it might be located.

 ![Alexa authfile](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d190e2524a178c5a32dff1b0501d1a3fe98dc37d.jpeg)

---

<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: [18 November 2024 13:17 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/10 "2024-11-18T13:17:25Z")

</div>

I do not use auto init. You have set a path of authFile, so why not search you system for that directory.

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [18 November 2024 13:19 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/11 "2024-11-18T13:19:17Z")

</div>

Yes I'll have a search and see where it is

---

<div class="post-metadata">

### Author: ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)
#### Post date: [19 November 2024 10:53 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/12 "2024-11-19T10:53:36Z")

</div>

Just to draw a line under this post, I managed to locate and copy the authFile file from my old installation to my new one and it is now working as before, my Alexa remote node is initialising with my Alexa account. Thanks again for your time in helping me.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 December 2024 10:54 UTC](https://discourse.nodered.org/t/node-red-and-alexa-remote/93217/13 "2024-12-03T10:54:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
