Git Product home page Git Product logo

smartthings_myq's Introduction

Notice: This SmartApp (and all others using Groovy) is obsolete. A new integration using the Edge driver platform is available here: https://github.com/brbeaird/SmartThings-MyQ-Edge.

SmartThings MyQ Lite SmartApp (Obsolete)

Current Notes

  • Please note this SmartApp cannot read the status of the MyQ door using the MyQ tilt sensor. Getting the door status will require a separate SmartThings-compatible sensor. It's an unfortunate hassle but is the only way we can do this without polling MyQ for status (which they will not allow done from the SmartThings cloud).
  • This SmartApp generally works with the new SmartThings app but still has some bugs when viewing the door tiles (a fix for this is in progress). It is still fully supported in the Classic mobile app.
  • If you get an error saying "No supported devices found," the most likely cause is you're running an older version of the SmartApp. Double check to see you're using the latest code. If you're still having trouble, there's a small chance your IDE info is not sync'd properly across all SmartThings cloud shards. One way to tell this is by checking the Hubs link and noticing your hub missing. Another way to check that is to reset all cookies and log in again (or try from a different computer) to see if it logs you into a different shard at that point, which will let you verify if things are out of sync. If there's a problem with that, SmartThings support can help.

Installation Instructions:

SmartThings Community Installer (Strongly Recommended install/update method)

By far, the easiest way to install this Smartapp (and many other popular ones) and keep it updated is to use the SmartThings Community Installer. Instructions for that can be found here. If you go that route, you can find MyQ on the list of apps, tap to install, and ignore the other install information below. The same goes for installing updates in the future.

Code Needed:

There are 6 code files available for the installations of this app - 1 SmartApp and 5 Device Handlers. At minimum, you need the main SmartApp and at least one of the device handlers. Note that you only need to install the device handlers you'll plan on using (ex: you can leave off the light controller if you don't have any lights).

Code Type Name Location Notes
SmartApp MyQ Lite Link Required
Device Handler MyQ Garage Door Opener Link Needed if using door sensors
Device Handler MyQ Garage Door Opener-NoSensor Link Needed if NOT using door sensors
Device Handler MyQ Action Switch Link Helpful for no-sensor installs to add buttons in automations/ActionTiles/Alexa
Device Handler Light Controller Link Only needed if using a plug-in MyQ Lamp Controller

