Chamberlain/Liftmaster MyQ Plugin

@djrobx: would you be OK if I rolled your changes into the extended plugin that also supports Craftsman Assurelink openers?

Macrho I believe has ceased support for this plugin so I created an updated version of it a while back that also supports the Assurelink system.
Which also uses MyQ but has a different AppID and website it goes to.

Please let me know. Thanks

Bofh, can you see about getting it published on the app store?
Also, I suggest not hard coding any of the settings, let them be exposed in Advanced. For example, My current settings work well and I have it check status every 60 seconds. Seems like others have issues with that but I’d like to keep it that way.

Thx for continuing to work on this, it is very useful

Sent from my HTC6525LVW using Tapatalk

I have no idea how to get this published to the app store. Is there a How-To for that anywhere? This plugin has basically turned into a community effort with multiple contributors. As far as custom values for eg polling etc, I tried to implement that but it crashed the plugin so that’s been commented out until I have time to look into what I screwed up… :slight_smile:

http://wiki.micasaverde.com/index.php/Apps.mios_Developer's_Guide

You can likely post for help on how to expose the variables to Advanced tab… Richard, Rex, and many others will likely give you the quick how-to. :slight_smile:

[quote=“BOFH, post:181, topic:180826”]@djrobx: would you be OK if I rolled your changes into the extended plugin that also supports Craftsman Assurelink openers?

Macrho I believe has ceased support for this plugin so I created an updated version of it a while back that also supports the Assurelink system.
Which also uses MyQ but has a different AppID and website it goes to.

Please let me know. Thanks[/quote]Yes, absolutely!

I like the idea of puttling the polling frequency as a settable variable. It’s good to hear you’ve been using 60 seconds without issue. Now that it’s running reliably, I might press my luck with a lower setting. :slight_smile:

– Rob

I am interested in adding this plug-in into my system. Is it working with UI7 now?

Can’t help with UI7 support since I only have a Vera2. 8)

I can confirm that machro version doesn’t work with UI7 - crashing Luap engine non stop. I will see if UI7 plugin migration guide will help me to figure out what needs to be changed in the existing plugin once I have some time to spare.

I spent some time to rewrite machro and djrobx plugin and make it UI7 compatible, also allowed to configure RefreshInterval (how often to poll for your door status = default value 120 seconds) and RefreshIntervalAfterUpdate (how often to poll for door status after open/close command - default value 30 seconds) via plugin configuration.
I will try to get it published on app.mios.com as a plugin, so nobody has to go through pain of uploading .xml and lua files, manually creating new devices. However it is a royal pain, since I am on UI7 and app.mios.com was never updated to work with or even see UI7 boxes, so I can’t really test what I created in there and UI7 doesn’t have an app store yet.

If anybody is willing to beta test this plugin or participate as a developer - please let me know via PM I’ll add you as a participant. Original plugin developers are obviously more then encouraged to participate or take it over, I am just trying to help to get it published to allow more people to use it out of box.

UI7 compatible version is in the archive attached to this message.

Great job. Unfortunately you used the MyQ plugin only as a base. So no more support for the Craftsman assurelink version of it. Which is relatively easy to add back. Only differences are the APPID and BASE_URL values.

Craftsman Assurelink variable values to make MyQ plugin work
APPID = “eU97d99kMG4t3STJZO/Mu2wt69yTQwM0WXZA5oZ74/ascQ2xQrLD/yjeVhEQccBZ”
BASE_URL = “https://craftexternal.myqdevice.com/

I originally added an extra variable to the Advanced tab called Brand that had either Chamberlain or Craftsman as values and set above variables to the correct values.

Please feel free to add these to your version of the plug-in. My free time currently is quite limited (The coming 7 months are our busy time at work) and my list of projects is too long as it is. :slight_smile:

BOFH, is there a link to your version? I was probably a bit late to the show and only read through last few pages of the thread, so only saw original version of macrho plugin and updated version djrobx published few posts ago that does authentication on every status change (which is a way to go!).
I would certainly try to add support for other brands if you point me to your version.

Thanks kornev!

I am running UI7, my UI6 box which this plugin worked well with died, I tried loading your version, and it wants the username and password but I don’t see where to input that on the device?

