# Alexa-remote2 On HA, on a Pi4 what do I enter for the File Path

**URL:** <https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583>\
**Category:** General\
**Created:** [1 December 2021 14:48 UTC](https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583 "2021-12-01T14:48:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveTiff](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DaveTiff](https://discourse.nodered.org/u/DaveTiff)\
**Post date:** [1 December 2021 14:48 UTC](https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583/1 "2021-12-01T14:48:50Z")

</div>

Hi, very new to Node-Red trying to set up node-red-contrib-alexa-remote2-applestrudel.

When I deploy I always have to go to my browser, the authentication is not being save.

In my path I have "/usr/share/hassio/homeassistant/node-red" (got from another forum)

it also said I need to add this in the "config /config/node-red/amazon.txt" but no idea where to put this.

Can anybody advise me.

Many thanks, Regards, Dave

---

<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:** [1 December 2021 16:35 UTC](https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583/2 "2021-12-01T16:35:05Z")

</div>

I used to just have cookie.txt, this would save in the home folder, as it is taken a relative path. You couild also use the absolute path from root.

I do not set a file path any longer, or auto init and use the init node and save the resulting cookie to a flow context and load the cookie from flow context cookie in the inject.  
e.g.

```auto
[{"id":"e63c03b3.745b48","type":"inject","z":"d629013b.18a518","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"86400","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"alexa","payloadType":"flow","x":100,"y":1460,"wires":[["89e02d64.da77c8"]]},{"id":"89e02d64.da77c8","type":"alexa-remote-init","z":"d629013b.18a518","name":"","account":"c8738129.d902c","option":"initialise","x":290,"y":1460,"wires":[["fc0183e2.5e7c2"]]},{"id":"fc0183e2.5e7c2","type":"change","z":"d629013b.18a518","name":"","rules":[{"t":"set","p":"alexa","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":1460,"wires":[["421c02e9.68fdec"]]},{"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","userAgent":"","useWsMqtt":"on","autoInit":"off"}]

```

---

<div class="post-metadata">

**Author:** ![derail\_green](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@derail\_green](https://discourse.nodered.org/u/derail_green)\
**Post date:** [13 January 2022 08:36 UTC](https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583/3 "2022-01-13T08:36:49Z")

</div>

This solution is bloody brilliant. I've been having issues with Timeouts and the node deciding I was no longer initialized. No issues after employing this method. Thanks for this!

---

<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:** [14 March 2022 08:37 UTC](https://discourse.nodered.org/t/alexa-remote2-on-ha-on-a-pi4-what-do-i-enter-for-the-file-path/54583/4 "2022-03-14T08:37:27Z")

</div>

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