MyQ Plugin - BETA

User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

V0.0.7 now available. Recognizes door opener types 5 and 7.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
chasyori
Posts: 27
Joined: Thu Dec 18, 2014 6:01 am

Re: MyQ Plugin - BETA

Post by chasyori »

Thanks .... Working perfectly
chase
Posts: 75
Joined: Sun Oct 27, 2013 8:37 am

Re: MyQ Plugin - BETA

Post by chase »

I have not scene the brand 'Detonator_Chamberlain' before.

Also, the light switches are never getting their status updated, and the controls don't do anything... :)

What can I provide remotely for debugging?

Thanks!
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

chase wrote:Also, the light switches are never getting their status updated, and the controls don't do anything... :)

What can I provide remotely for debugging?

Thanks!
Nothing I can do. I don't have any switches and I can't find any reference to controlling them anywhere. I probably ought to yank the code that's there for the switches out, as it's not going to do anything.

At this point, it's going to require network sniffing and reverse engineering to find out what the API calls are to control the switches.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: MyQ Plugin - BETA

Post by Vig »

FlyingDiver wrote:First beta test release is available now at https://github.com/FlyingDiver/Indigo-MyQ/releases

It does pretty much what you would expect it to do. Reports status of the doors, and allows you to open or close them.

One unusual aspect of this plugin - it auto-creates the Indigo devices after entering your MyQ login information. It was either do that, or cache the device information so users can pick specific openers to create devices for. Right now, it will always create devices for all openers that MyQ knows about.

If people really don't like the way it works now, I'll change it.

I don't have any MyQ enabled devices other than openers. If you have other devices you would like access to, let me know what they are and what you want to do to them. I'll add the additional device types.

Requires the requests module:

Code: Select all

 sudo pip2.6 install requests
This worked perfectly for me, thanks!!

Vig.
estopka
Posts: 19
Joined: Wed Sep 02, 2015 8:54 am

Re: MyQ Plugin - BETA

Post by estopka »

Hi,thank you for taking this on, awesome functionality that I've been hoping for. I have loaded up requests with the following commands:
sudo easy_install-2.6 pip and
sudo pip2.6 install requests

Looks like they are loading up ok, but am getting the following errors:

MyQ Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
MyQ Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 107, in runConcurrentThread
File "plugin.py", line 290, in getDevices
File "plugin.py", line 278, in myqLogin
File "/Library/Python/2.6/site-packages/requests-2.11.1-py2.6.egg/requests/models.py", line 826, in json
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/__init__.py", line 307, in loads
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/decoder.py", line 335, in decode
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/decoder.py", line 353, in raw_decode
ValueError: No JSON object could be decoded


Log is not returning any information on the account, so I assume this is not working correctly.
Am happy to send any additional information to help if I can.
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

Turn on debugging in the plugin configuration dialog. Make sure your login info for the MyQ website is correct, and that you have the correct opener brand selected.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
estopka
Posts: 19
Joined: Wed Sep 02, 2015 8:54 am

Re: MyQ Plugin - BETA

Post by estopka »

Turned on debugging, and it now shows the following:
MyQ Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
MyQ Debug validatePrefsConfigUi called
MyQ Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 107, in runConcurrentThread
File "plugin.py", line 290, in getDevices
File "plugin.py", line 278, in myqLogin
File "/Library/Python/2.6/site-packages/requests-2.11.1-py2.6.egg/requests/models.py", line 826, in json
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/__init__.py", line 307, in loads
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/decoder.py", line 335, in decode
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/simplejson/decoder.py", line 353, in raw_decode
ValueError: No JSON object could be decoded
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

Well, the call to the MyQ website to get the token needed for the API calls is failing. Most likely reason is bad login info.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
estopka
Posts: 19
Joined: Wed Sep 02, 2015 8:54 am

Re: MyQ Plugin - BETA

Post by estopka »

I've double checked and re-entered the login id and password, and have tried each opener type, but still getting same results. Any other suggestions would be appreciated.
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

estopka wrote:I've double checked and re-entered the login id and password, and have tried each opener type, but still getting same results. Any other suggestions would be appreciated.
What kind (and model) of opener(s) do you actually have?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
martinc
Posts: 83
Joined: Thu Oct 27, 2005 3:06 pm

Re: MyQ Plugin - BETA

Post by martinc »

I am getting the same error - Chamberlain Model: LW9000WF
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

martinc wrote:I am getting the same error - Chamberlain Model: LW9000WF
Is this a new setup or did this previously work?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ Plugin - BETA

Post by FlyingDiver »

I released v0.0.8 with more debug logging for the MyQ login. Please update to this version, turn on debugging, and reload the plugin. Then post the log entries.

Please use the "Code" tag when posting the log entries.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
estopka
Posts: 19
Joined: Wed Sep 02, 2015 8:54 am

Re: MyQ Plugin - BETA

Post by estopka »

Removed 0.0.7 (stopped Indigo server, removed plugin file, and removed prefs file, restarted server no Plugin identified in Indigo, clean)

Ran 0.0.8 installer, received the following error trying to install; no configuration screen came up:

Code: Select all

 Installing and enabling plugin MyQ v0.0.8
  Loading plugin "MyQ 0.0.8"
  Starting plugin "MyQ 0.0.8" (pid 11055)
  MyQ Error                       Error in plugin execution InitializeMain:

Traceback (most recent call last):
SyntaxError: ('invalid syntax', ('plugin.py', 271, 11, "        url = self.service + '/Membership/ValidateUserWithCulture?appid=' + self.appID + '&securityToken=null&username=' + self.username + '&password=' + self.password + '&culture=en'\n"))

  Stopping plugin "MyQ 0.0.8" (pid 11055)
  Stopped plugin "MyQ 0.0.8"
Locked

Return to “MyQ”