Page 1 of 3

MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 10:45 am
by FlyingDiver
How many MyQ users also have sensors on their garage doors? I installed a couple of these last week: http://www.monoprice.com/Product?p_id=11987

Now I'm working on a version of the plugin that uses the sensors to set the door state to eliminate polling (or reduce the frequency, anyway). That part is working fine. Now I need to figure out how to cross-check the sensors against the MyQ reported status after any commanded or detected change. And then I'll need to add some Events to report a mismatch.

If you're interested in testing, let me know.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 11:06 am
by Bollar
I still have IO Lincs with sensors installed on my doors and can test for you - I was planning to remove them, but can hold off for the cause.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 4:47 pm
by FlyingDiver
I think this version is ready for testing.

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

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 8:45 pm
by Bollar
I'm getting this error continuously repeating:
Code: Select all
   MyQ Error                       Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "plugin.py", line 237, in deviceUpdated
KeyError: key sensor not found in dict

   MyQ Error                       Error in plugin execution ServerReplacedElem:

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 8:48 pm
by FlyingDiver
Darn. I thought I fixed that. Do you have sensors linked to the doors? You edit the device to assign them.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 8:57 pm
by Bollar
FlyingDiver wrote:
Darn. I thought I fixed that. Do you have sensors linked to the doors? You edit the device to assign them.

I gave that a shot - the IOLincs I used to monitor the door status aren't in the device list. Basically they're a binary input that's open/closed.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 8:59 pm
by FlyingDiver
Bollar wrote:
I gave that a shot - the IOLincs I used to monitor the door status aren't in the device list. Basically they're a binary input that's open/closed.


So how do they show up in Indigo? Not as sensor devices? I grab all indigo.sensor devices for the list.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 9:05 pm
by Bollar
I don't know for sure - I think of them more as relays, since they also have an output.

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 9:17 pm
by FlyingDiver
OK, that's an iodevice, and adding that would also require that I implement a way to identify the state to monitor. Doable, but not quickly.

Are there any custom states for that device not shown in the standard UI?

I still need to fix the issues when there's no sensor linked.

joe

Re: MyQ and door sensors?

PostPosted: Fri Nov 25, 2016 9:44 pm
by Bollar
FlyingDiver wrote:
OK, that's an iodevice, and adding that would also require that I implement a way to identify the state to monitor. Doable, but not quickly.

Are there any custom states for that device not shown in the standard UI?

No, what you see is what you get.

Re: MyQ and door sensors?

PostPosted: Mon Nov 28, 2016 12:29 pm
by polycron
I'm using the https://www.amazon.com/Ecolink-Intelligent-Technology-Z-Wave-TILT-ZWAVE2-ECO/dp/B00HGVJRX2/ref=sr_1_1?ie=UTF8&qid=1480357494&sr=8-1&keywords=zwave+tilt and it seems to be working fine. I had a little bit of trouble with errors spawning after I ran the upgrade but figured out it was because I did not have the associated Tilt sensor setup for each of the garage door openers. Once I had those associations made in the plugin it has been running error free.

Jeff

Re: MyQ and door sensors?

PostPosted: Mon Nov 28, 2016 12:53 pm
by FlyingDiver
polycron wrote:
I'm using the https://www.amazon.com/Ecolink-Intelligent-Technology-Z-Wave-TILT-ZWAVE2-ECO/dp/B00HGVJRX2/ref=sr_1_1?ie=UTF8&qid=1480357494&sr=8-1&keywords=zwave+tilt and it seems to be working fine. I had a little bit of trouble with errors spawning after I ran the upgrade but figured out it was because I did not have the associated Tilt sensor setup for each of the garage door openers. Once I had those associations made in the plugin it has been running error free.

Jeff


Good to hear. I need to roll the changes in 7.0.2 into the sensor version (7.1.x) and fix the errors from no linked sensor. Then I'll put out another test release.

Re: MyQ and door sensors?

PostPosted: Mon Nov 28, 2016 1:13 pm
by polycron
I just generated an error when I attempt to configure the plugin:

Code: Select all
Error (client)                  runConfigDialog() caught exception: PAXDialogControllerError -- Field ID statusNote was already used. Every <Field> element must have a unique field ID.


Jeff

Re: MyQ and door sensors?

PostPosted: Mon Nov 28, 2016 1:15 pm
by FlyingDiver
polycron wrote:
I just generated an error when I attempt to configure the plugin:

Code: Select all
Error (client)                  runConfigDialog() caught exception: PAXDialogControllerError -- Field ID statusNote was already used. Every <Field> element must have a unique field ID.


Jeff


Woops. Editing error. I'll fix that in the next test release.

Re: MyQ and door sensors?

PostPosted: Mon Nov 28, 2016 2:46 pm
by FlyingDiver
v7.1.2 is available now. This is a pre-release, so the built in updater won't pick it up.

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

This version should handle doors without sensors properly. All other recent bug fixes have also been included.

Still on the to-do list is handling IO devices as sensors.