Manual code copy/pasting:

  1. Log in to the SmartThings IDE. If you don't have a login yet, create one.
  2. The first step is to create device handlers for both door types.
  3. Click on My Device Handlers -> Create new Device Handler -> From Code.
  4. Copy contents of Door Opener (original sensor version) and paste into text area. in SmartApps section. Click Create. Click Publish > For Me (you can ignore this step if you don't have a door sensor)
  5. Repeat the previous step for this door type code: Door Opener (no sensor version) (you can ignore this step if using a sensor)
  6. Repeat the previous step for the Virtual Switch Tile device type code: Virtual Switch Tile
  7. Repeat the previous step for the Light Controller device type code: Light Controller
  8. Now we create the SmartApp code. Click My SmartApps -> New Smartapp -> From Code.
  9. Copy contents of SmartApp and paste into text area. in SmartApps section. Click Create. Click Publish > For Me
  10. In your SmartThings mobile app, tap Automation -> SmartApps -> Add a SmartApp. Scroll down and tap My Apps. Tap MyQ Lite.
  11. Enter in your login details and pick your gateway brand. If login is successful, you'll see a list of doors available for you to pick. After you choose your doors, you can select optional sensors to be tied to those doors.

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. If you haven't already, click on enable GitHub button (upper right). 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
  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 (important: only check boxes for .groovy files, ignore all other file types). 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 (important: only check boxes for .groovy files, ignore all other file types). 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.

In the future, should you wish to update, simply repeat steps 2 and 3. The only difference is you will see the device types/SmartApp show up in the "Obsolete (updated in GitHub)" column instead.

Authentication

First of all, special thanks to hjdhjd and the work at homebridge-myq for figuring all of this out and documenting it so well. The newest version of the MyQ API uses an OAuth flow. The SmartApp can handle most of this on its own, but there is one step that requires halting a web redirect to grab a code out of the URL. This is something the SmartThings groovy implemlentation cannot do. As a workaround, I now have the SmartApp make a callout to a 3rd-party endpoint I am hosting (http://brbeaird.herokuapp.com/getRedirectCode). The SmartApp passes in a URL and cookie from an auth'd MyQ session, and in return, the endpoint passes back a code. The SmartApp then uses that code to generate the OAuth access code and refresh token. It is important to note that because no part of your email, password, or the SmartApp-generated PKCE challenge verifier is passed over, the endpoint does not have the ability to login as you or generate a token itself. Also note that the endpoint is only called when a refresh token is not available, which is typically only upon initial install. Otherwise, callouts should be very rare, and the SmartApp will be able to cycle through refresh tokens on its own.

If you would like to host this auth redirect server yourself, you can find the code at https://github.com/brbeaird/MyQRedirectCode. You can then specify your server's URL in the "Advanced (optional)" section on the Username/password input page of the SmartApp setup.

Still, if you would prefer to avoid the need to make this callout, I have left in the option to generate a refresh token on your own and provide it to the SmartApp. I also included some javascript code and pre-compiled binaries to do that. Instructions are below.

Manual Token Auth (Optional)

This involves logging into MyQ to get an access token. You can then enter that token into the SmartApp auth section.

  1. Download the myQTokenGenerator file applicable to your operating system
  2. On Linux or MacOS, you will need run the appropriate chmod commands and enable it to be run. For MacOS:
    1. Make sure your system allows running these files: System preferences > Security & Privacy > give permission to run
    2. From the terminal, navigate to the directory of the utility and run chmod u+x myqtokengenerator-macos
    3. Run ./myqtokengenerator-macos
  3. On Windows, double-click and run, granting permissions as needed.
  4. At the prompt, enter your MyQ username and password. If successful, the utility will output an access token. SmartApp List
  5. Back in the SmartApp setup, choose the "Manual Token" Login method, then paste in your token. You might find it easier to do this via web browser of the computer you used to generate the token (https://my.smartthings.com).

Overview

This SmartApp integrates Chamberlain/LiftMaster MyQ doors and plug-in lamp module controllers into SmartThings. It creates a garage door device and/or a light device in your list of Things and allows you to control the device...

  • By tapping the device in the SmartThings mobile app
  • Automatically by your presence (coming or going) in an automation or other SmartThings rules app
  • Via tiles in an ActionTiles dashboard
  • By asking Alexa or Google Home to turn the device on (open) or off (close)

Device and ActionTiles

Door device With ActionTiles

Setup and Sensor Selection

Select Door Sensor Selection

This SmartApp works best when you have a Tilt/Contact sensor on the door to keep an accurate status in SmartThings. Unfortunately, the MyQ included tilt sensor will not work as SmartThings cannot communicate with it. That said, you can maintain most functionality without a sensor at all (see no-sensor special notes below).

This SmartApp can control MyQ lamp modules (not the actual lights in the garage door openers) For the lamp controllers, there's no way for SmartThings to know the status, but as long as you only control the light from SmartThings, the status should stay in sync.

Previous versions of this app (known as simply SmartThings_MyQ) relied on polling MyQ for status updates; however, MyQ/SmartThings have restricted the ability to poll the MyQ servers, although sending open/close/on/off commands via API still works as normal.

SmartThings thread here: https://community.smartthings.com/t/beta-myq-lite-for-liftmaster-chamberlain/49150

Credit to copy-ninja, whose version I branched off to create this app to integrate without the need to poll MyQ for the device status.

Optional Tilt/Contact Sensor

This app has the (strongly recommended) option of interfacing with a tilt sensor on the garage door. When present, a sensor will allow the door status to be known and displayed on the device. This also allows for the "switch" capability on the device, which is necessary for automations, ActionTiles dashboard, and Alexa use. Here's an example of one you can purchase from Amazon.

Using MyQ Premium with IFTTT and Virtual Sensors

If you have a subscription to MyQ premium, you can use IFTTT and virtual sensors to use the full "sensor version" device handler that knows the door status. You can find a good write-up of that here: https://community.smartthings.com/t/how-to-smartthings-myq-smartapp-using-myq-sensors-with-ifttt/149601

Special notes when using automations with the no-sensor door version

We have discovered that the no-sensor version of the garage door does not work well with SmartThings automations. This is because automations only take action if the device's status is in the correct position. For example, the no-sensor version of the door has no way to accurately track whether the door is open or closed, so it defaults to "unknown." In this state, a automations will never close the door because it believes the door to always be in a "closed" state.

You have two options to work around this limitation: 1.) Use the MyQ Action Switch devices that will generate if you choose that option during setup. Then, when setting up an automation, have the automation "turn on" the corresponding push button to either open or close the door. 2.) Use the CoRE SmartApp and select the option to disable status optimization. This tells CoRE to always send the desired command regardless of whether SmartThings thinks the door is already opened/closed.

Garage Door Usage with Alexa/Google Home (Without a door sensor):

For Alexa to respond to commands to open/close the door, make sure you choose the option during setup to create the Pushbutton switches. This will create an "Opener" and "Closer" switch. Once setup is done and you see those switches in your Things, go back into Alexa and run the discovery process. Those switches should show up in the Alexa app and should respond to "Alexa, turn ON [garage door name] Opener" and "Alexa, turn ON [garage door name] Closer."

If you want a less-awkward way to open the door, you can set up an Alexa routine or a Google Home shortcut that translates something like "Alexa, open the garage" to the full "Alexa, turn on..." phrase from above.

Garage Door Usage with Alexa/Google Home (With a door sensor):

If your door has a sensor, Alexa will respond simply to "Alexa, turn ON [garage door name]" or "Alexa, turn OFF [garage door name]" once you've completed the setup and done the discovery process in the Alexa app. This is because the MyQ door device has a on/off switch capability that can be used and kept in sync since the sensor updates the door's status. It's not necessary to use the Pushbutton switch in this case.

If you want a less-awkward way to open the door, you can set up an Alexa routine or a Google Home shortcut that translates something like "Alexa, open the garage" to the full "Alexa, turn on..." phrase from above.

Special notes when using Light Controllers:

Since we have no way to keep an exact on/off status on the light, it is strongly recommended that you ONLY control the light via SmartThings (not through the MyQ app or manually at the physical device itself). As long as SmartThings is the only thing making changes, it will essentially always have the correct status. If for some reason the status does get out of sync, you may just need to turn it off and back on in SmartThings to sync it back up.

Alexa should be able to control the light device just like any other switch in your environment.

Donate/Sponsor:

If you love this app, feel free to donate or check out the GitHub Sponsor program.

Platform Wallet/Link QR Code
GitHub Sponsorship https://github.com/sponsors/brbeaird
Bitcoin 1gLEpa5VUpYx77p4nfqHkWrpZK4opFrgV
Paypal PayPal - The safer, easier way to give online!

smartthings_myq's People

Contributors

brbeaird avatar chuckpearce avatar copy-ninja avatar joshualyon avatar ph4r avatar rboy1 avatar sandood avatar wingrunr21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartthings_myq's Issues

Allow Alexa to only close the door

As a security measure, is it possible to only allow Alexa to close the garage door and disable her ability to open it?

I’d hate to have a robber yell really loud through a window to open my garage or something.

Error Saving Unnamed Page

Had been using the app for a while, but one of the doors was stuck in “opening” mode. I figured I’d just delete it and re-add it, but when I get to the final stage to add the door I recieve an error that says “Error saving unnamed page. Please contact the SmartApp developer.”

Any ideas?

Could Not Find Any Supported Device(s)

I saw that this was a previous issue that was closed, but no solution listed has solved my issue. I've deleted all device handlers and the smartapp and readded them all to no avail. I would greatly appreciate some insight as to where I can look to next for some troubleshooting.

I'm not quite sure if I'm using the most current smartapp code but I am using the links provided in the readme on the main code page. I'm new to GitHub but have enough technical experience to figure this out if someone can lead me in the right direction! Thanks in advance!

Smartthings MyQ Lite no supported devices

I had all this working until a few weeks ago. I went into my SmartThings IDE today to take a look at it and I was missing the device handlers and smart apps. I added those back in and then went to my SmartThings SmartAppsAs I go though the steps I get the error "Could not find any supported device(s). ..."
Any idea what I need to do to resolve?

Unable to create SmartApp from code

I have tried both versions and was unable to create a SmartApp. I received the following message:
"No signature of method: script14980567587321300469619.metadata() is applicable for argument types: (script14980567587321300469619$_run_closure1) values: [script14980567587321300469619$_run_closure1@5657c4e6] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)"
Please help.
Thanks,
Tim.

MyQ Lite setup. Issue in setup

Hey,

Upon adding MyQ app on Smarthings classic app.. Enter creds, it accepts, next page it lets me select my garage door (next). The next page comes up blank for me. Although if i simulate the app through the smarthings IDE i can see the page is supposed to ask me my sensor/contact preferences.

Pulled most recent MyQ app and only using "MyQ Garage Door Opener" device handler.

Help needed

Relatively new to Github. I've created the necessary smartapp and device handlers. I can see them in "My Device Handlers" and "My Smartapps" and they are both published. I enabled Github integration. When I click on update from repo I dont have anything in any of the columns.

Then in the smartthings app I do not see this app: In your SmartThings mobile app, tap Automation -> SmartApps -> Add a SmartApp. Scroll down and tap My Apps. Tap MyQ Lite.

Any help is appreciated.

Can't Add Device Hanlder

Hi,
I'm trying to add the no sensor device app. I've tried to do it manually and from GitHub directly and I'm getting errors with both approaches. When I do it manually I get this error:

Org.springframework.dao.InvalidDataAccessResourceUsageException: could not load an entity: [physicalgraph.device.Capability#172]; SQL [select capability0_.id as id78_0_, capability0_.version as version78_0_, capability0_.canonical_id as canonical3_78_0_, capability0_.canonical_version as canonical4_78_0_, capability0_.date_created as date5_78_0_, capability0_.display_name as display6_78_0_, capability0_.in_store as in7_78_0_, capability0_.last_updated as last8_78_0_, capability0_.name as name78_0_ from capability capability0_ where capability0_.id=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not load an entity: [physicalgraph.device.Capability#172]

When I attempt to add it via GitHub I get this error:

Error 500: Internal Server Error
URI /ide/device/doRepoUpdates
Reference Id a046373b-b31a-4994-9a08-98e485c0e67e
Date Wed May 16 17:33:36 UTC 2018

I dont believe I'm doing anything wrong. Do these scripts still work 'as is', or is an update required? If they are still working for other people then any idea what I need to do differently?

I should also note that I was able to add the new SmartApp with no issues. The error is just for the device handler(s). The error above is for the Door No Sensor one, but I have tried all of them and get the same error.

Thanks

Automations/Routines

I have 2 questions:

Question 1:
I followed the directions and was able to get everything set up in the smartthings app. When I push the button on the app the garage doors open and close. However, I have set up a routine to open and close the door based on my location (coming or going) and neither will operate the door. Do I need a smartthings hub to make the routine operate? I assumed since this runs in the cloud and not local that I would not need a hub.

Question 2:
I also, have a Google home which does not recognize any commands to open or close the doors. How can I set up my Google home?

Please help.
Thanks!

App shows two actions instead of the expected one.

I'm seeing the option Door control and a second one Garage Door Control which also has an open/closed status.

Door control seems to open the door without any "warnings" but can never close it (see previous error about inability to connect)

Garage Door Control seems to open without warning, but close with a lot of flashing light and alarms (which is probably good).

The key problem, is that Door control* appears to be invoked from the tile which does not work properly - shouldn't there be only one option here?

Get unexpected error occurred

After I install the smart app and device handlers, I login the gateway and states automating then I get unexpected error occurred and it doesn't complete. I can use the Liftmaster app just fine any ideas on what I can look at? BTY I have 3 garages and it see all three during the config.

Love this work.... No Issue but quickest place I could say Thanks

I donated $25 since I love this entire Automation. I even added the IFTTT for door sensors and that saved me much more than $25 and I never have to replace a battery.

Well Done.

If you have a way to Integrate Insteon Hub and Switches into SmartThings, would love to hear about it.

Myq with myq sensors

hello, when I am setting it up it doesn't see my sensors say there are no devices of this capability. Please help

Issue with tap action

This has been working fine for a while. I tried updating to 2.1.2 things went bad. The tilt sensor started not to work right. Tried to remove it from the classic application and from the portal but it would not completely be removed. I attempted to install it again and the automation works right but it I tap on the button from the list of devices for the garage door it will not work. I have as a favorite and it give me "unathorized to do this". This did work before going through all this work. Sorry for all the details.

Issue with installing SmartApp

I have a MyQ garage opener with a sensor stuck to my garage door. Initially, I installed the "no-sensor" device handler, not realizing I have a sensor. I was able to install the SmartApp on ST app. Then, I went back and deleted the SmartApp and device handler to install the one for "with sensor". When I tried to install the SmartApp on my ST app, it gave me this error message: Home: problem creating door device (no-sensor type). Check your IDE to make sure...

I am confused why it's saying "door device (no-sensor type)", when there is a MyQ sensor attached to the garage door. Any ideas?

Garage door does not show up in the app

I just went through the setup process with no issues (except for the complains about app version 2.05 not 2.06). However, I cannot find the garage door anywhere in the app after setup. Did I miss anything?

Can't finish app setup

When I first setup the device handlers and smart app on my first hub, everything worked great. I recently had to replace that hub with another v3 replacement and when I try to add the smart app to the new hub, the app gets stuck at the light controller. I'm able to choose both garage doors then just a completely blank page. Please let me know what info you'll need. Thank you.

Stopped working and now can't add it back.

MyQ for my liftmaster was working for months then stopped. I removed this app from my smartthings. Now I can't add it again. I published the app for me. I enter in my email, password, and select liftmaster. I hit next and nothing shows up. I am not sure why that is. I remember this being very easy to setup the first time I did it.

Not Opening on arrival

Hello,

Thanks so much for the Code as I got it up and running in smart things. I can manually open and close my door, but I have it to open the garage door as I arrive home (using my phone as a sensor), but, the door is not opening?

Is there something I may be doing wrong? Or, do I need the actual sensor?

Thanks,

MYQ Lite garage door opener just stopped working this week.... dont know why

Loaded the device driver and smart app months ago and ll was working fine..

Just realized that things stopped working this week.. Also noticed that Chamberline released a new app - saying that their old app is obsolete.... Is this simply a coincidence ?

any ideas .. ive looked at github and im all upto date

MyQ Lite issue

i am using this, with a door sensor. Sensor is reporting accurately, but can’t get the door to open or close. Here is the log:

4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: debug Door: Main Garage Door Opener: Updating timestamp to: Tue Aug 14 00:54:17 UTC 2018 - from sensor Main Door Tilt Sensor
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: debug Door: Main Garage Door Opener: Updating with status - closed - from sensor Main Door Tilt Sensor
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: debug refresh called from Main Garage Door Opener (1485502d-e5d8-410d-88fe-bd7cc44fed2c|GarageDoorOpener|1703322266)
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: error java.lang.NullPointerException @line 202 (updateDeviceLastActivity)
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: debug Door is now closed
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:35 PM: debug Request received to update door status to : closed
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:15 PM: debug Request received to update door status to : opening
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:15 PM: debug Garage door open command called.
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:05 PM: debug Door is already closed. Leaving status alone.
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:05 PM: debug Request received to update door status to : closing
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:05 PM: debug Garage door close command called.
4eb108a7-6e82-456b-924e-e435a84bc1eb 8:45:05 PM: debug Garage door close command called

Expose as a lock

It would be nice if this was exposed as a lock. Locks integrating with Alexa through SmartThings require a pin to unlock by voice which is ideal for security.

I attempted to include this myself but I'm not too familiar with Device Handlers, however after:

  1. removing the device from Alexa
  2. updating the MyQ Garage Door Opener to include capability "Lock"
  3. and rediscovering devices on Alexa
  4. open device in Alexa
  5. should see a loading animation and error message
  6. however, clicking on the vertical dots in the top right corner show the settings to enable unlock by voice with pin code

Unfortunately I'm not entirely sure what else needs changed in the code to finish exposing this as a lock, but my assumption is that just the right reporting of lock/unlock states/actions is all that's necessary.

Any interest / plans to support this?

Out of date URL in manual instructions

I recently had some issues trying this out, because I was going to the wrong place using the URL provided in these instructions. I posted a comment about this in the community:

https://community.smartthings.com/t/what-is-the-difference-between-the-ide-url-and-account-url/135364

And immediately got a response explaining what I was seeing:

https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923

Please update the URL in step one of the manual install instructions (Log in to the SmartThings IDE. If you don't have a login yet, create one.) from:

https://graph.api.smartthings.com/ide/
to
https://account.smartthings.com

Unable to add to "things"

I have followed all the instructions on the read me and was not able to get this working properly.
I see it under "My Apps", went through the set up in there and still not able to get it working in anyway.

I was trying to get it set up with "No Sensor" as i just moved and most of my sensors are MIA

MyQ Lite is not working

Hi,

I ran all the procedures and I I don't get any errors, but if I execute the command, it doesn't open or closes the door.

Thanks,

Jose

Open and Close rather than On and Off

I understand why we have say "On and Off" to activate the switch functionality but for a brief period I was able to say "Open and Close" to operate the door. I think maybe a week or two. Did you change something with the code that enable this functionality or am I losing my mind?

Support for MyQ Home Bridge

I've been previously using the Craftsman MyQ gateway without issue with this smartapp. I recently acquired a Chamberlain MyQ Home Bridge that has been successfully installed and setup in the MyQ Chamberlain app and operate properly. However, upon trying to add this in the smartthings app I get an error "Error! Could not find any supported device(s). Please report to the author about these devices.

Let me know how I can help get this new MyQ Home Bridge supported.

no sensor version

I am getting an error adding the no-sensor version here.

java.lang.NullPointerException: Cannot invoke method eventsSince() on null object @line 680 (updateDoorStatus)
debug Door: Garage Door: Updating with status - unknown - from sensor null
debug getChildDevices(false), children=1

Add Door Status - API call in request.

From looking around the API.

Add headers:
MyQApplicationId:
SecurityToken:

Door Status can be had from >
/api/v4/deviceattribute/getdeviceattribute?MyQDeviceId=&AttributeName=doorstate

Sample Response where AttributeValue is the state
{"AttributeValue":"2","UpdatedTime":"1548101307274","ReturnCode":"0","ErrorMessage":"","CorrelationId":"8d5afb41-447b-41c2-9159-24ad9f7bab5f"}

doorStates: {
1: 'open',
2: 'closed',
3: 'stopped in the middle',
4: 'going up',
5: 'going down',
9: 'not closed',
},

LightState can be had from >
/api/v4/deviceattribute/getdeviceattribute?MyQDeviceId=&AttributeName=lightstate

Sample Response where AttributeValue is the state
{"AttributeValue":"0","UpdatedTime":"1548101307274","ReturnCode":"0","ErrorMessage":"","CorrelationId":"74555d75-fc01-4df3-81a6-d1c90de25994"}

lightStates: {
0: 'off',
1: 'on',

Constants from here >
https://github.com/thomasmunduchira/myq-api/blob/master/src/constants.js

Use api to get door status

I found it rather trivial to modify the code to get the door status from the api. Why is this not the default??

Google Home

How do you make this work with Google Home?

New Install, No Devices Found

I have two commercial openers that the SmartApp cannot find. Is there a difference between the commercial and residential? Thanks!

Adding support to new SmartThings app

Couple things that can be added that isn't perfect but makes it at least work until official documentation comes down:

  • Add some meta data to the DTH:
    vid: "generic-contact-4", ocfdevicetype: "oic.d.garagedoor", mnmn: "SmartThings"
  • Add capability "Health Check"
  • Add a checkInterval statement to the functions installed() and updated() (This is a guess based on other DTHs but it seems to work):
    sendEvent(name: "checkInterval", value: 4 * 60 * 60 + 2 * 60, displayed: false, data: [protocol: "cloud", scheme:"untracked"])
  • Add a ping command required by health check tha doesn't actually do anything other then make ST happy:
def ping() {
    logDebug "ping()"	
    return []
}

Working with MyQ's own sensor

Thanks for writing this integration. It is very useful. This is more a question, rather than an issue. Is it possible to use MyQ's own sensor to work?

If so, can you please help?

Thanks!

Google Home voice command not working ?

First off, thanks to the author of this app and the users who have helped test and make it better.

I installed today after testing my internet gateway. it was a breeze, so easy/quick. But what I was really hoping for was Google Home voice control to work so I can use hands free as I approach the house with the car.

I'm getting this error from GH: "Sorry, I don't know what garage door you wanted to turn on."

I'm saying "hey Google turn on the garage door /garage door opener / open the garage door in the garage etc, basically every variation I can think of.

Any suggestions?

Thanks!

Door status sometimes not syncing with contact sensor

Have been seeing some instances where the door device is not being updated with the status of its corresponding contact sensor. Cycling the door seems to trigger a status update, which typically fixes it, but something weird is definitely happening here.

Error on application with door sensors

No signature of method: script1504285702633908203956.metadata() is applicable for argument types: (script1504285702633908203956$_run_closure1) values: [script1504285702633908203956$_run_closure1@58d5f581] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Error saving unnamed page. Please contact SmartApp developer.

I am attempting to add the MyQ Lite app using SmartThings Classic 2.16 on iOS. It allows me to authenticate with my Craftsman branded GDO, select the GDO, then configure sensors and seperate buttons but after clicking next I am presented a page that is blank with a "Done" button. When clicking "Done" I get an error in a red banner stating "Error saving unnamed page. Please contact SmartApp developer.". I have installed and published all device handlers and the SmartApp from this GitHub. Does this SmartApp require a SmartThings hub unlike NST Manager (Nest Manager) because that is one item I do not have.

ST reports no devices found

Could not find any compatible devices when trying to add the smart app. Below are my logged errors.

4cf6373e-d6cf-42a7-b634-3e7bcb756eb6 7:23:49 PM: debug API Error: java.net.SocketException: Connection reset
4cf6373e-d6cf-42a7-b634-3e7bcb756eb6 7:23:48 PM: debug API Error: java.net.SocketException: Connection reset
4cf6373e-d6cf-42a7-b634-3e7bcb756eb6 7:23:48 PM: debug got login response: groovyx.net.http.HttpResponseDecorator@3e52bb3d

Can't find "My Apps" or "SmartThings Labs"

The instructions state to find a My Apps section and the code says the category is SmartThings Labs. I can't find either in the mobile app and I wonder if this is due to the recent update that was released earlier this month.

No sure what happened

All was well, then at some point while the craftsman garage opener was still visible. Click open, no action, click close, no action at the door.
I then removed the device thinking i would rebuild / install everything, This may have made things worse, but now I get an error when i attempt to login via the MyQ Lite / SmartApps within ST - indicating "Could not find any supported device(s). Please report to author about these devices - any thoughts?

Is it working now with new app?

I used this app with a couple of years and it is great (thanks a ton brbeaird!!). Then I updated to the new app, and bam, all gone. I saw an issue stream about getting it to work with the new app, and went and updated my Device Handlers ... does this now work with the new app? If yes, how do I get to it? In automations like before?

Thanks!

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.