MyQ API changes

Posted on
Tue Feb 14, 2017 11:36 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

MyQ API changes

MyQ made some changes that broke the plugin. I'm working on fixes now.

Pre-release version for testing: https://github.com/FlyingDiver/Indigo-M ... tag/v7.1.6

Since this is a pre-release, the built-in updater will not work. Please install manually.

For me, this fixes login and get door status, but I am unable to command door changes. But the error code I'm getting is sometimes gateway specific. I need testing of this version to see if it works for other people.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Feb 14, 2017 12:58 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MyQ API changes

version 7.1.6 does the same for me: no errors and status works.

JP

Posted on
Tue Feb 14, 2017 1:02 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ API changes

roquej wrote:
version 7.1.6 does the same for me: no errors and status works.

JP



But open/close does not?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Feb 14, 2017 1:05 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MyQ API changes

yes, not open nor close

JP

Posted on
Tue Feb 14, 2017 1:06 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ API changes

Can you turn on debug logging and see if you're getting the same 217 error I'm getting?

Code: Select all
   MyQ Debug                       changeDevice: Bad return code: Error processing request (217)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Feb 14, 2017 1:10 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MyQ API changes

Yes,

MyQ Debug changeDevice: Bad return code: Error processing request (217)

JP

Posted on
Tue Feb 14, 2017 1:38 pm
polycron offline
Posts: 100
Joined: Jan 08, 2006

Re: MyQ API changes

I am also getting the (217) error.

Jeff

Posted on
Tue Feb 14, 2017 8:26 pm
flakenstein offline
Posts: 6
Joined: Nov 30, 2016

Re: MyQ API changes

Pre-release works for login and status check. No actions work, but send status request did the right thing.

Posted on
Thu Feb 16, 2017 12:41 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: MyQ API changes

I don't know if it's accurate, but this project supposedly has a fix for the API changes:

https://github.com/Einstein42/myq-garage/pull/10

Posted on
Thu Feb 16, 2017 12:44 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ API changes

blysik wrote:
I don't know if it's accurate, but this project supposedly has a fix for the API changes:

https://github.com/Einstein42/myq-garage/pull/10


I'm using that code now, and it doesn't work for open/close. Just for login and status. At least in the plugin.

No idea what the issue is.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Feb 16, 2017 4:00 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: MyQ API changes

Looking at the diff here for another project:
https://github.com/arraylabs/myq/commit ... d1d83dd64f

It looks like some of the urls changed case a bit?

Not sure if it matters.

Posted on
Thu Feb 16, 2017 4:02 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ API changes

As far as I can tell, I'm using the exact same URLs that project is. But it doesn't work the same.

I'm tired of banging my head on this. I'm taking a break from it for a couple days.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Feb 18, 2017 1:49 pm
gskarp offline
Posts: 141
Joined: Apr 19, 2012

Re: MyQ API changes

Works like you say.Status but no command. No errors so far.

Posted on
Sun Feb 19, 2017 2:04 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ API changes

v7.1.7: https://github.com/FlyingDiver/Indigo-M ... tag/v7.1.7

Should fix issues with commands to the doors not working.

Requires that the MyQ devices be recreated.

This is a pre-release, so the plugin updater will not pick it up.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 19, 2017 2:20 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: MyQ API changes

Opened then closed the plugin prefs dialog (no changes) and got this:

Code: Select all
   MyQ Error                       Error in plugin execution UiClosed1:

Traceback (most recent call last):
  File "plugin.py", line 222, in closedPrefsConfigUi
  File "plugin.py", line 409, in getDevices
ValueError: invalid literal for int() with base 10: ''


Same for trying to lock/unlock...

Actually, it's just similar:

Code: Select all
   MyQ Error                       Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 280, in actionControlDevice
  File "plugin.py", line 491, in changeDevice
ValueError: invalid literal for int() with base 10: ''

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Who is online

Users browsing this forum: No registered users and 1 guest