Comments (20)
Shorten your longPoll
and shortPoll
settings. Add newAccessory.context.log(thisDoorState);
to
https://github.com/luisiam/homebridge-liftmaster2/blob/master/index.js#L368
Restart homebridge. Open and close the garage door and check the log
from homebridge-liftmaster2.
I put this in the exact place as instructed; however Homebridge just crashes now:
[10/23/2016, 7:59:54 PM] Homebridge is running on port 51826.
[10/23/2016, 7:59:54 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 7:59:55 PM] [MyQ] Error 'TypeError: newAccessory.context.log is not a function'
[10/23/2016, 7:59:55 PM] [MyQ] Error: Couldn't find a MyQ door device.
[10/23/2016, 7:59:55 PM] [MyQ] Missing MyQ Device ID
Thanks, but I'm beginning to think this is just beyond my ability/patience. I've been screwing with this for the better part of this weekend and I'm basically nowhere (and I work in IT).
from homebridge-liftmaster2.
My bad. Please put self.log(thisDoorState);
instead of newAccessory.context.log(thisDoorState);
If you decided to give up, it's your choice. But if you are willing to stick with me, I believe we can make it working. It's been working for a lot of people already, including my self. The problem is that there's never an official API for MyQ and we really need the community's help to make it working for everyone.
from homebridge-liftmaster2.
Thanks, but that made no changes.
I can open the door; however it shows closed and telling it to close does nothing.
Basically, I have to tell it to open to open and open to close it.
Asking status always returns closed whether closed or open.
Home also shows the same; however this time it clearly showed 'Opening' while opening (but the state immediately changes to closed).
from homebridge-liftmaster2.
My fault, didn't mean to close.
from homebridge-liftmaster2.
I know it's not fixing anything yet. I just need the log to see what's the state reported by the server.
from homebridge-liftmaster2.
I think the state's 2:
[10/23/2016, 8:21:30 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 8:21:30 PM] 2
[10/23/2016, 8:21:31 PM] [MyQ Home] State was successfully set to Open.
[10/23/2016, 8:21:36 PM] 2
Which I assume is closed?
from homebridge-liftmaster2.
Can you please add self.log(device);
on
https://github.com/luisiam/homebridge-liftmaster2/blob/master/index.js#L313
and post your log afterwards?
from homebridge-liftmaster2.
ChildrenMyQDeviceIds: '',
UpdatedBy: 'System',
UpdatedDate: '2014-10-10T20:29:48.16',
ConnectServerDeviceId: '251666549' }
[10/23/2016, 8:43:20 PM] 2
from homebridge-liftmaster2.
I actually need the log prior to that as well. It should starts with something like
[10/23/2016, 5:46:09 PM] { MyQDeviceId: xxxxxxx,
from homebridge-liftmaster2.
Any way to take this offline?
There's quite a bit of info I'm uncomfortable posting in-the-blind (email, SN, device ID).
from homebridge-liftmaster2.
You can always email me at [email protected]
from homebridge-liftmaster2.
You can also remove those sensitive information. I just want to know the whole structure of the object.
from homebridge-liftmaster2.
[10/23/2016, 9:09:15 PM] Homebridge is running on port 51826.
[10/23/2016, 9:09:16 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 9:09:16 PM] { MyQDeviceId: 95xxxx,
ParentMyQDeviceId: 95xxxx,
MyQDeviceTypeId: 7,
MyQDeviceTypeName: 'VGDO',
RegistrationDateTime: '2014-10-10T20:29:48.16',
SerialNumber: 'CG084301xxxx',
UserName: 'myusername',
UserCountryId: 0,
Attributes:
[ { MyQDeviceTypeAttributeId: 135,
Value: 'True',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'online',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 108,
Value: 'CG084301xxxx',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'name',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 118,
Value: '2',
UpdatedTime: '1477163685533',
IsDeviceProperty: false,
AttributeDisplayName: 'doorstate',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2016-10-22T19:14:45.5331715Z' },
{ MyQDeviceTypeAttributeId: 120,
Value: 'Home',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'desc',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 126,
Value: '201789110',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'gatewayID',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 131,
Value: '0',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'dpsnocommstate',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 132,
Value: '0',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'dpsbatterystate',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 136,
Value: '1',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'isunattendedopenallowed',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 137,
Value: '1',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'isunattendedcloseallowed',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 146,
Value: '0',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'myqmonitormode',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' },
{ MyQDeviceTypeAttributeId: 116,
Value: '1',
UpdatedTime: '1412990988160',
IsDeviceProperty: false,
AttributeDisplayName: 'numdpsdevices',
IsPersistent: false,
IsTimeSeries: false,
IsGlobal: false,
UpdatedDate: '2014-10-10T20:29:48.16' } ],
ChildrenMyQDeviceIds: '',
UpdatedBy: 'System',
UpdatedDate: '2014-10-10T20:29:48.16',
ConnectServerDeviceId: '251666549' }
[10/23/2016, 9:09:16 PM] 2
from homebridge-liftmaster2.
[10/23/2016, 9:21:56 PM] Homebridge is running on port 51826.
[10/23/2016, 9:21:56 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 9:22:01 PM] [MyQ Home] Getting current state: Closed.
[10/23/2016, 9:22:27 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 9:22:28 PM] [MyQ Home] State was successfully set to Open.
[10/23/2016, 9:22:44 PM] [MyQ] Logged in with MyQ user ID 0
[10/23/2016, 9:22:45 PM] [MyQ Home] State was successfully set to Open.
This shows that door was CLOSED, I set to OPEN (state changed), but then to close it again its state is OPEN again.
The entire time it was OPEN, Home reported as CLOSED.
from homebridge-liftmaster2.
I believe something went wrong with the state reporting and conversion. HomeKit always reports the state as closed. Therefore, you can never close the garage door since HomeKit thinks that it's always closed.
Can you install with the following command:
npm install -g git+https://github.com/luisiam/homebridge-liftmaster2.git#419e22ba9121d28ae8b095e843b18546541798bf
Restart homebridge afterwards. Have the garage door closed, open the garage door. Post the log afterwards. Thanks.
from homebridge-liftmaster2.
Cannot run (presented with the following errors):
npm ERR! node v6.8.1
npm ERR! npm v3.10.8
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
I'm on RPi3 logged in as Pi.
from homebridge-liftmaster2.
Did you use sudo
for all the npm install? If you have been using sudo
, you need to add sudo
at the beginning as well
from homebridge-liftmaster2.
I did and this didn't change anything (same as before: always shows state of CLOSED and have to tell it to OPEN to open and OPEN to close).
Thanks for your time, but I officially give up. Nothing is worth this this many wasted hours (especially this).
I appreciate all the devs work on projects like this, but I work IT (and have for 25y) and couldn't get this working after wasting over 20h on it. I honestly cannot imagine someone non-IT literate ever getting something like this working (and that's a problem, because nothing should be this hard/impossible to deploy).
Again, ultimate fault/blame lies with both Apple (for their lack of Homekit 'seriousness') and Chamberlain (for their non-existent Homekit implementation).
from homebridge-liftmaster2.
Well, I am still pinpointing the problem. I still need to log for troubleshooting. Anyways, it's your choice.
from homebridge-liftmaster2.
Related Issues (20)
- Open never works HOT 2
- Error on startup - not finding credentials? HOT 4
- Unable to install Homebridge-Liftmaster2 HOT 4
- Open works, close causes MyQ to repeatedly beep and wonβt close HOT 1
- Filter out some doors HOT 1
- Simply Can't Install This Plugin Successfully HOT 15
- Suggestion: Lights HOT 1
- Syntax Error 0
- Plugin Crashes HomeBridge Instance HOT 1
- Support for Chamberlain version of MyQ hub HOT 2
- Plugin Crashes HomeBridge Server (FIXED) Look how: HOT 1
- UnhandledPromiseRejectionWarning HOT 5
- Same UUID as another bridged accessory HOT 2
- Device keeps being re-added to configuration HOT 5
- Not able to load the homebrigde liftmaster2 plugin
- Door state not updating correctly. HOT 1
- Copious liftmaster2 errors since 5/25/2019 HOT 11
- Support for Locks that are supported by MyQ HOT 2
- TypeError: Cannot read property 'length' of undefined HOT 18
- 0.5.2 not published to npm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-liftmaster2.