Alexa Remote2 stops talking

As mentioned above....try cakebaked. It is working well for me. I am currently trying injecting cookie every 24 hours.

1 Like

For me cakebaked is not working anyway.

After first inizialization, as soon as I Deploy something I am getting "Error while checking Authentication: Error: no JSON" message.

To everyone: this node has been forked!

Please read here: This module has been forked because the maintainer had disappeared. PLEASE READ! · Issue #201 · 586837r/node-red-contrib-alexa-remote2 · GitHub

2 Likes

Can someone be so kind as to explain how to refresh the cookie file and have it INIT let's say every hour?
I see people here talking about it, but it is obvious that I am not smart enough to understand without pictures!

Also, anyone found a better alternative that is rock solid yet? Love the idea of having Alexa announce, or just say stuff when certain things happen, but SUCKS when it just randomly stops.

Hope if this helps. it been working for me now for quite some time where before it would just stop working every day.

so this is the flow i have, no idea if this what has sorted it.

[{"id":"e0083a78.1fcd58","type":"group","z":"5c0266f6.1b3f78","name":"","style":{"stroke":"#ffcf3f","fill":"#ffefbf","label":true},"nodes":["675460ec.13bd78","ebd93115.caa3f8","85cc1a9e.98baf","fe958c08.c5ee38","679b5d5a.d143b4","9262897.11cae78","79cf360a.a49148","b613adcd.84e2f","d9d21565.dec6","d3a73930.50f9b8","863ad3bc.99d47","1208dba6.c05524"],"x":34,"y":319,"w":852,"h":262},{"id":"675460ec.13bd78","type":"inject","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":true,"onceDelay":"0.5","topic":"","payload":"alexa","payloadType":"flow","x":150,"y":540,"wires":[[]]},{"id":"ebd93115.caa3f8","type":"trigger","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","op1":"","op2":"","op1type":"pay","op2type":"pay","duration":"10","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":350,"y":360,"wires":[["85cc1a9e.98baf"],["fe958c08.c5ee38"]]},{"id":"85cc1a9e.98baf","type":"change","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":420,"wires":[["679b5d5a.d143b4"]]},{"id":"fe958c08.c5ee38","type":"alexa-remote-init","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"Initialise","account":"f4d9fba3.0c4f08","option":"initialise","x":560,"y":380,"wires":[["9262897.11cae78"]]},{"id":"679b5d5a.d143b4","type":"trigger","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","op1":"alexa","op2":"0","op1type":"flow","op2type":"str","duration":"-30","extend":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":500,"y":480,"wires":[["b613adcd.84e2f"]]},{"id":"9262897.11cae78","type":"change","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","rules":[{"t":"set","p":"alexa","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":380,"wires":[["79cf360a.a49148"]]},{"id":"79cf360a.a49148","type":"trigger","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","op1":"","op2":"alexa","op1type":"nul","op2type":"flow","duration":"30","extend":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":310,"y":480,"wires":[["679b5d5a.d143b4"]]},{"id":"b613adcd.84e2f","type":"change","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"alexa","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":480,"wires":[["d9d21565.dec6"]]},{"id":"d9d21565.dec6","type":"alexa-remote-init","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"refresh Cookie","account":"f4d9fba3.0c4f08","option":"refresh","x":780,"y":540,"wires":[["9262897.11cae78"]]},{"id":"d3a73930.50f9b8","type":"inject","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"alexa","payloadType":"flow","x":540,"y":540,"wires":[["d9d21565.dec6"]]},{"id":"863ad3bc.99d47","type":"catch","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","scope":["20baae0e.ce9082","36f7cc0a.9f479c","ff75ab6f.05e978","7be2ba81.886ae4","fe958c08.c5ee38","d9d21565.dec6"],"uncaught":false,"x":190,"y":360,"wires":[["ebd93115.caa3f8"]]},{"id":"1208dba6.c05524","type":"inject","z":"5c0266f6.1b3f78","g":"e0083a78.1fcd58","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"*/30 0-22 * * *","once":true,"onceDelay":0.1,"topic":"","payload":"alexa","payloadType":"flow","x":170,"y":400,"wires":[["ebd93115.caa3f8"]]},{"id":"f4d9fba3.0c4f08","type":"alexa-remote-account","name":"AlexaRemote","authMethod":"proxy","proxyOwnIp":"192.168.0.26","proxyPort":"3456","cookieFile":"/mnt/dietpi_userdata/node-red/cookie.txt","refreshInterval":"3","alexaServiceHost":"alexa.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-UK","userAgent":"","useWsMqtt":"on","autoInit":"off"}]

and the Alexa Config details.

Why all that complex stuff??
You are saving the cookie in a file (from your settings), but the flow use a variable for the cookie!

I am just injecting every hour a timestamp in the Alexa Init node (saving the cookie to a file). That's it!

indeed.. the flow was from an earlier post.. honestly it was a copy and paste lol.
the Setting bit is where i think it is working now.. for the FilePath i made sure it pointed to a file that did not exist so it created it with the required permissions.

So either 1 is making it work or 1 of them is.. i haven't really tried disabling either.. as like i said it been working fine for months so its like tempting fate to go poking around now :slight_smile:

Has anyone managed to get this working in the last few days??

I had a flow working fine until a couple of days ago and now it has stopped and gives this error message.
Screen Shot 04-17-21 at 11.55 AM

I've also tried 'alexa-remote2-v2' (as the last update was done 2-weeks ago) but this gives the same error message.

I think the problem may relate to the cookie file not being created.

Any help or advice would be appreciated.

Dave try

updating remote2 config from proxy to cookie, save, and then back again to proxy.
or
sign into layla.amazon.co.uk and then export the amazon.co.uk cookie using a browser addon, then replace the cookie in the config with the exported cookie.

Still working for me - not noticed any issues recently- apart from the normal, random not speaking - cured by injecting into an Init node as usual

well i did try disabling that whacky flow i had posted earlier and now everything has stopped working... once enabled and i had to deploy a few times before everything started working again.. so yeah.. whatever it does im sure it could be streamlined.. but for now it works and has been working so will stick to dont touch something it is working even if it can't make sense of it ... :smiley:

I performed a similar set of steps as @Kazzy and eventually got Alexa Remote2-v2 working again!!!

I ended-up stripping my flow down so it just used an 'inject' node to initialise the Alexa node.

Here's a screen-shot of the flow to send a personalised daily weather forecast to a certain room.

How rude, lol

I have refined(made wackier) the flow and now catch errors instead of every 30 seconds here is my even wackier flow

[{"id":"c1d02579.8dd7f8","type":"catch","z":"d629013b.18a518","name":"","scope":["1342bc23.22e3d4","b0247e21.49ed4","ee1c43f5.6ce74","afc76d2.928769","c702ee2c.c5df1","4426d9c1.366af8"],"uncaught":false,"x":60,"y":1540,"wires":[["43c99ec9.a77cd8","977379b6.027"]]},{"id":"43c99ec9.a77cd8","type":"debug","z":"d629013b.18a518","name":"catch alexa error","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":" $moment().format(\"ddd HH:mm:ss\")","statusType":"jsonata","x":180,"y":1640,"wires":[]},{"id":"977379b6.027","type":"switch","z":"d629013b.18a518","name":"","property":"_error","propertyType":"msg","rules":[{"t":"eq","v":"Error: no JSON","vt":"str"},{"t":"eq","v":"Error: account must be initialised before refreshing","vt":"str"},{"t":"eq","v":"Error: Error while checking Authentication: Error: no JSON","vt":"str"},{"t":"eq","v":"Error: Account not initialised!","vt":"str"},{"t":"eq","v":"Error: Authentication failed: \"no JSON\"","vt":"str"},{"t":"cont","v":"Error: unexpected response layout:","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":200,"y":1540,"wires":[["b077099a.34df38"],["b077099a.34df38"],["b077099a.34df38"],["b077099a.34df38"],["b077099a.34df38"],["b077099a.34df38"]]},{"id":"b077099a.34df38","type":"change","z":"d629013b.18a518","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"alexa","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1600,"wires":[["adf5f259.7f8de8"]]},{"id":"adf5f259.7f8de8","type":"delay","z":"d629013b.18a518","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":410,"y":1520,"wires":[["c702ee2c.c5df1"]]},{"id":"b28547b3.2aeac8","type":"link in","z":"d629013b.18a518","name":"speak payload null in","links":["c139818d.d137c"],"x":255,"y":1600,"wires":[["b077099a.34df38"]]},{"id":"c702ee2c.c5df1","type":"alexa-remote-init","z":"d629013b.18a518","name":"Initialise","account":"b0877f3.836aa","option":"initialise","x":290,"y":1460,"wires":[["fc0183e2.5e7c2"]]},{"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":[["c702ee2c.c5df1"]]},{"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":"421c02e9.68fdec","type":"debug","z":"d629013b.18a518","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":" $moment().format(\"ddd HH:mm:ss\")","statusType":"jsonata","x":650,"y":1520,"wires":[]},{"id":"b0877f3.836aa","type":"alexa-remote-account","name":"alexaremote2 ","authMethod":"proxy","proxyOwnIp":"192.168.1.25","proxyPort":"3456","cookieFile":"alexa-remote2.txt","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-UK","userAgent":"","useWsMqtt":"on","autoInit":"off"}]

@E1cid i couldnt remember who posted that flow as i was going through loads of at the time.. so big thank you as it was driving me mad it not working. which is stupid for this node having to have such hand holding to make it work.

Can you screenshot the new flow so we can compare the two .

Thanks,.

@E1cid sorry to say that new version of the flow does not work for me.. within a few days it no longer did any speech.. only way was to manual to run the Inject node again.. i guess the default run every 24hours is too much of a gap for the Alexa node to go work..

the AlexaNode is really the stupid one. going to try increasing the times in the Inject node runs and see if i can find that sweet spot.

Cheers.

There is a link in node that you can link from the speech node to check if the payload is null. So if speech output payload is null it will re initiate.
eg.

[{"id":"b0247e21.49ed4","type":"alexa-remote-routine","z":"d629013b.18a518","name":"Custom Speak","account":"b0877f3.836aa","routineNode":{"type":"custom","payload":{"type":"msg","value":"payload"}},"x":570,"y":260,"wires":[["d2ba76f8.ebd998","22b7117c.322e06","ad337837.07497"]]},{"id":"ad337837.07497","type":"switch","z":"d629013b.18a518","name":"","property":"payload","propertyType":"msg","rules":[{"t":"null"}],"checkall":"true","repair":false,"outputs":1,"x":640,"y":200,"wires":[["c139818d.d137c","d2ba76f8.ebd998"]]},{"id":"c139818d.d137c","type":"link out","z":"d629013b.18a518","name":"speak payload null out","links":["b28547b3.2aeac8","a3f37c3.5ae778"],"x":745,"y":180,"wires":[]},{"id":"b0877f3.836aa","type":"alexa-remote-account","name":"alexaremote2 ","authMethod":"proxy","proxyOwnIp":"192.168.1.25","proxyPort":"3456","cookieFile":"alexa-remote2.txt","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-UK","userAgent":"","useWsMqtt":"on","autoInit":"off"}]
1 Like

Could u post your init flow?

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