Giter VIP home page Giter VIP logo

Comments (6)

Apollon77 avatar Apollon77 commented on July 30, 2024

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.

PlayedIn avatar PlayedIn commented on July 30, 2024

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.

adn77 avatar adn77 commented on July 30, 2024

I have to check if device names containing spaces are properly escaped...
Will get back later today.

from alexa-remote-control.

PlayedIn avatar PlayedIn commented on July 30, 2024

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.

PlayedIn avatar PlayedIn commented on July 30, 2024

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.

PlayedIn avatar PlayedIn commented on July 30, 2024

Ok well thanks for providing this script.

from alexa-remote-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.