you can create routines in the app.
and those routines you can activate.
so you can create a routine that puts on your coffemachine, tells your morgen report and says hi to you and after that starts some music.
and you can activate that routine when a motion detector detects you.
but you cant start a skill. because routine dont support that (yet)
Has anyone got to the bottom of the no audio problem? I an log in, get a list of devices & send a command, but I never get any response out of Alexa.
I switched curl to verbose mode & it’s not reporrting an error,
* upload completely sent off: 396 out of 396 bytes
< HTTP/1.1 200 OK
I’ve tried a TTS command & traffic, and I get the same silnce, but if I say alexa, what's the traffic I get a response so Alexa’s working properly apart from this.
there are a few things that i noticed that can cause that
make sure that you use the same server in the code as where you have setup the alexa device (both in .de or both in .co.uk or …)
make sure that the alexa device is installed with the same account that you use to connect with the code
make sure that no other account is using the alexa device (some people have several accounts in the household, and the device is used by another account at that moment)
what the code actually does is mimic the alexa app.
so log on to the alexa app with the same account that you use the code for and try if you can create a routine and start that from the app.
I’ve got alexa working with the command prompt, but cannot call it in any other way.
if i use: ./alexa_remote_control.sh -d "Karls Office" -e speak:" GO AWAY"
She speaks, I can see that the two files are located inside my alexa folder within HA along with .alexa.cookie and .alexa.devicelist.json but they dont show up for some reason. (I’m using docker on unraid, and i’ve used cloud commander to check files are present, all files are owned by root, and both of the scripts have +x applied to them.)
# cd /config/alexa
# dir
alexa_remote_control.sh alexa_wrapper.sh
#
If i then try and run
./alexa_wrapper.sh -d "Karls Office
i get an error:
sh: 53: ./alexa_wrapper.sh: not found.
which, i’m guessing when I try and call the notify script in HA i’m getting the following error in the log file.
that command will only work if you are in the dir where the file alexa_wrapper.sh is located and the file needs to have filerights for the user that you are trying to start the command with.
@juan11perez I am looking at you post that describes how to use it with docker. I was able to install the script and do a test, So far so good.
But I am trying to understand where you place the “platform: command_line” statement. Does that go under your “notify:” category? If so, did you create on for each echo/dots that you have?
Lastly, could you share an example on how you send text to be spoken? Thanks
@juan11perez
So I tried a reboot with your approach of copying the .alexa.cookie back in the /tmp directory.
I really like this approach as I want to stay away from modifying the script as much as possible, so if there is a new version, I don’t have to start thinking of what I did to the script. SO I tried a reboot and the cookie file did not copy over to the /tmp directory
But if I run the command by itself on a command prompt:
ssh -l hass 192.168.1.XXX “sudo cp ~/.cookies.txt /tmp/.alexa.cookie && sudo chmod 777 /tmp/.alexa.cookie && ~/docker/homeassistant/assistant_components/alexa_notify/alexa_remote_control.sh -a”
I see that it’s asking me for a password. As soon as I enter it, the statement executes flawlessly.
Do you know what you did to get around this? Did you ever generate ssh keys on your host?
I am looking for a solution, but don’t see anything that I really like so far.
I’m sorry, but got stuck at the step after test TTS by running: ./alexa_remote_control.sh -d “Bersenev Echo Dot” -e speak:This_is_a_test!.
It works, but can’t configure notifications in HA.
What I tried:
I changed a path in alexa_wrapper.sh from PATH=/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin
to
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
by using echo $PATH in Putty