rainlake / homebridge-platform-myq

19 stars 6 forks source link

Two Garages #3

Closed sdorilas closed 7 years ago

sdorilas commented 8 years ago

Hi there!!

I was wondering why i'm showing two garages. I have a 2 car garage that is controlled but one remote but when I look in any automation apps, I have my "Garage Door" then I also have some "CG084309..." also appearing. Here is my config:

{ "platform": "MyQ", "name": "MyQ Platform", "user": "XXXXXXXXX", "pass": "XXXXXXXX,", "brand": "Chamberlain" }]

rainlake commented 8 years ago

It could be your "internet gateway" or something similar. Can both of them open your garage door?

On Tuesday, June 28, 2016, sdorilas notifications@github.com wrote:

Hi there!!

I was wondering why i'm showing two garages. I have a 2 car garage that is controlled but one remote but when I look in any automation apps, I have my "Garage Door" then I also have some "CG084309..." also appearing. Here is my config:

{ "platform": "MyQ", "name": "MyQ Platform", "user": "XXXXXXXXX", "pass": "XXXXXXXX,", "brand": "Chamberlain" }]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/3, or mute the thread https://github.com/notifications/unsubscribe/AAYg3dRishbfivVIgoL_QkxOFe_26bFUks5qQdUfgaJpZM4JAtXB .

sdorilas commented 8 years ago

No. I can only control it from the one labeled "Garage Door". It's just annoying because it makes it seem like I have two garages when I ask Siri something. But it's it's just a gateway or something, so be it. Thank you so much.

Sent from my iPhone.

On Jun 28, 2016, at 11:33 PM, rainlake notifications@github.com wrote:

It could be your "internet gateway" or something similar. Can both of them open your garage door?

On Tuesday, June 28, 2016, sdorilas notifications@github.com wrote:

Hi there!!

I was wondering why i'm showing two garages. I have a 2 car garage that is controlled but one remote but when I look in any automation apps, I have my "Garage Door" then I also have some "CG084309..." also appearing. Here is my config:

{ "platform": "MyQ", "name": "MyQ Platform", "user": "XXXXXXXXX", "pass": "XXXXXXXX,", "brand": "Chamberlain" }]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rainlake/homebridge-platform-myq/issues/3, or mute the thread https://github.com/notifications/unsubscribe/AAYg3dRishbfivVIgoL_QkxOFe_26bFUks5qQdUfgaJpZM4JAtXB .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pleasantone commented 7 years ago

Just wanted to say, I see the same thing, using the Chamberlain MyQ.

So looking through the protocol and running in debug, the MyQ is capable of controlling up to two doors. It's reporting a second door, but the interesting thing is that the 'desc' attribute is empty, because the door was never assigned a name (because it doesn't exist).

One possibility would be to not publish the device that has desc set to '', the other is to not publish the device that has updated time > x months ago.

Here are the differences between the working door and the unconfigured door:

Attr 120 (desc): "Garage Door Opener" vs "" Attr 146 (myqmonitormode): 0 (configured) vs 1 (unconfigured) Attr 116 (numdpsdevices): 1 vs 0

I have no idea what "numdpsdevices" is, but seems promising.

