Chamberlain/Liftmaster MyQ Plugin

[quote=“macrho, post:80, topic:180826”]thanks for the kind comments but I believe I’m at a step where I’m stuck.

The plugin seems to stop working after a number of hours (unknown as of now)
The problem is that I cannot find where in the logs that the failure is happening
I have verbose logging set, in fact, all of the options under Setup | Logs are checked.
I’ve tried unselecting ‘Archive old logs on server’ but the setting never sticks.
I opened a support ticket and they said the logs would be in either:

/var/log/cmh
/tmp/log/cmh

Neither of them seem to have the previously generated logs. So, I’m kind of stuck at the moment[/quote]

Hi macrho

I understand. I've been stuck before but it always seems to work out over time. Appreciate your efforts.. This is a really COOL plugin.

Don

I put some general instructions on the first page about installation and removed old versions of the code

I’ve tweaked my local copy a bit and will see how stable it is over the next few days.
The tweaks were just checking the door states every 60 seconds and the token every 8 hours
I’ll eventually make those user configurable
Hopefully it’ll run fairly stable now.

Updated the first page with new code, which I decided to call beta 1 – not sure if I jumped the gun on that :slight_smile:
It has been pretty stable for me now – I’m going to try to let Vera run for a few days and will see what happens.
The door statuses are queried every 60 seconds while an authentication token is requested every 8 hours now
Made a few changes to the display of the MyQ Gateway device (basically adding last auth and last check) and did some error handling
Hopefully each additional update is providing better functionality.

Can folks who have downloaded older versions of the plugin download the new one and test for me?
I think it’s getting fairly close and hope it handles all devices now

[quote=“macrho, post:84, topic:180826”]Can folks who have downloaded older versions of the plugin download the new one and test for me?
I think it’s getting fairly close and hope it handles all devices now[/quote]

I didn’t delete all of my devices but I did upload all of the 6 lua and xml files and restarted LUUP.

Just tested it form upstairs in my computer room and it works great (I can hear my garage door from the room below).

I’ll test it again in 25 hours and see if it still works :).

Do you plan to still use the S_DoorLocks.xml and JSON files for this?

The Door Lock service provides options not applicable to a garage door opener.

Just a thought but using a binary light switch (on or off) might be a closer match (though the names on/off could get confusing).

But I’m not much of a developer so I don’t know how much would be involved in this.

[quote=“Ramias, post:85, topic:180826”]Do you plan to still use the S_DoorLocks.xml and JSON files for this?

The Door Lock service provides options not applicable to a garage door opener.

Just a thought but using a binary light switch (on or off) might be a closer match (though the names on/off could get confusing).

But I’m not much of a developer so I don’t know how much would be involved in this.[/quote]

I think I’m going to have to learn how to write my own service for the openers as I agree with you that the Door Lock service isn’t the appropriate one. It would be kind of cool to have an animated garage door like in the iPhone app for Vera… hmmm

I’m not much of a developer either and everything in this thread is me learning as I go and trying to share along the way

thanks for testing the plugin out and I’m happy it’s working for you so far :slight_smile:

Well, the plugin was up for about 21 hours and then failed. I couldn’t find the time point of failure in the logs as previously I was never able to uncheck “Archive old logs on server” in the Logs portion of Setup. I was using Chrome but today tried with IE 11 and the setting stuck. So the good news is I should be able to view the log the next time the plugin fails. Cross my eyes, toes and fingers

machro, maybe a dim question, but what happens when it fails? I’ve had mine installed since the weekend and I can still open/close the garage door with vera. Does something else go wrong?

when it fails, the myq gateway device doesn’t get updated with the last update datetime
silly me, i never tried to see if the device still worked, so I’m puzzled now but glad it’s working for you

[quote=“macrho, post:89, topic:180826”]when it fails, the myq gateway device doesn’t get updated with the last update datetime
silly me, i never tried to see if the device still worked, so I’m puzzled now but glad it’s working for you[/quote]

OK, so my app gives today, ~2min ago as last update time, so doesn’t look like it’s failed for me yet (famous last words!). Wonder if others are seeing the failure?

ETA, how often are you opening and closing the door? We don’t use ours much, so maybe that’s why it’s held out longer???

Mine are open twice a day, on weekends, perhaps 4 times a day or 0 if we’re hermits

I would say across two doors, they’ve been open ~3-4x since I installed the app–maybe a bit more when I was playing around with it initially, but definitely under 10. Don’t know if that would make any difference, but thought I’d throw it out there as a possibility.

I am way way behind with this. I have entered username and password and reloaded vera several times At startup, the error message says “authorization failed” and at the bottom of the device it says “Lua Startup Failure”. Can you provide some guidance. I can open/close the garage door with MyQ Chamberlain Gateway Internet from my iphone. Thanks.

did you install the latest version?
are you providing the exact same credentials as the myq app on your iPhone? I have my email address and the corresponding password for the app

[quote=“macrho, post:94, topic:180826”]did you install the latest version?
are you providing the exact same credentials as the myq app on your iPhone? I have my email address and the corresponding password for the app[/quote]
macho, once again you have demonstrated your skills; when you mentioned you have your email address, I realized I was using my username in the chamberlain website. I entered my email address and there it is - child device created. I tested it in vera and i was able to open/close the door while watching the the whole process in the camera. Now I can get rid of the “garage door plugin” that doesnt work anymore with chamberlain. I also have to find a new place for ZFM-80 which is still installed in the wall but not in use anymore. thanks. i will test it with my iphone. GREAT PLUGIN.

@macrho,

NICE plugin!!! it was easier to set up than the myQ gateway (per their customer support had to restart my routers each time I change something). That was the longest portion of this project. The plugin install went smoothly and quickly (Got it up and running last night)

Currently having no issues with it :slight_smile:

Once again thanks for creating this plugin

Plan on getting the Chamberlain gateway from Lowes. Are the logins that you create for the gateway the same thing at Liftmaster and Chamberlain? How does the plugin know which site to go to if they are different backends between the two brandings. Also looks like Sears is also just a different branding.
Thanks

[quote=“spudjr, post:97, topic:180826”]Plan on getting the Chamberlain gateway from Lowes. Are the logins that you create for the gateway the same thing at Liftmaster and Chamberlain? How does the plugin know which site to go to if they are different backends between the two brandings. Also looks like Sears is also just a different branding.
Thanks[/quote]

I have a new chamberlain with MyQ technology that i bought from home depot and it works with macho’s plugin. no issues for about a month now.

This is a great job you did, thank you! I was wondering has gotten the myq 825LM lighting controls to work using this.

Thank you!

Really would love this plug in. Went to the link macrho left on page 5 of post and couldn’t access the app. Can you provide a different link for this?