myQ

Will there be an update from SimpleCommands for myQ? My account will no longer “link”. Hopefully so! 😀
12

Comments

330 comments
  • Works in Canada! Change the primary locale to English(CA)

    1
  • I followed the instructions on creating a skill. I can get the garage door to open but not close. I’ve deleted and setup the skill several times and still can’t get it to close. I followed
    Salam Dahbour directions step by stepp. Any ideas?

    1
  • I have the same issue my door will open and report a status but will not close! any help would be greatly appreciated.

    1
  • Brad Cromwell

    Are you controlling 1 door or multiple? I got mine to work switching these around my first door was 1 and second was 2. hope that helps

    Sometimes the garage door is defined not as the first door in the list of devices sent back from myQ. If you are having trouble try changing line 28.

    return result.devices[1].serial_number;
    

    to

    return result.devices[0].serial_number;
    
    1
  • What were your results when you ran it in test mode by "typing" the Ask Alexa command....Did it do all three in test mode? 

    1
  • for those of you that a struggling to get the right value for line 28 here is a way to figure out the right value.   

    just before line 28, add this line. console.log(result.devices);

    looks like this:

    Then hit the save and deploy button.   then do a test, no different than described above.  After the test go back to the Code tab.

    On the ribbon for this page you will see "Cloudwatch logs". Click on that.

    you will see a screen like this:

    Click on the first entry

    you will then see a screen like this:

    Click on the second arrow and it will open up the results with a list of all your devices,  it will look something like this:

    in the list there will be a href: entry for each device in you myq network.  the first device is device 0, in my case its named garage(See red arrow).  keep scrolling down and counting href: entries until you find the door your trying to control and that will be the number you put on line 28.

    Now don't forget when you put the right number in line 28 to delete the console.log line you added earlier.

    Hope this helps

    1
  • I'll assume you created a routine then with the "Ask Alexa To..." custom command. If you haven't done that, then you're basically cold-calling the skill...so techincially it's an "Ask Alexa To..." verbal command until you create a routine with a custom phrase like "Alexa, Open the Garage".....

    No routine...then you have to say it like "Alexa, ask garage door to open"

    1
  • OR...you can create a routine

    Routine Name: Open Garage
    When you Say: "Alexa, open the garage"
    Custom Command: "Alexa, ask the garage door to open" <--This is your skill

    Then create one for the opposite. You can make it so you can say anything you want as long as the final step is to run the skill command (custom command)...You could make it so you can say "Alexa, Drink a Beer"....as long as the custom command is "Alexa, ask the garage door to open"....you're fine....If you don't create the routines...then you have to speak "Alexa, ask the garage door to open " verbally...

    1
  • That is what I’m missing. I will try all the pieces I have between you and Pete. Thank you both. I will definitely let you know how it turns out.

    1
  • Pete...I will assume you are using the "Alexa, ask...." command strings when speaking to Alexa....If so, did you look at the instruction on changing the "serial" code line? I did not have to modify mine, but it seems others did....

    1
  • Daoasis...you should wipe the slate clean, and follow these instructions by Salam. They have been the most successful for everyone...he clears up some confusion on the github instructions..

    Yeah, the instructions on that package make some assumptions.  Hopefully, these are a little clearer.  It's a little long, but it's spelled out step by step...

    1. Download the code (makes things easier).
      - Go to https://github.com/spenwall/myq-alexa
      - Click the green "Code" button and click Download ZIP.
      - Unzip the downloaded file.
    2. Go to the Alexa Developer page
      - Go to https://developer.amazon.com/alexa/console/ask
      - You'll need to login to your Amazon account. I'm not sure, but you MAY need to register for a developer account as well. (I already had one, so I'm not sure if you need to or not.)
    3. Create a skill
      The link above will take you to the Developer Console page. On this page...
      - Click the Create Skill button.
      - On the Create a new skill page, enter/select the following...
    • Skill name: Enter a name for your skill. For example, "MyQ Garage Door".
    • Primary locale: English (US) (this is the default)
    • Choose a model to add to your skill: Custom (this is the default)
    • Choose a method to host your skill's backend resources: Alexa-hosted (Node.js) (this is the default)
    • Click the "Create skill" button at the top right of the page.
    1. Add Interaction Model
      At this point, you'll be on the Custom Skill Builder page.
      - On the menu on the left side of the page...
    • Click Invocations > Skill Invocation Name. Under "Skill Invocation Name", enter "garage door".
    • Click Intents > JSON Editor.
    • Open the alexa.json file (downloaded in step 1) in Notepad (or your favorite text editor). Select all the text in the file and hit Copy (Ctrl-C).
    • In the JSON Editor, Select all the text in the editor and hit Paste (Ctrl-V) to replace all the text in the window with the text from alexa.json.
    • You may optionally change the invocation name to something like "garage door" (or whatever you like) by editing line 4 in the window to say...
      "invocationName": "garage door",

    - Finally, click the "Build Model" button at the top of the page.

    1. Add the Code
      - Click on the word Code at the top of the page.

    - On the list of files at the left side of the page, double-click on index.js.
    - As above, open the downloaded file "index.js" in Notepad, and Copy all the text from the file. (Select all then Ctrl-C.) Then paste the text into the window. (Select all then Ctrl-V.)
    - In the window, on lines 8 & 9, enter your email & password for your MyQ account.
    - Click the Save button at the top of the page.

    - On the list of files at the left side of the page, double-click on package.json.
    - As above open the downloaded file "package.json" in Notepad, and Copy all the text from the file. (Select all then Ctrl-C.) Then paste the text into the window. (Select all then Ctrl-V.)
    - IF you changed the "invocationName" in step 4, you'll edit line 2 in the window and paste the same name in. For example, if you changed the invocation name to the following:
        "invocationName": "garage door",
    Then you'll need to change line 2 to the following:
        "name": "garage-door",
    (Note that it's the same name, but all spaces are replaced with hyphens.)
    - Click the Save button at the top of the page.

    1. Deploy
      Hit the Deploy button at the top of the page and let it build.
    2. Test
      - Click on the word Test at the top of the page.
      - Next to "Skill testing is enabled in:", select "Development".
      - In the "Type of click and hold the mic" button, enter a command like "Ask garage door to open". (You can also use a mic to say this command.)
      - You should hear your garage door open.

    This didn't work at first for me. So I had to do the following...
    - Click on the word Code at the top of the page.
    - On the list of files at the left side of the page, double-click on index.js.
    - Change line 28
        From...
          return result.devices[1].serial_number;
        To...
          return result.devices[0].serial_number;
    - Try step 7 again. It worked for me after doing this.

    1
  • I can put a screen shot up tomorrow of what mine does.

    1
  • Dedra....did you insure you have nothing else in Alexa that would have shared that name and removed it? For example..Any old scenes or devices that used that same name? Obviously all of us are here due to the Khloee SC Skill ending it's functioning, so insure that you have cleaned house in Alexa with any other references to "Garage Door"....

    1
  • Dedra… in regards to your post yesterday at 12:46, if you’re talking about what happens when you ask Alexa to open your garage, I had the same problem.
    I’m not a programmer by any means but I am pretty technical and uncovered the problem. It’s based on the identifier you’ve used to name the garage door. Alexa wants you to be “exact” in your voice command. For example, if you used the identifier “garage “ you can’t us a command to open “the” garage or garage “door”. You will want to use an identifier that is identical to the voice command you want to use. If you want to say open garage door then garage door needs to be the identifier. If you want to say open 3rd car garage make sure to use the identifier third car garage.
    This worked for me, I hope it helps you!

    1
  • So I finally got it to work and used the Amazon scale. It will open and close my garage door. However when I said it up for opening the garage door when my car gets close using an Alex routine, it doesn’t always open the door and sometimes it will open the door a half hour after I came home. Any ideas?

    1
  • Dedra Davis, I used the post that Charlie Welf had put to troubleshoot my issue.  It turns out I could see it was a login issue that was causing the garage not to be known.  If you do this, and look at the logs, it may be able to tell you what it happening.
    See Charlie's comments a page or 2 up, here is a snippet:

    for those of you that a struggling to get the right value for line 28 here is a way to figure out the right value.   

    just before line 28, add this line. console.log(result.devices);

    looks like this:

     

    Then hit the save and deploy button.   then do a test, no different than described above.  After the test go back to the Code tab.

    On the ribbon for this page you will see "Cloudwatch logs". Click on that.

    you will see a screen like this:

     

    Click on the first entry

    you will then see a screen like this:

     

    Click on the second arrow and it will open up the results with a list of all your devices,  it will look something like this:

     

    in the list there will be a href: entry for each device in you myq network.  the first device is device 0, in my case its named garage(See red arrow).  keep scrolling down and counting href: entries until you find the door your trying to control and that will be the number you put on line 28.

    Now don't forget when you put the right number in line 28 to delete the console.log line you added earlier.

    Hope this helps

    1
  • I was able to create the Alex skill and got it to Open or check status  but the skill does nothing when I ask it to close.  Any ideas? 

    My Skill Name is big door .  Here is the output from testing

     

    1
  • Figured out the error in my command so now everything seems to process correctly except the door doesn't actually open or close. The code works and says its opening but nothing is happening. Like its running without being connected to the actual myQ or something.

     

    Any Ideas?

    1
  • It was working beautifully for me, and now Alexa responds "the door is undefined", whether I try to open it or close it... Anyone has a suggestion why this is happening, and how to fix it?

    1
  • I am attaching photos for kloee....You must setup independent routines in kloee...one for open, one for close...with the action

    I also have to turn on/activate Voice Triggers so when the scenes pull into Alexa, it knows to utilize voice...I have included 3 screenshots...I called my "garage", "vault" so that it wasn't such an easy word for someone to try if they were yelling outside my garage (I have a dot inside the garage)

     

    1
  • Could someone please tell me what I'm doing wrong? I'm in the SC app on my iPhone and I see my two doors on All Items. From there, I can click into one, press Open and it opens. Same with Close. However, when I add the routine in SC, and then try to execute routine, it tells me something went wrong. But as I've read above, someone said to not test it here anyways. But I still can't get the scene discovered in the Alexa app. I've read conflicting posts about enabling voice companion within the SC app or not, so maybe I'm doing something wrong there?

    1
  • Mike Chambers, Definitely enable the voice companion as indicated in SwiftyRox’s post. Then the routines will be discoverable as scenes. Testing the routine in SC by executing the routine has continued to give me the Something wrong dialogue but Alexa somehow can make the routine a go.

    1
  • Mike Chambers, I feel you. I had the hardest time. But cookie SwiftyRox directions. Just as Blessing Dragon said. Once that’s done then it will discover your scenes.

    1
  • It sounds to me like people are making progress with Kloee and Alexa. As long as you followed my instructions w/ screenshots in SC/Kloee to setup the door routines and enable voice control....Just running a standard "Add/Discover" in your Alexa App should pull in the two "Scenes" that will come from Kloee

    IMPORTANT!!! YOU MUST add the Kloee for SC skill to your Alexa Skills....Don't add the standard Simple Commands Skill....When you are adding a skill...just search for "kloee" in the skills search....

    Once you have that added...then just run a generic "discover devices" in the Alexa app, and it will pull in the 2 scenes. From there...you can create whatever "routines" you want in Alexa...I have included screenshots of a couple of mine and the structure....The 3rd one is "Location Services" from Amazon Alexa...so it the "geofencing" principle...Once I enter a zone near my house...the door will open automatically....The other two are "voice command" routines..

    1
  • With MyQ API problems having cropped up four times in the last two years, someone in one of the two threads I've been following here in SC suggested using SwitchBot, which actually acts as an automated way to push the darn button in the garage to open or close it. SwitchBot integrates with Alexa, Siri Shortcuts, Google Home and IFTTT.

    As an FYI, it's 25% off on Amazon today. https://amzn.to/3ymH9U2, as is the hub needed with it, https://amzn.to/3jm8L7z. I ordered them this morning and Amazon says I'll have them by this afternoon. Will gladly report back, and if they are indeed FTW. The idea of never having to deal with the MyQ API again will hopefully be worth the $65 (including tax) this will cost. 

    1
  • Finally got my Alexa back up and running like it used to be. Both doors opening and closing, location set up so it opens when I arrive home, all is good. Thanks to everyone for all the great info!

    1
  • Another expression of "Thank You" to all the helpful Post'ers and to the SC folks who have cobbled this back together again.  It's great to have Alexa managing both my garage doors again!

    1
  • Hari....are you using the Kloee version of SC? 

    Edited: I guess there is only one app download...forgive me..

    That said...I'm not sure why your app won't let you login...someone else here surely must have an iphone....is there an update for the app?

    1
  • +1 on what SwiftyRox is saying to Jason.

    1
  • Swftyfox, that’s right tell him! Everyone has been very helpful in helping anyone with problems. During these times I’ve come across a lot of bad people. Being on this forum has restored my faith . Keep up the great work everyone!

    1

Please sign in to leave a comment.

Didn't find what you were looking for?

New post