Comments (6)
Can you trigger the same action using the Alexa app on your mobile phone? Is it working when you start such a routine in the app?
from alexa-remote-control.
Yes just now tried it. The routine is "Alexa, Open Door". When I triggered it just now using the Alexa app on my phone, the garage door opened.
from alexa-remote-control.
I have to check if device names containing spaces are properly escaped...
Will get back later today.
from alexa-remote-control.
Thank you! Please know that it also doesn't work on my echoes that have no space. I have a dot called garage and also one called bathroom. See below:
core-ssh:/config/alexa# bash alexa_remote_control.sh -d 'Bathroom' -e automation:'Open Door'
sending cmd:automation:Open Door to dev:Bathroom type:A3S5BH2HU6VAYF serial:G090LF1073140NQA customerid:A17XZBYWJG1SFN
Running routine: Open Door
HTTP/1.1 0 x-amzn-RequestId: 69a7ee2e-f3ea-11e8-91f5-3185f340f4ee
Access-Control-Allow-Origin: https://alexa.amazon.com
Content-Encoding: deflate
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Thu, 29 Nov 2018 15:21:15 GMT
Connection: close
core-ssh:/config/alexa# bash alexa_remote_control.sh -d 'Garage' -e speak:'This is a test'
sending cmd:speak:This is a test to dev:Garage type:A3S5BH2HU6VAYF serial:G090LF0964860A5C customerid:A17XZBYWJG1SFN
Sequence command: Alexa.Speak
HTTP/1.1 0 x-amzn-RequestId: 98ddceed-f3ea-11e8-a77f-f3d91584ddf5
Access-Control-Allow-Origin: https://alexa.amazon.com
Content-Encoding: deflate
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Thu, 29 Nov 2018 15:22:34 GMT
Connection: close
from alexa-remote-control.
Cookie expired yesterday so my Hassio sensor.last_alexa stopped working. Tried to recreate the cookie the way I did initially in Firefox. Deleted all Firefox cookies, logged in successfully to Alexa.Amazon.com. Exported the cookie. Copied to same folder as Alexa_remote_control.sh. Ran the script but it kept saying the cookie was expired.
Recreated the cookie several times, always said it was expired. Enabled 2FA on Amazon. In Firefox, logged in to create the cookie. Exported it and the script worked with this cookie.
Then tried again to "speak" and also 'run a routine'. Both worked! Not sure why everything is working now. Any thoughts on this before I close this issue?
from alexa-remote-control.
Ok well thanks for providing this script.
from alexa-remote-control.
Related Issues (20)
- how to use "sound:<soundeffect_name>" HOT 4
- Tunein Jingle HOT 8
- "Phantom" device, how to remove?
- Seems answer from "-lastalexa" is changed by Amazon HOT 2
- 20220617 - "Strange" REFRESH_TOKEN generated by alexa-cookie-cli HOT 2
- Trouble Installing HOT 1
- setting default device to: ERROR: unknown device dev: HOT 10
- <InternalFailure/> from Play & Pause // parse error from jq? HOT 6
- Multiple errors "date: invalid date" HOT 14
- Can't get the script to speak HOT 5
- Old Linux Distri with jq 1.4 and curl 7.38 script error with solution ;-)
- Initial login page has changed HOT 2
- Failed writing body HOT 2
- ERROR: cookie retrieval with refresh_token didn't work HOT 2
- Error -lastalexa and -last command HOT 20
- Login procedure does not work anymore (even with new uri) HOT 2
- alexa_remote_control.sh dosn't recieve a cookie anymore... HOT 2
- Return code for commands given to alexa-remote-control HOT 1
- no idea how to use it
- ERROR: no CSRF cookie received HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexa-remote-control.