Chamberlain/Liftmaster MyQ Plugin

Same here…

02 02/16/17 20:08:31.704 luup_log:43: MyQ Gateway: (MyQGateway::init): MyQ Gateway Plugin v1.26 15-Feb-2017 - ************** STARTING ************** <0x2c2c3680> 06 02/16/17 20:08:31.705 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: PLUGIN_VERSION was: v1.26 15-Feb-2017 now: v1.26 15-Feb-2017 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c2c3680> 02 02/16/17 20:08:31.748 luup_log:43: MyQ Gateway: (MyQGateway::init): MyQ Gateway Plugin Options - DEBUG_MODE [DISABLED] UI7_GDO [DISABLED] <0x2c2c3680> 06 02/16/17 20:08:31.760 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: DEBUG_MODE_TEXT was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c2c3680> 06 02/16/17 20:08:31.761 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: UI7_GDO_TEXT was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c2c3680> 06 02/16/17 20:08:31.762 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: ENH_STATUS_TEXT was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c2c3680> 50 02/16/17 20:08:32.101 luup_log:43: MyQ Gateway: Status refresh on your opener(s) will be called every:120 <0x2d8c3680> 50 02/16/17 20:08:32.102 luup_log:43: MyQ Gateway: ATTEMPTING INITIAL API LOGIN <0x2d8c3680> 50 02/16/17 20:08:32.102 luup_log:43: MyQ Gateway: retrieveSecurityToken called <0x2d8c3680> 01 02/16/17 20:08:32.566 luup_log:43: MyQ Gateway: (MyQGateway::json.decode): Invalid json data! <0x2d8c3680> 01 02/16/17 20:08:32.568 luup_log:43: MyQ Gateway: (MyQGateway::retrieveSecurityToken): Authentication error! <0x2d8c3680> 50 02/16/17 20:08:32.568 luup_log:43: MyQ Gateway: INITIAL API LOGIN **FAILED** Attempting WEB MODE fallback <0x2d8c3680> 50 02/16/17 20:08:32.570 luup_log:43: MyQ Gateway: DoWebLogin CMD: [rm /tmp/MyQWebLogin_Cookies;curl -b /tmp/MyQWebLogin_Cookies -c /tmp/MyQWebLogin_Cookies -H 'User-Agent: Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.105 Mobile Safari' -s -o /tmp/MyQWebLogin_Temp --next -d 'Email=myemail%40gmail.com&Password=********' -L --write-out '%{http_code},%{url_effective}' https://assurelink.craftsman.com] <0x2d8c3680> 50 02/16/17 20:08:32.979 luup_log:43: MyQ Gateway: DoWebLogin response: code [000] url [https://assurelink.craftsman.com/] <0x2d8c3680> 50 02/16/17 20:08:32.980 luup_log:43: MyQ Gateway: INITIAL WEB MODE LOGIN *** FAILED *** <0x2d8c3680> 50 02/16/17 20:08:32.981 luup_log:43: MyQ Gateway: task myQ authorization failed. Check settings in myQ setup. <0x2d8c3680> 50 02/16/17 20:08:32.982 luup_log:43: MyQ Gateway: Authorization failed.Web Login Failed <0x2d8c3680> 06 02/16/17 20:08:32.983 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: numDoors was: myQ authorization failed. now: myQ authorization failed. #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2d8c3680> 06 02/16/17 20:08:32.983 Device_Variable::m_szValue_set device: 43 service: urn:macrho-com:serviceId:MyQGateway1 variable: numLights was: Check brand, user name and password. now: Check brand, user name and password. #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2d8c3680> 01 02/16/17 20:08:32.984 luup_log:43: MyQ Gateway: (MyQGateway::startupDeferred): Unable to continue. Exiting. <0x2d8c3680>

Nevermind…lol…too much to drink tonight…authorization fails on web login fallback

The issue is the token retrieval because the appId is denied when trying to login. Take the URL and substitute your credentials and you will see the rejected/denied error in a web browser.

What’s the value of seeing the error in a web browser? I’d like there to be no error at all. :slight_smile:

Also just realized that the log entry info I posted above shows that it’s trying to auth against the Craftsman site. What’s up with that?

this is the correct address

50 02/16/17 20:08:32.568 luup_log:43: MyQ Gateway: INITIAL API LOGIN **FAILED** Attempting WEB MODE fallback <0x2d8c3680> 50 02/16/17 20:08:32.570 luup_log:43: MyQ Gateway: DoWebLogin CMD: [rm /tmp/MyQWebLogin_Cookies;curl -b /tmp/MyQWebLogin_Cookies -c /tmp/MyQWebLogin_Cookies -H 'User-Agent: Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.105 Mobile Safari' -s -o /tmp/MyQWebLogin_Temp --next -d 'Email=myemail%40gmail.com&Password=********' -L --write-out '%{http_code},%{url_effective}' https://assurelink.craftsman.com] <0x2d8c3680> 50 02/16/17 20:08:32.979 luup_log:43: MyQ Gateway: DoWebLogin response: code [000] url [https://assurelink.craftsman.com/] <0x2d8c3680> 50 02/16/17 20:08:32.980 luup_log:43: MyQ Gateway: INITIAL WEB MODE LOGIN *** FAILED *** <0x2d8c3680> 50 02/16/17 20:08:32.981 luup_log:43: MyQ Gateway: task myQ authorization failed. Check settings in myQ setup. <0x2d8c3680> 50 02/16/17 20:08:32.982 luup_log:43: MyQ Gateway: Authorization failed.Web Login Failed <0x2d8c3680>

Here’s updated logs against the CORRECT web service, same behavior.

02 02/16/17 20:32:16.109 luup_log:21: MyQ Gateway: (MyQGateway::init): MyQ Gateway Plugin v1.30 16-Feb-2017 - ************** STARTING ************** <0x2f0b0680> 06 02/16/17 20:32:16.109 Device_Variable::m_szValue_set device: 21 service: urn:macrho-com:serviceId:MyQGateway1 variable: PLUGIN_VERSION was: v1.30 16-Feb-2017 now: v1.30 16-Feb-2017 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2f0b0680> 02 02/16/17 20:32:16.111 luup_log:21: MyQ Gateway: (MyQGateway::init): MyQ Gateway Plugin Options - DEBUG_MODE [ENABLED] UI7_GDO [DISABLED] <0x2f0b0680> 06 02/16/17 20:32:16.111 Device_Variable::m_szValue_set device: 21 service: urn:macrho-com:serviceId:MyQGateway1 variable: DEBUG_MODE_TEXT was: ENABLED now: ENABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2f0b0680> 06 02/16/17 20:32:16.112 Device_Variable::m_szValue_set device: 21 service: urn:macrho-com:serviceId:MyQGateway1 variable: UI7_GDO_TEXT was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2f0b0680> 06 02/16/17 20:32:16.127 Device_Variable::m_szValue_set device: 21 service: urn:macrho-com:serviceId:MyQGateway1 variable: ENH_STATUS_TEXT was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2f0b0680> 50 02/16/17 20:32:17.101 luup_log:21: MyQ Gateway: Status refresh on your opener(s) will be called every:1800 <0x2d065680> 50 02/16/17 20:32:17.101 luup_log:21: MyQ Gateway: ATTEMPTING INITIAL API LOGIN <0x2d065680> 50 02/16/17 20:32:17.102 luup_log:21: MyQ Gateway: retrieveSecurityToken called <0x2d065680> 50 02/16/17 20:32:17.103 luup_log:21: (MyQGateway::retrieveSecurityToken): requesting URL: https://myqexternal.myqdevice.com/api/user/validate?appId=JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu&username=********&password=********&culture=en-US <0x2d065680> 02 02/16/17 20:32:17.751 luup_log:21: (MyQGateway::retrieveSecurityToken): received response: <html><head><title>Request Rejected</title></head><body>Your request has been denied.<br><br>[5442595389296359844]</body></html> <0x2d065680> 01 02/16/17 20:32:17.752 luup_log:21: (MyQGateway::json.decode): Invalid json data! <0x2d065680> 01 02/16/17 20:32:17.753 luup_log:21: MyQ Gateway: (MyQGateway::retrieveSecurityToken): Authentication error! <0x2d065680> 50 02/16/17 20:32:17.753 luup_log:21: MyQ Gateway: INITIAL API LOGIN **FAILED** Attempting WEB MODE fallback <0x2d065680> 50 02/16/17 20:32:17.754 luup_log:21: MyQ Gateway: DoWebLogin CMD: [rm /tmp/MyQWebLogin_Cookies;curl -b /tmp/MyQWebLogin_Cookies -c /tmp/MyQWebLogin_Cookies -H 'User-Agent: Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.105 Mobile Safari' -s -o /tmp/MyQWebLogin_Temp --next -d 'Email=REDACTED&Password=********' -L --write-out '%{http_code},%{url_effective}' https://www.mychamberlain.com] <0x2d065680> 50 02/16/17 20:32:18.210 luup_log:21: MyQ Gateway: DoWebLogin response: code [000] url [https://www.mychamberlain.com/] <0x2d065680> 50 02/16/17 20:32:18.211 luup_log:21: MyQ Gateway: INITIAL WEB MODE LOGIN *** FAILED *** <0x2d065680> 50 02/16/17 20:32:18.212 luup_log:21: MyQ Gateway: task myQ authorization failed. Check settings in myQ setup. <0x2d065680> 50 02/16/17 20:32:18.223 luup_log:21: MyQ Gateway: Authorization failed.Web Login Failed <0x2d065680>

I’ve been simply tailing the LuaUPnP.log to get this info. Clearly, this is dangerous as the log output is about 4-5 minutes behind the actual process. As you see above, I have DEBUG enabled. I actually turned that off a while ago and am now seeing where the timestamps on the messages are almost five minutes behind reality.

My point is cybrmage already pointed out the issue. There is no true value in seeing the error in the browser but the recent postings suggest people are unsure of what the error is but it’s due to the inability to login because the API web call is being rejected. So if the recent changes worked, they may only work for a brief time for some but the MyQ creators are changing or removing these appID’s.

uup_log:106: (MyQGateway::retrieveSecurityToken): received response: Request RejectedYour request has been denied.

[5442595389294711052] <0x2d3f5680>

luup_log:106: (MyQGateway::retrieveSecurityToken): requesting URL: https://myqexternal.myqdevice.com/api/user/validate?appId=JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu&username=********&password=********&culture=en-US <0x2d3f5680>

luup_log:106: (MyQGateway::retrieveSecurityToken): received response: Request RejectedYour request has been denied.

[5442595389294711052] <0x2d3f5680>

Your request has been denied.

[5442595389296359844]

This is the rejection code which doesn’t help.

[quote=“tomtcom, post:706, topic:180826”]My point is cybrmage already pointed out the issue. There is no true value in seeing the error in the browser but the recent postings suggest people are unsure of what the error is but it’s due to the inability to login because the API web call is being rejected. So if the recent changes worked, they may only work for a brief time for some but the MyQ creators are changing or removing these appID’s.

uup_log:106: (MyQGateway::retrieveSecurityToken): received response: Request RejectedYour request has been denied.

[5442595389294711052] <0x2d3f5680>

luup_log:106: (MyQGateway::retrieveSecurityToken): requesting URL: https://myqexternal.myqdevice.com/api/user/validate?appId=JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu&username=********&password=********&culture=en-US <0x2d3f5680>

luup_log:106: (MyQGateway::retrieveSecurityToken): received response: Request RejectedYour request has been denied.

[5442595389294711052] <0x2d3f5680>[/quote]

I suspected this might be the case. My guess, if this is the case, is that they are looking for IP addresses that are constantly polling for status.

[quote=“Fryswatter, post:707, topic:180826”]Your request has been denied.

[5442595389296359844]

This is the rejection code which doesn’t help.[/quote]

Correct, it won’t help, I wasn’t suggesting that error code would do anything. I’m trying to point out this is the problem. Without a working appID you can’t retrieve a security token and login. See the screenshot from cybrmage’s code in my previous post.

The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?

[quote=“tomtcom, post:709, topic:180826”][quote=“Fryswatter, post:707, topic:180826”]Your request has been denied.

[5442595389296359844]

This is the rejection code which doesn’t help.[/quote]

Correct, it won’t help, I wasn’t suggesting that error code would do anything. I’m trying to point out this is the problem. Without a working appID you can’t retrieve a security token and login. See the screenshot from cybrmage’s code in my previous post.[/quote]

My guess, if this is the case, is that they are looking for IP addresses that are constantly polling for status.

Time to look for an alternative means to control the door. I’m thinking Arduino, or any type of AVR micro controller with network connectivity.

[quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.

[quote=“tomtcom, post:712, topic:180826”][quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.[/quote]

Spend MORE money to add a mediocre device that doesn’t work if the Internet connection is down? I use door motion and state to trigger lights and such. And this plugin being broken is damaging a LOT of my LUA code in scenes and corrupting it.

I think I’m going to just give up.

[quote=“tomtcom, post:712, topic:180826”][quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.[/quote]

That’s one way to skin it, but I think you will be hard pressed to find that if you roll your own, then at least you’ll know that should there be any issues, for the most part, you will be in control. Which is what we are losing when it comes to some 3rd party devices.

[quote=“ember1205, post:713, topic:180826”][quote=“tomtcom, post:712, topic:180826”][quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.[/quote]

Spend MORE money to add a mediocre device that doesn’t work if the Internet connection is down? I use door motion and state to trigger lights and such. And this plugin being broken is damaging a LOT of my LUA code in scenes and corrupting it.

I think I’m going to just give up.[/quote]

LOL, if it makes you feel better the newer Wink V2 has local control…

However, the most important thing is I DON’T have a Wink hub. Cybrmage’s plugin works without a hub. I just install Wink on my phone, add the devices, and leverage the plugin to bring them into Vera.

[quote=“tomtcom, post:715, topic:180826”][quote=“ember1205, post:713, topic:180826”][quote=“tomtcom, post:712, topic:180826”][quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.[/quote]

Spend MORE money to add a mediocre device that doesn’t work if the Internet connection is down? I use door motion and state to trigger lights and such. And this plugin being broken is damaging a LOT of my LUA code in scenes and corrupting it.

I think I’m going to just give up.[/quote]

LOL, if it makes you feel better the newer Wink V2 has local control…

However, the most important thing is I DON’T have a Wink hub. Cybrmage’s plugin works without a hub. I just install Wink on my phone, add the devices, and leverage the plugin to bring them into Vera.[/quote]

You’re still relying on 3rd party devices.

Be careful when you live in the USA as if the door comes down without a warning (siren/flashing lights etc) and someone stubs their toe due to that you’ll end up in a royal legal mess.

There are 2 Zwave openers that are UL rated and have the siren/light warnings as to avoid that legal mess. There’s the Linear/GoControl GD00Z and Telguard’s GDC1. Both basically work by plugging two leads into where you normally plug in the wall controller wires (I have both sets connected). Unless you have an opener with digital security, these should work with mots openers. They each have a garage door sensor to detect open or closed. The Telguard one shows itself to Vera as an On/Off switch so it’s easily compatible. There is a patch to turn the Device from on/off to open close in UI7 somewhere here in the forums. I’m familiar with it as I have one and like it a lot.
I open and close my garage door via a minimote that I have in the car as the remote that came with the door is a PITA. There are other solutions using a zwave dry contact device but those are not UL rated. They are discussed about in these forums.

Be careful when you live in the USA as if the door comes down without a warning (siren/flashing lights etc) and someone stubs their toe due to that you’ll end up in a royal legal mess.

There are 2 Zave openers that are UL listed and have the siren/light warnings as to avoid that legal mess. There’s the Linear/GoControl GD00Z and Telguard’s GDC1. Both basically work by plugging two leads into where you normally plug in the wall controller wires. Unless you have an opener with digital security, these should work with mots openers. They each have a garage door sensor to detect open or closed. The Telguard one shows itself to Vera as an On/Off switch so it’s easily compatible. There is a patch to turn the Device from on/off to open close in UI7 somewhere here in the forums. I’m familiar with it as I have one and like it a lot.
I open and close my garage door via a minimote that I have in the car as the remote that came with the door is a PITA. There are other solutions using a zwave dry contact device but those are not UL rated. They are discussed about in these forums.[/quote]

Great advice BOFH. If and when I do design it, I will be adding a physical warning signal. I was actually considering running an arduino serial gateway into Vera anyway so zwave is not crucial to the mesh.

[quote=“Fryswatter, post:716, topic:180826”][quote=“tomtcom, post:715, topic:180826”][quote=“ember1205, post:713, topic:180826”][quote=“tomtcom, post:712, topic:180826”][quote=“ember1205”]The whole entire thing is infuriating.

What REALLY irritates me is that Chamberlain is purposefully changing their system (and now, seemingly with very short time windows) to break this behavior. They do not integrate / partner with a true Home Automation solution yet they won’t allow anyone to code an app on their own for this.

So, who else makes a quality door opener that WILL work with a HA solution? Chamberlain makes TONS of openers and they’re sold under a lot of different names. So, who do we turn to when Chamberlain wants to be a PITA about this stuff?[/quote]
Agreed. I asked cybrmage in his Wink plugin thread that supports garage doors if he could leverage that. I use Wink with only the plugin to bring in the motion sensor from the Ring video doorbell. So since myq works with wink I think this might be the better method to pursue.[/quote]

Spend MORE money to add a mediocre device that doesn’t work if the Internet connection is down? I use door motion and state to trigger lights and such. And this plugin being broken is damaging a LOT of my LUA code in scenes and corrupting it.

I think I’m going to just give up.[/quote]

LOL, if it makes you feel better the newer Wink V2 has local control…

However, the most important thing is I DON’T have a Wink hub. Cybrmage’s plugin works without a hub. I just install Wink on my phone, add the devices, and leverage the plugin to bring them into Vera.[/quote]

You’re still relying on 3rd party devices.[/quote]

You always will unless you go with BOFH’s idea but even if you use a true zwave only device, let’s hope you weren’t counting on your scene to run during a luup reload unless you rely on pleg to “work around” that issue. There’s a caveat and gotcha in all this junk. My Kwikset lock should be shot like old yeller. My door sensor eats batteries like the cookie monster and I “thought” z-wave protocol standards were supposed to prevent Vera from saying “we haven’t yet integrated that z-wave device” yet. I mean WTH?

Point us to a thread for the Wink integration you speak of. I’d be curious to understand how it works and whether it could do anything for me.