adamheinmiller / ST_MyQ

MyQ Integration for Smart Things
43 stars 69 forks source link

Complete list of door brand agent strings #1

Open adamheinmiller opened 10 years ago

adamheinmiller commented 10 years ago

The current version submits the following user-agent string format:

[brand]/1332 (iPhone; iOS 7.1.1; Scale/2.00)

The string varies by brand. The current version substitutes the brand-name gotten from the API, but there is likely more that needs done to perfectly match the string for other brands. I developed on Chamberlin doors and do not have access to Sears/Craftsman or Liftmaster doors.

chevyman142000 commented 10 years ago

I have a Liftmaster door opener and cannot get this to work with SmartThings. Below is what I'm seeing in the logs.

c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:20 PM: debug Door Status: unknown c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:20 PM: debug API Error: [ReturnCode:GetMyQErrorMessageFailed, ErrorMessage:Undefined Error] c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:19 PM: debug Door ID: No Door Found! c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:19 PM: debug API Error: [ReturnCode:GetMyQErrorMessageFailed, ErrorMessage:Undefined Error, Devices:[]] c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:19 PM: debug Getting MyQ Devices c1dc340a-228e-4c8f-a243-9bb9864f225f 10:16:19 PM: debug Refreshing Door State

adamheinmiller commented 10 years ago

I tested different things for the agent string and I never got a rejection, even when it was something ridiculous. I wanted a complete set of agent strings so the masquerade we're perpetrating would be more complete; let me do some testing and see if I can replicate your issue.

If you haven't already, remove your current MyQ door and re-add it while logging the entire exchange. This will capture the Login process and should show a security token if successful or an error if not.

chevyman142000 commented 10 years ago

Nevermind...I got it working! I had the wrong garage door name in and the iPhone app got confused. I had to go in and edit it via the IDE. It now works with no problem! Thank you!

steveganz commented 10 years ago

Based on some references I found in MyQ documentation, I'm going to go out on a limb and suggest: