I tmodified the URL to Request Rejected withe values modified to match my creds. It comes up with a page not found indicating that may be the root of my problem.
I’ve sent an email to a gentleman that appears to have made a working Assurelink/MyQ app for Windows phone and hope he provides a possible working URL for me to try. As Sears is quite unhelpful.
I’m hoping it is as simple as changing some variables as all that would be needed for the plugin would be another variable. Eg Brand. Then test on Brand=Craftsman and go to the assurelink local variables, otherwise go to the MyQ local variables.
Update: The Windows Phone app basically emulates the login that exists in the javascript on the login page. It does not access the API so no luck there.
Like the MyQ site, I believe the Assurelink app accesses a different URL than the normal browser.
Wireshark doesn’t work but I found and android app called tPacketcapture that allowed me to capture packets.
It looks the URL for the Assurelink may be craftexternal.myqdevice.com. When using my Browser I get the following return:
{“UserId”:268237,“SecurityToken”:“Zh16w6jnsBryLz24ueCEwytOIbwdYh5fFaBsHFNgjN2kWSQOKs2GitJYjX/K+w7PEg8QUSIrt0R0RZ5XIO24BA==”,“ReturnCode”:“0”,“ErrorMessage”:“”,“ExecutionTimes”:“0;46.8003;202.8013;202.8013”,“BrandId”:1,“BrandName”:“Liftmaster”,“RegionId”:1}
Deleted the device and reloaded Vera. Now the device was recreated but with no Username and Password variables and no LUA errors.
Reloaded all plugin files onto Vera. Now it won’t even create the device.
Restored July 3rd backup from the MIOS servers to get a clean unit.
Loaded plug in and thsi time device was created and I was prompted for a username and password. Still no child device but we are getting further.
Here’s the latest from the LuaPNP log. Looks like we got a an auth token so the URL looks to be correct.
06 07/08/14 23:11:00.807 Device_Variable::m_szValue_set device: 79s: Tue 23:10 now: Tue 23:11 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2b5cd680>
50 07/08/14 23:11:00.808 luup_log:79: MyQ Gateway: Our initial security token is STepjITj4GUAug5rE4a9flIlDeG6Z5dkWJUJ3SeFxgecAK1UKlNrSW+rTLd51e3GB0VyaQRmju7BOJQSiloLtQ== <0x2b5cd680>
06 07/08/14 23:11:00.808 Device_Variable::m_szValue_set device: 79s: Tue 23:11 now: Tue 23:11 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b5cd680>
06 07/08/14 23:11:01.412 Device_Variable::m_szValue_set device: 75 now: 1 #hooks: 0 upnp: 0 v:0xf72708/NONE duplicate:1 LEAK this:90112 start:585728 to 0x14da000 <0x2fbcd680>
01 07/08/14 23:11:01.611 LuaInterface::CallFunction_Startup 1 device 79 function init failed [string “module(“L_MyQGateway_json”, package.seeall)…”]:366: Unexpected character at Line 1 character 13: ] (93) when reading array ({ or [ or ’ or " or number or boolean or null expected)
Context:
{“Devices”:[],“ReturnCode”:“0”,"ErrorMessag
^ <0x2b5cd680>
01 07/08/14 23:11:01.611 LuImplementation::StartLua running startup code for 79 I_MyQGateway.xml failed <0x2b5cd680>
Device 79 is the main MyQ device
Device 75 is a MultiSwitch device (Multiswitch app generated)
When trying the browser first with the validateuser url and then the UserDevice details using teh APpId and the securityToken returned by the 1st url, the response is
{“Devices”:[],“ReturnCode”:“0”,“ErrorMessage”:“”}
Any idea’s what may be the cause of the current roadblock?
The main plugin now shows A day and time for the last Auth so it seems to have accepted the credentials but still seems to be having problem with possibly locating my garage door (child device). I have a garage door connected as the app and website work fine.
Oh crap, I just realized I created an account on myliftmaster.com with the same creds as for assurelink the other day to see if I could add my assurelink gateway (which it woudl not let me). It seems the API URL’s try and access that account. I deleted it and now the website states {“UserId”:0,“ReturnCode”:“204”,“ErrorMessage”:“The username was not found or is locked out. (204)”}
I can still login to assurelink.craftsman.com and use the craftsman app. Looks like the plugin worked due to my liftmaster account. Which explains the no openers being found.
Again, back to the drawing board. That’ll teach me to buy Craftsman. Looks like the AppID is different for the assurelink opener and that is how the sit determines what you have. Anybody know how to extract that info from the Assurelink iPhone or Android app?
Thank you very much for this! After a few tries I was able to get everything loaded. I ssh’ed the image file after I created the device and the icon is still the default icon, even after a reboot. Does this have to be done before the device is created?
Put a packetsniffer on my Android device (tPacketCapture) and went over the PCAP file. The login string is sent encrypted so no way to sniff it out unless the NSA gets involved. Di find out that it looks like the amazon app store is a tattle tale and sends phone make, model and ID to say the least to Amazon even when not using an Amazon appstore purchased application.
I can try but I’m going to be stopping doing any development on it.
I’m really leery about MyQ and their response to flat out not allow access to their APIs.
I had written to their MyQ Community Specialist for LiftMaster a couple of times and she said that this is flat out against their terms of use, however, if enough people sent feedback, they would revisit the integration piece. It’s really a shame as with proper documentation it would make development much easier and who knows when they might change their API or change the appID and then it’s playing catch up.
Perhaps people can start writing to chamberlain and express their desire to have an OPEN API so that people can use the devices they purchased in their automation systems.
I went back to using the RM10 Relay Module from 007 systems (soldered the leads to my control panel)
hooked up my tilt sensor and used the Garage Door Plugin to tie it all together. It’s working fine now.
It’s a shame to see companies behave so shortsightedly [at least IMHO] oh well
It was fun learning how to program in LUA and the community here is fantastic, people gave me all kinds of pointers and tips. I simply would not have been able to create that without the communities help. A big thanks to everyone
Got this plugin working fine. Easy to set up, and it works without issue. The only nuisance is that it creates two Garage Door Opener devices, and when I delete the wrong one (one device works the other does not), it just pops back in there when I “Reload” lua.
I set this up yesterday and it worked immediately. In contrary to that awful Liftmaster Internet gateway that required 5 resets and all the openers to be reset several times before it’d let me add them.
Anyway sorry to see you stop development, I understand your point of view but you created something very useful and functional and its a waste to see that go.
I’ll also reach out to Liftmaster and ask for open API’s, probably not going to change anything but it doesn’t hurt to try.
Sorry for a newbie question… I have a liftmaser/chamberlain door opener… I really didn’t want to deal with MyQ. If I wanted to use this plugin, can I bypass the need for a myq account?
Will this plugin give us the ability to monitor bad tries at the keypad? I am really trying to find something that can lock out for x seconds after n number of bad tries. That, or give the ability to have > 4 digit PIN. I know that Chamberlain doesn’t offer anything w/ > 4 digit PIN so on that last part, I am doubtful that that is possible. But the first one might be.
Macrho I hope you still support the plugin.
I was a bit premature with saying everything worked ok.
I seem to have an issue with if the doors are not used for about 12 hours or so it doesnt report the correct status and commands fail.
It feels like the plugin then, after I tried to open a door, communicates with MyQ and will start to work again. Until after another 12 hours or so.
@Vol - I was having the same issues with my install. After about 12 hours or so, the door was unresponsive.
Do you have a lot of plugins installed on your Vera? I was not able to locate the issue but speculated it was because of the number of plugins I had installed… If you have any, what are they?
I have the following plugins:
PLEG, PLC,PL Timer Switch, TCP Lighting, Philips HUE, Virtual ON/OFF Switch, Vera Alert, Dropbox Uploader, Day or Night, Mios Update Util, Foscam IP Camera, Multiswitch.
About 5 scenes. 50 or so devices on a VeraLite.
Do you have some logic in the plugin that periodically (say every minute) checks the status of the doors?
[quote=“Aaron, post:137, topic:180826”]I’m considering getting one of these… and this is a long thread so I admit I did not read all of it so a question…
How well do these work?
I currently use tilt sensors and they are not reliable - at all. I get incorrect readings a lot.
If this is reliable with the plugin (will it be submitted to MIOS APPS soon?) I will buy one of these.
thank you for your input![/quote]
For us it’s been great. The MyQ system was easy to install and seems very reliable. The plugin has worked since day one with zero issues. If only everything vera related were that easy!
[quote=“tb001, post:138, topic:180826”][quote=“Aaron, post:137, topic:180826”]I’m considering getting one of these… and this is a long thread so I admit I did not read all of it so a question…
How well do these work?
I currently use tilt sensors and they are not reliable - at all. I get incorrect readings a lot.
If this is reliable with the plugin (will it be submitted to MIOS APPS soon?) I will buy one of these.
thank you for your input![/quote]
For us it’s been great. The MyQ system was easy to install and seems very reliable. The plugin has worked since day one with zero issues. If only everything vera related were that easy![/quote]
Does it work directly with Vera or is there an internet connection and/or subscription fee, etc?
[quote=“Vol, post:136, topic:180826”]I have the following plugins:
PLEG, PLC,PL Timer Switch, TCP Lighting, Philips HUE, Virtual ON/OFF Switch, Vera Alert, Dropbox Uploader, Day or Night, Mios Update Util, Foscam IP Camera, Multiswitch.
About 5 scenes. 50 or so devices on a VeraLite.
Do you have some logic in the plugin that periodically (say every minute) checks the status of the doors?[/quote]
Yes, it’s in the L_MyQGateway.lua file:
local REFRESH_DOOR_INTERVAL = 60 -- Refresh every 90 seconds
My comment is incorrect though, but simply change that in seconds to change the interval in checking the door status. Right now, it’s at 60 seconds
I was thinking of putting a change in that triggered off an open or close action it would check the door more frequently for a period of time