MyQ Plugin - BETA
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
Thanks .... Working perfectly
Re: MyQ Plugin - BETA
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!
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!
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
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.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!
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
This worked perfectly for me, thanks!!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
Vig.
Re: MyQ Plugin - BETA
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.
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.
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
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
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
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
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.
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
What kind (and model) of opener(s) do you actually have?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.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
I am getting the same error - Chamberlain Model: LW9000WF
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
Is this a new setup or did this previously work?martinc wrote:I am getting the same error - Chamberlain Model: LW9000WF
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7823
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MyQ Plugin - BETA
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.
Please use the "Code" tag when posting the log entries.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MyQ Plugin - BETA
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:
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"