I am willing to be a beta tester

It can be found here: http://forum.micasaverde.com/index.php/topic,27254.msg194604.html#msg194604

It’s basically Macrho’s plugin with an added field (Brand) in the advanced tab added (via S_MyQGateway.xml) to let the plugin know what value to use for the APPID and BASE_URL in L_MyQGateway.lua. Which should be easy enough to incorporate into your current version with the values I posted above. Apart from tweaking the authentication interval, no other significant changes were made to Macrho’s version to add Assurelink support. Assurelink is a Craftsman branded version of the MyQ system by Chamberlain/Liftmaster. Apart from the branding, the only change it looks that was made was to use a different ID number for the gateway so MyQ knows it’s a Craftsman version talking to it and directs it to the right subdomain and credential database.

@dbmccallum: You normally enter username and password in the advanced tab of the master MyQ device. It may require another reload for it to come up. I’ve seen that before.

kornev - I just installed and it appears to be working well with UI7. Will let you know if I run into any issues. Thanks for your effort in making this UI7 compatible.

[quote=“dbmccallum, post:192, topic:180826”]I am running UI7, my UI6 box which this plugin worked well with died, I tried loading your version, and it wants the username and password but I don’t see where to input that on the device?

I am willing to be a beta tester[/quote]
You might need to restart LUUP engine after installing everything and creating new device, if you don’t see login/password/RefreshInterval fields in the advanced settings. The most convenient way to do it is by using Develop apps → Serial Port configuration → Reload Luup button.

I incorporated BOFH changes (thanks!) to support craftsman openers and updated archive in my original message.

I also fixed pretty nasty bug in the original code, it was calling “refreshDoor” extra time after each open/close call and that was in turn adding one more repeating “refreshDoor” task into Vera LUUP which was a cause for too many calls to MyQ sever (the more you open/close your doors using Vera) and general Vera slowdown. So I would say everyone is encouraged to update to the most recent version or fix it in your own version of a plugin.

Anyone with Craftsman opener - please let me know if that part works ok, I don’t have one so I can’t really test it :slight_smile:

[quote=“kornev, post:189, topic:180826”]I spent some time to rewrite machro and djrobx plugin and make it UI7 compatible, also allowed to configure RefreshInterval (how often to poll for your door status = default value 120 seconds) and RefreshIntervalAfterUpdate (how often to poll for door status after open/close command - default value 30 seconds) via plugin configuration.
I will try to get it published on app.mios.com as a plugin, so nobody has to go through pain of uploading .xml and lua files, manually creating new devices. However it is a royal pain, since I am on UI7 and app.mios.com was never updated to work with or even see UI7 boxes, so I can’t really test what I created in there and UI7 doesn’t have an app store yet.

If anybody is willing to beta test this plugin or participate as a developer - please let me know via PM I’ll add you as a participant. Original plugin developers are obviously more then encouraged to participate or take it over, I am just trying to help to get it published to allow more people to use it out of box.

UI7 compatible version is in the archive attached to this message.[/quote]

Kornev, thanks for your work on this! Is the link in this post where we should go to load the new files? Or is it better to wait until it hits the app store? Do I need to delete the current devices or redo?

I don’t know how long it takes for micasa guys to approve an app, but if it’s like everything else from them, I wouldn’t wait, since it can take forever :slight_smile:
Take it from my link and replace your old files. I don’t think you need to delete current device, it might just work, if however you encounter a problem with plugin startup you might have to do it since few extra configuration parameters were added and I am not sure how it plays with older versions. Both refreshIntervals should auto default if missing, but “brand” will not.

If anything doesn’t work you should be able to rollback to an older version just as easy, simply replace new files with files from machro’s archive or whatever flavor of plugin you are using.

The Craftsman update seems to have an issue. I just updated and I’m getting a MyQ Gateway: Startup Lua failed error.
Unfortunately I am on call and just got called into work so I don’t have the time to check the logs right now.

BOFH, my bad, I tried to cheat a little and didn’t delete my device during the testing of multibrand plugin and apparently missed a bug: an extra logging I added was failing in case of missing variables.
I uploaded new version for you to try then you have a chance. You only really need updated lua file.

PS That sucks to have to be on call on Sundays :slight_smile: