[RELEASE] MyQ Lite Door and Lamp Control (for Liftmaster/Chamberlain)

I can always confirm the garage status by sight or via my webcam, or myq app/account, I just need the voice integration with alexa to force open/close. This option would be great for opening & closing from my car since I have an echo in my car. Looking forward to the new code…

Hey, @soysauce – what is missing for the Alexa integration for you? I can say “Alexa, turn on garage door” and my door opens. Turn off closes the garage door.

Juan, I’m using MyQ Lite app without any tilt/garage sensors. I fooled it in the configuration process by using one of my spare door sensor. I can open it with Alexa but it will not close…probably because there’s no status report back from the sensor. I don’t really need to know the status since I can get that from my native MyQ app or my webcam…

1 Like

[quote=“soysauce, post:301, topic:49150, full:true”]
Juan, I’m using MyQ Lite app without any tilt/garage sensors. I fooled it in the configuration process by using one of my spare door sensor. I can open it with Alexa but it will not close…probably because there’s no status report back from the sensor. I don’t really need to know the status since I can get that from my native MyQ app or my webcam…
[/quote]Gotcha. I have a webcam too but it is nice being able to open/close from my phone and now Alexa. Although, I’ve never really used Alexa to open my garage door, but I just though of a routine I could create when coming down the stairs where my Echo Dot could respond to. Thanks! :slight_smile:

Brbeaird, Awesome application, my first use of an IDE application and all went well. Now controlling my 2 liftmaster garage doors via Smartthing. FYI did try see if google home could control but as of 12/2/2016 not able. Much appreciate effort folks have put into this. Below are some comments I have on the instructions provided in the readme file. I repeated instructions below with inserts marked by [CFS] for either clarification or items that I did differnet.

Note: I was not sure if I had to pair my stand alone tilt sensors prior to starting below steps. Once I started going through the process it was obvious I should have
Manually:
1.Log in to the SmartThings IDE. If you don’t have a login yet, create one.
2.Load contents of MyQ Lite in SmartApps section. From IDE, navigate to My SmartApps > + New SmartApp > From Code. Click Save. Click Publish > “For Me”
[CFS] Prior to Click Save. Click Publish > “For Me”, I had to click the ‘Create’ button at the bottom of the script text window
3.Load contents of MyQ Garage Door Opener in SmartDevices section. From IDE, navigate to My Device Type > + New SmartDevice > From Code. Click Save. Click Publish “For Me” for both devices

[CFS] ‘My Device Type’ was not in the navigation path ‘My Device Handlers’ was, so I used that.
[CFS] Prior to ‘Click Save. Click Publish “For Me” for both devices’ I had to click the ‘Create’ button at bottom of script window, also not sure what is meant by ‘both devices’ it seemed like only one deviece.

4.In your mobile app, tap the “+”, go to “My Apps”, furnish your log in details and pick your gateway brand, and a list of devices will be available for you to pick. After you choose your doors, you’ll then select the physical tilt sensor to go with each door.
[CFS] this is the part I was not paying attention to… I should have added the tilt sensors prior to starting above step. Wasn’t a big deal to recover, just backed out of the My Apps process, went back to ‘Things’ and added new tilt sensors. I then went back to ‘Automation’ -> SmartApps -> MyQ Lite and completed sign in/set up process.

SmartThings IDE GitHub Integration:
If you have not set up the GitHub integration yet or do not know about it, take a look at the SmartThings documentation here. Note that if you do not have a GitHub account or are not familiar with GitHub, the manual method of installation is recommended.
1.Add a new repository with user brbeaird , repository SmartThings_MyQ , and branch master . This can be done in either the “My Device Handlers” or “My SmartApps” sections
[CFS] prior to starting step 1 I had to
Click on enable GitHub button (upper right) in the ‘My Device Handler’ workspace. I created a user account, respond so their email to verify my email. I then logged back into SmatThing IDE and went back to ‘My device Handlers’ the ‘upate fro Repo’ tab was now available.
[CFS] It took me a bit to figure step one out. I did this using the following steps
Under ‘My Device Handlers’
Click on settings button (upper right)
Click on ‘add new repository’
For Owner: brbeaird
For Name: SmartThings_MyQ
For Branch: Master
Click save

2.Go to “My Device Handlers”. Click “Update from Repo”. Select the “SmartThings_MyQ” repository. You should see the device types in the “New (only in GitHub)” section. Check both boxes next to them. Check the “Publish” checkbox in the bottom right hand corner. Click “Execute Update”.
3.Go to “My SmartApps”. Click “Update from Repo”. Select the “SmartThings_MyQ” repository. You should see the SmartApp in the “New (only in GitHub)” section. Check both boxes next to them. Check the “Publish” checkbox in the bottom right hand corner. Click “Execute Update”.
4.In your mobile app, tap the “+”, go to “My Apps”, furnish your log in details and pick your gateway brand, and a list of devices will be available for you to pick.
[CFS] I did not need to do step 4. After step 3 I had control of doors. I had done the IDE steps prior to the IDE GitHub integration steps which may have eliminated my need to do step 4. This makes sense to me since I tried to control doors with no luck prior to GitHub integration

I could be wrong, but I’m pretty sure I’ve seen at least one report where people have been able to get Google Home to control the door device created by this app. I’ve got Alexa myself, so I can’t say for certain.

As for the instructions - thanks for the info. When I release the sensor-optional version in the next few weeks I’ll need to update the documentation anyway, so I’ll look over these tweaks as well.

Google Home works for me with your solution. I just have to say, “turn on the garage door” to open it or “turn off the garage door” to close it…open/close commands do not work for me.

Same here.

Making great progress on the update. It’s turning out to be a bit of a game changer as I think I’ve figured out how to keep nearly all the functionality of the app without the need for any sensors whatsoever. Should have something to test within a few days - I’ll be looking for a few brave volunteers to give it a shot soon. In the meantime, here’s a little preview of the new setup page…

4 Likes

I’ve been lurking hoping for a sensor free version for a while now so I can start to use it. I unfortunately bought the MyQ and another Chamberlain accessory days before my smartthings, and if I knew they wouldn’t work fully together, I would have bought something else :frowning: Looking forward to being able to use what I have without additional cost!

I had the issue with the “Unexpected Error has occurred” and I just wanted to reiterate for everyone go and check your device handlers to enable the garage door opener device. Now there is one more reply that will show up in searching this thread for anyone else…

Also, the multi-purpose sensor works great for this. Just choose the option to use it as a garage sensor when setting it up. In fact, I plan to leave it there even if a sensor is optional. Now I know how cold my garage is getting this winter.

Quick question - for those of you who say Alexa is able to control your garage door simply by saying "open " instead of "turn on " - did you really not have to do anything to make that work? I recently got an Echo Dot, and whenever I say “Alexa, open <door name” she just says something like “I’m not sure how to do that.” However, "turn on " works just fine.

Mine only responded to ‘turn on’ as well. I told it to forget the garage door though for security reasons. I want to set up a physical momentary switch for it once I find one.

Does anyone know if this will work with the Craftsman WiFi model garage door openers (not the ones with the Assurelink/Internet Gateway, but the direct WiFi ones)? These are made by Chamberlain and appear to be identical to the respective Chamberlain/Liftmaster models. Also, while I can add MyQ devices to my garage door online account through the Craftsman Garage Door app, they do not appear to use the same database/servers as Chamberlain, so maybe this smartapp could query the Sears servers for open/closed status rather than use a sensor.

And another possibility - since all signals to these WiFi door openers are transmitted via WiFi (rather than a proprietary frequency as is used by the MyQ/Assurelink/Internet Gateway models), shouldn’t you be able to see it’s open/closed status in the wifi stream of your router? I don’t know how to interpret WireShark so I can’t help there, but I’m sure someone does.

Getting into this only recently, so maybe this has all been explained already. Sorry if it is.

I think SmartThings and MyQ have made it clear they don’t want us constantly polling to get the status, and I can’t say I blame them. Even though the endpoint is slightly different for Craftsman, I imagine it’s still hosted by the same group, which means those attitudes against polling still apply.
[/quote]

I don’t have one of these, but my guess is that’s not quite how it works. I believe the WiFi being on the door itself simply removes the need for a separate gateway unit. There’s no way to sniff the door any easier than it is to sniff the gateway. While you may be able to see traffic flowing between the door and MyQ, I believe it would all be encrypted. That said, there are hackers out there that know a lot more than I do, so who knows…

I’d be happy to volunteer to test it. I have a Chamberlain garage door opener which has a provided tilt sensor. Since I can’t add the sensor separately to SmartThings, I am unable to get past the setup for MyQ Lite.

Good news, everyone! The new no-sensor version is ready to test! Here are the highlights:

  • During setup, choosing sensors is now optional! Even without sensors, you can open/close the door from the door device, from a routine, or from other apps like SmartTiles (using the momentary push button below)
  • There is now a second device type for a door with no sensor. The SmartApp will notice if you don’t choose a sensor and will use that type instead.
  • There is a new option to have additional Momentary Push buttons created. This creates two virtual push buttons for opening and closing the garage door. You can add these to SmartTiles dashboard to control your door from there. The main reason for this is if you don’t have a sensor, the basic on/off switch type won’t work in SmartTiles because the switch requires knowing if the door is open or closed to know what its current state should be.
  • I removed the MyQLite prefix to door devices that get created.
  • I overhauled the README file with a better overview and instructions.

Installation

  • Here’s the testing link to the two device handlers and Smartapp code: https://github.com/brbeaird/SmartThings_MyQ/tree/NoSensor.
  • When installing, make sure you grab all 4 code files - 3 device handlers and the SmartApp.
  • If you already have a version of the app installed, you should be fine to just open it up and walk through the setup process again.
  • One word of warning - if you try from the sensor version to the no-sensor version, make sure you remove the door’s on/off switch capability from other routines and SmartApps first. Otherwise, this apps should allow seamlessly moving between the two options and should be pretty straightforward.

@Paul_Bechard, @ph4r, and whoever else wants to give it a shot - let me know how it works. If you do run into bugs, try and catch the error message in the logging if you can.

<img src="http://i.imgur.com/zBXS6nQt.png width=“90” height=“160”>

3 Likes

I loaded both Device Handlers and the SmartApp. I have two doors, but am just starting with one for now. When I tried to add it with the “Create on/off push buttons” turned on it fails with “:error physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘Momentary Button Tile’ in namespace ‘smartthings’ not found. @ line 292” and will not let me continue. If I add without that it does connect, but I have not tried to open or close it just yet. I also thought it was odd that the newly added device which was created by adding a new smartapp does not list the smartapp under that device.

Oops. I didn’t realize that wasn’t a standard type. I’ll need to amend the instructions, but this is another device type you need to add:

https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/smartthings/momentary-button-tile.src/momentary-button-tile.groovy

I tried the new code. It seems Alexa won’t recognize the myq doors unless there is a sensor associate with the door - I forced it using a spare door sensor. But even then, it doesn’t close it even if it confirms with “OK”. Opening works fine with both the sensor and optional no-sensor type.