I did chmod 777 rights for the files i also tried as sudo command. I did now test on a clean raspberry install . What python do you have installed? I also tried to do as the Homeassistant user with these file on /home/homeassistant/.homeassistant.
Can you comfirm what settings you have ? I didnt understand the PATH instruction should i just add after the line or just replace it?
This is my settings.
#LANGUAGE=“de-DE”
LANGUAGE=“en-GB”
#LANGUAGE=“en-US”
i never touched anything in the sections below where it says:nothing to configure below here.
i got this settings:
EMAIL='my email'
PASSWORD='my amazon pw'
LANGUAGE="de-DE"
#LANGUAGE="en-US"
AMAZON='amazon.de'
#AMAZON='amazon.com'
ALEXA='layla.amazon.de'
#ALEXA='pitangui.amazon.com'
# cURL binary
CURL='/usr/bin/curl'
# cURL options
# -k : if your cURL cannot verify CA certificates, you'll have to trust any
# --compressed : if your cURL was compiled with libz you may use compression
# --http1.1 : cURL defaults to HTTP/2 on HTTPS connections if available
OPTS='--compressed --http1.1'
#OPTS='-k --compressed --http1.1'
# browser identity
BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0'
i should expect to find a dir called tmp in the same dir as my shl file.
but there it isnt.
i dont know where the cookie is stored, but it works
edit:
found it i didnt think right. its not a subdir from the place where the file is but its in the root /tmp
but i guess you could create a dir anywhere and set it there when you make sure the filerights are right.
Yes i even get the info . Does it work for you if you change to UK lang?
homeassistant@hassbian:~/.homeassistant $ ./alexa_remote_control.sh -a
the following devices exist in your account:
Echodot
This Device
pi@hassbian:/home/homeassistant/.homeassistant $ ./alexa_remote_control.sh -d “Echodot” -e speak:This_is_a_test_longgggggggggggggggggggggggggggggggggggggggggggg_test
cookie does not exist. logging in …
device list does not exist. downloading …
sending cmd:speak:This_is_a_test_longgggggggggggggggggggggggggggggggggggggggggggg_test to dev:Echodot type:XXXXXXXXXX serial:XXXXXXXXX customerid:XXXXXXX
Sequence command: Alexa.Speak
I would change the tmp directory to alexa_temp inside your HAconfig folder and after saving the .alexa.cookie there chown it as homeassistant:homeassistant If that’s your HA username
Somewhere in the beginning of this thread someone else suggested it and there are more detailed instructions about it
this is about routines. so try to create 1 that gives the weather on a certain time.
if you can do so and that workes, it should work with this also.
if you have trouble creating and using routines, that could be your problem.
Your output is very similar to mine. In your case you are getting your device list, which means your credentials and cookies and such are working fine. I troubleshooted by first adding logging to the CURL command.
I changed the beginning of line 534, adding `"–trace-ascii -" to the CURL command. ${CURL} --trace-ascii - ${OPTS} -s -b ${COOKIE} -A "${BROWSER} ....etc
Once you do this, run the script from the command line, and you’ll see the raw request/reply message for the speak command. I could see it was making the request and getting a HTTP 400 (Bad Request) reply. In my case, the customerId for the device didn’t match my customerId. If you want to verify that, look at the data sent from the CURL command. Part of the data will have “customerId”:“XXXXXXXXXX”. That value should match the same customerId that is outputted from this page https://alexa.amazon.com/api/bootstrap (after signin).