MyQ Plugin discussion

Posted on
Tue Nov 15, 2016 3:03 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

MyQ Plugin discussion

Indigo 7 pre-release version at https://github.com/FlyingDiver/Indigo-M ... tag/v7.0.0

This version changes the opener devices to the new Indigo 7 Lock type devices instead of generic relay (on/off) devices. This better matches the actual devices, but requires the plugin to update the device definition. I need more testing on this before I call this an official release. Please install and test if you can.

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.

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

Posted on
Mon Nov 21, 2016 11:54 pm
dliccardo offline
Posts: 53
Joined: Jun 09, 2014

Re: MyQ Plugin discussion

Just installed with Indigo 7. I have a new Liftmaster 9000 series with MyQ. Works great so far. I will post again if I run into any issues...

Thanks!

Posted on
Tue Nov 22, 2016 1:39 pm
chasyori offline
Posts: 27
Joined: Dec 18, 2014

Re: MyQ Plugin discussion

Working fine for me also.. thanks


Sent from my iPhone using Tapatalk

Posted on
Tue Nov 22, 2016 1:44 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ Plugin discussion

chasyori wrote:
Working fine for me also.. thanks


Was this a plugin upgrade or a new setup? It's the conversion from the old device parameters to the new config that I'm most interested in testing.

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

Posted on
Wed Nov 23, 2016 1:55 am
chasyori offline
Posts: 27
Joined: Dec 18, 2014

Re: MyQ Plugin discussion

It was a upgrade

Posted on
Wed Nov 23, 2016 5:47 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

I'm trying this for the first time and I guess it's not recognizing my door types?

Code: Select all
   Started plugin "MyQ 7.0.0"
   MyQ                             Starting MyQ
   MyQ Debug                       updateFrequency = 86400.0
   MyQ Debug                       statusFrequency = 86400.0
   MyQ                             Checking for updates...
   MyQ Debug                       Plugin version detected: 7.0.0
   MyQ Debug                       Current version is: 7.0.0
   MyQ Debug                       Getting latest release from FlyingDiver/Indigo-MyQ...
   MyQ Debug                       GET /repos/FlyingDiver/Indigo-MyQ/releases/latest
   MyQ Debug                       HTTP 200 OK
   MyQ Debug                       Latest release is: 0.0.14
   MyQ                             No updates are available
   MyQ Debug                       myqLogin: response = <Response [200]>
   MyQ Debug                       myqLogin: content = {"UserId":0,"SecurityToken":"178f1007-652e-4268-a53a-bc91096e6c54","ReturnCode":"0","ErrorMessage":"","BrandId":2,"BrandName":"Chamberlain","RegionId":1}
   MyQ Debug                       myqLogin: Success, Brand = Chamberlain, SecurityToken = xxx
   MyQ Debug                       getDevices: 4 Devices
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 218505227
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 1700458909
   MyQ Debug                       getDevices: MyQDeviceTypeId = 17, DeviceId = 285286819
   MyQ Debug                       getDevices: MyQDeviceTypeId = 17, DeviceId = 1700458910

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Nov 23, 2016 6:58 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ Plugin discussion

Correct. MyQDeviceTypeId 16 and 17 are not defined in the code the plugin is based on. I just did a web search, and it appears MyQDeviceTypeId = 17 is another door type (WGDO). I can probably add it pretty quickly. I don't see any references to MyQDeviceTypeId =16 anywhere. What are your doors or other devices?

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

Posted on
Wed Nov 23, 2016 7:02 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

FlyingDiver wrote:
Correct. MyQDeviceTypeId 16 and 17 are not defined in the code the plugin is based on. I just did a web search, and it appears MyQDeviceTypeId = 17 is another door type (WGDO). I can probably add it pretty quickly. I don't see any references to MyQDeviceTypeId =16 anywhere. What are your doors or other devices?

I have two doors - both are Chamberlain HD950WF. There are no other MyQ devices.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Nov 23, 2016 7:04 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ Plugin discussion

In the MyQ app, can you control the opener light separately from the opener itself? I'm wondering if the other "device" is the light?

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

Posted on
Wed Nov 23, 2016 7:08 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

