For the record: the HA docker container does not come with jq, so you need to use the alexa_remote_control_plain.sh instead (or build your own custom docker image).
Otherwise you’ll see the same (misleading) error message as Bobby_Noble above.
@sebk-666 where can I download this alexa_remote_control_plain.sh?
Now I am getting:
pi@hassbian:/home/homeassistant/.homeassistant/thinker $ sudo sh alexa_remote_control.sh -a
cookie does not exist. logging in …
device list does not exist. downloading …
the following devices exist in your account:
alexa_remote_control.sh: 467: alexa_remote_control.sh: jq: not found
The “plain” script has some restrictions, though: apparently it doesn’t support the “-i, -p, -P and -S” switches, using the ALL device name or radio station names.
Sebastian
PS: but since you seem to run on hassbian - can’t you just do an apt-get install jq?
I’m just guessing - I have never used hassbian…
Have installed your script but am getting stuck before it even tries to run. I sure I’ve probably just missed something simple but would appreciate an opinion.
The original wrapper script is called alexa_wrapper.sh - you left out the .sh extension.
If you named the file without the .sh extension, that’s fine too.
Anyway, a wrong file name should not cause the service to be ignored, it would still be callable and then fail.
Did you run a config test (python -m homeassistant --config /config --script check_config)?
@badgerhome What tmp files did you delete. I get the script working but it just wont speak. I have used uk setting but am located in sweden with amazon account using an us address. Maybe thats why?
Lol, did wonder why the .sh was missing in walthowd’s docs but didn’t try adding it as I don’t understand these things and assumed it was deliberate, works perfectly now
Anyone else having problems, the docs should read…
Thanks @sebk-666, _plan.sh is running now.
Same situation as @planet4, using the uk settings for us account, echo-dot won’t speak.
pi@hassbian:/home/homeassistant/.homeassistant/thinker $ sudo sh alexa_remote_control_plain.sh -d ‘Kitchen_Echo’ -e weather cookie does not exist. logging in … device list does not exist. downloading … sending cmd:weather to dev:Kitchen_Echo type:[commented out] serial:[commented out] customerid:[commented out] Sequence command: Alexa.Weather.Play
Loetzimmer’s notes say you can use multiroom groups as a device. I’ve tried making a group with two Dots in it but they don’t work and aren’t seen when you enter “/config/alexa_remote_control.sh -a”
I’m getting this error but login and pass are ok and it’s not asking for captcha on login screen.
Try logging in to https://alexa.amazon.com with your browser. In your browser
make sure to have all Amazon related cookies deleted and Javascript disabled!
(For more information have a look at /tmp/.alexa.login)
core-ssh:/config# ./alexa_remote_control.sh -d "Bedroom Echo Dot" -e speak:This_is_a_test!
cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
Try logging in to https://alexa.amazon.com with your browser. In your browser
make sure to have all Amazon related cookies deleted and Javascript disabled!
SOLVED!
This works for me:
I logged in to alexa.amazon.com with Chome and used the cookies.txt extension to export my amazon cookies to /tmp/.alexa.cookie
Surprised this hasn’t picked up more traction, people have been begging for Alexa TTS for ages and it’s so simple…or it is using code others have probably pulled hair over