9/15/2016, 7:39:24 PM] [MyQ-platform] { MyQDeviceId: 1577391,
  ParentMyQDeviceId: 1577390,
  MyQDeviceTypeId: 7,
  MyQDeviceTypeName: 'VGDO',
  RegistrationDateTime: '2015-06-16T19:14:45.553',
  SerialNumber: 'CGxxxxxxxAEC',
  UserName: 'foo@example.com',
  UserCountryId: 0,
  Attributes:
   [ { MyQDeviceTypeAttributeId: 135,
       Value: 'True',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'online',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 108,
       Value: 'CG084303BAEC',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'name',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 118,
       Value: '9',
       UpdatedTime: '1473967217952',
       IsDeviceProperty: false,
       AttributeDisplayName: 'doorstate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2016-09-15T19:20:17.9523781Z' },
     { MyQDeviceTypeAttributeId: 120,
       Value: 'Garage Door Opener',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'desc',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 126,
       Value: '33609313',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'gatewayID',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 131,
       Value: '0',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'dpsnocommstate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 132,
       Value: '0',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'dpsbatterystate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 136,
       Value: '1',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'isunattendedopenallowed',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 137,
       Value: '1',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'isunattendedcloseallowed',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 146,
       Value: '0',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'myqmonitormode',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' },
     { MyQDeviceTypeAttributeId: 116,
       Value: '1',
       UpdatedTime: '1434500085553',
       IsDeviceProperty: false,
       AttributeDisplayName: 'numdpsdevices',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:45.553' } ],
  ChildrenMyQDeviceIds: '',
  UpdatedBy: 'System',
  UpdatedDate: '2015-06-16T19:14:45.553',
  ConnectServerDeviceId: '251722626' }
[9/15/2016, 7:39:24 PM] [MyQ-platform] [20160915193924.610]: Door[Garage Door Opener] Door State=[Open], Updated time=[19 minutes ago], isunattendedopenallowed=[true], isunattendedcloseallowed=[true]
[9/15/2016, 7:39:24 PM] [MyQ-platform] [20160915193924.614]: found GarageDoorOpener, deviceid=1577391
[9/15/2016, 7:39:24 PM] [MyQ-platform] { MyQDeviceId: 1577392,
  ParentMyQDeviceId: 1577390,
  MyQDeviceTypeId: 7,
  MyQDeviceTypeName: 'VGDO',
  RegistrationDateTime: '2015-06-16T19:14:46.91',
  SerialNumber: 'CGxxxxxxxAED',
  UserName: 'foo@example.com',
  UserCountryId: 0,
  Attributes:
   [ { MyQDeviceTypeAttributeId: 135,
       Value: 'True',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'online',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 108,
       Value: 'CG084303BAED',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'name',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 118,
       Value: '2',
       UpdatedTime: '1434482087612',
       IsDeviceProperty: false,
       AttributeDisplayName: 'doorstate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:47.612Z' },
     { MyQDeviceTypeAttributeId: 120,
       Value: '',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'desc',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 126,
       Value: '33609313',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'gatewayID',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 131,
       Value: '0',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'dpsnocommstate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 132,
       Value: '0',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'dpsbatterystate',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 136,
       Value: '1',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'isunattendedopenallowed',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 137,
       Value: '1',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'isunattendedcloseallowed',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 146,
       Value: '1',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'myqmonitormode',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' },
     { MyQDeviceTypeAttributeId: 116,
       Value: '0',
       UpdatedTime: '1434500086910',
       IsDeviceProperty: false,
       AttributeDisplayName: 'numdpsdevices',
       IsPersistent: false,
       IsTimeSeries: false,
       IsGlobal: false,
       UpdatedDate: '2015-06-16T19:14:46.91' } ],
  ChildrenMyQDeviceIds: '',
  UpdatedBy: 'System',
  UpdatedDate: '2015-06-16T19:14:46.91',
  ConnectServerDeviceId: '251722627' }
[9/15/2016, 7:39:24 PM] [MyQ-platform] [20160915193924.627]: Door[CG084303BAED] Door State=[Closed], Updated time=[a year ago], isunattendedopenallowed=[true], isunattendedcloseallowed=[true]
[9/15/2016, 7:39:24 PM] [MyQ-platform] [20160915193924.629]: found GarageDoorOpener, deviceid=1577392
[9/15/2016, 7:39:24 PM] [MyQ-platform] Initializing platform accessory 'Garage Door Opener'...
[9/15/2016, 7:39:24 PM] [MyQ-platform] Initializing platform accessory 'CG084303BAED'...
rainlake commented 7 years ago

Thank you @pleasantone for your log. I will invegest.