FlyingDiver wrote:
In the MyQ app, can you control the opener light separately from the opener itself? I'm wondering if the other "device" is the light?

No, just the doors.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Nov 23, 2016 7:21 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

285286819 and 1700458910 are the garage door devices. If the others are the door lights, that's not exposed to me via their app.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Nov 23, 2016 7:23 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ Plugin discussion

OK, fine. I'll add 17 to the list of door types, and ignore 16. 16 might be the same a 1, which is the Wifi interface device (controller).

The code I'm looking at also has support for lights (typeID = 3), so I might be able to add light support.

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

Posted on
Wed Nov 23, 2016 7:36 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

FlyingDiver wrote:
OK, fine. I'll add 17 to the list of door types, and ignore 16. 16 might be the same a 1, which is the Wifi interface device (controller).

That could well be - the WiFi interface is integrated into this model, so each door has its own WiFi interface.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Nov 23, 2016 7:43 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MyQ Plugin discussion

V7.0.1 released with support for device type 17.

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

Posted on
Wed Nov 23, 2016 7:48 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: MyQ Plugin discussion

FlyingDiver wrote:
V7.0.1 released with support for device type 17.

Cool!

FYI, this error on first run, but it looks like the devices were created correctly.
Code: Select all
         Getting latest release from FlyingDiver/Indigo-MyQ...
   MyQ Debug                       GET /repos/FlyingDiver/Indigo-MyQ/releases/latest
   MyQ Debug                       HTTP 200 OK
   MyQ Debug                       Latest release is: 7.0.1
   MyQ                             No updates are available
   MyQ Debug                       myqLogin: response = <Response [200]>
   MyQ Debug                       myqLogin: content = {"UserId":0,"SecurityToken":"a01d1d86-2cc8-40f5-a56c-8cc3faa8b92b","ReturnCode":"0","ErrorMessage":"","BrandId":2,"BrandName":"Chamberlain","RegionId":1}
   MyQ Debug                       myqLogin: Success, Brand = Chamberlain, SecurityToken = a01d1d86-2cc8-40f5-a56c-8cc3faa8b92b
   MyQ Debug                       getDevices: 4 Devices
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 218505227
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 1700458909
   MyQ Debug                       getDevices: MyQDeviceTypeId = 17, DeviceId = 285286819
   MyQ Debug                       getDevices: Opener Range Rover (285286819), state = 2
   MyQ Error                       Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 87, in runConcurrentThread
  File "plugin.py", line 299, in getDevices
UnboundLocalError: local variable 'dev' referenced before assignment

   MyQ Error                       plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   MyQ Debug                       Updated Range Rover to version 1
   MyQ Debug                       Range Rover: Device Version is up to date
   SQL Logger                      creating table device_history_1685914274 for "Range Rover"
   MyQ Debug                       myqLogin: response = <Response [200]>
   MyQ Debug                       myqLogin: content = {"UserId":0,"SecurityToken":"fbd4bb9a-242c-4319-aba3-f6deec93250e","ReturnCode":"0","ErrorMessage":"","BrandId":2,"BrandName":"Chamberlain","RegionId":1}
   MyQ Debug                       myqLogin: Success, Brand = Chamberlain, SecurityToken = fbd4bb9a-242c-4319-aba3-f6deec93250e
   MyQ Debug                       getDevices: 4 Devices
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 218505227
   MyQ Debug                       getDevices: MyQDeviceTypeId = 16, DeviceId = 1700458909
   MyQ Debug                       getDevices: MyQDeviceTypeId = 17, DeviceId = 285286819
   MyQ Debug                       getDevices: Opener Range Rover (285286819), state = 2
   MyQ Debug                       getDevices: MyQDeviceTypeId = 17, DeviceId = 1700458910
   SQL Logger                      adding column "onoffstate_ui" to table device_history_1685914274 ("Range Rover")
   MyQ Debug                       getDevices: Opener Tesla (1700458910), state = 2
   SQL Logger                      creating table device_history_796043412 for "Tesla"
   MyQ Debug                       Updated Tesla to version 1
   MyQ Debug                       Created New Opener Device: Tesla (1700458910)
   MyQ Debug                       Tesla: Device Version is up to date

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Who is online

Users browsing this forum: No registered users and 2 guests