achimpieters / apple-homebridge-door-lock Goto Github PK
View Code? Open in Web Editor NEWApple Homebridge – Door Lock
License: MIT License
Apple Homebridge – Door Lock
License: MIT License
Docs show
"accessory":
"HttpLock",
Sample config.json shows
"accessory":
"Httplock",
However, when running Homebridge on macOS, these errors will appear:
Error: The requested accessory 'HttpLock' was not registered by any plugin.
Error: The requested accessory 'Httplock' was not registered by any plugin.
If I change it to "HTTPLock" it works.
"accessory":
"HTTPLock",
After adding the sample config.json, homebridge now crashes on load.
This is my config.json.
Also, what is the purpose of the username and password?
`{
"bridge": {
"name": "Homeblock",
"username": "CC:40:3D:E3:CE:30",
"port": 51826,
"pin": "888-88-888"
},
"description": "Homebridge Homeblock", "accessories": [
{
"accessory": "HttpLock",
"name": "Door",
"url": "http://192.168.1.10/",
"lock-id": "1",
"username": "Your_Username",
"password": "Your_Password"
}
]
}
`
Hi,
first of all: Great work! Thank you!
I made a similar hardware setup with esp8266. Unfortunately I get an error when running homebridge:
First everything is running fine and I can see a lock accessory in the Home-app on iOS.
But after a while I get this error in the command window:
[2017-07-30 15:41:35] [Haustür] Getting current state...
[2017-07-30 15:41:35] [Haustür] Getting current state...
[2017-07-30 15:41:36] [Haustür] Getting current battery...
/usr/lib/node_modules/homebridge-lock/index.js:62
this.log("Error getting state (status code %s): %s", response.statusCode, err);
^TypeError: Cannot read property 'statusCode' of undefined
at LockAccessory. (/usr/lib/node_modules/homebridge-lock/index.js:62:74)
at self.callback (/usr/lib/node_modules/homebridge-lock/node_modules/request/request.js:373:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/usr/lib/node_modules/homebridge-lock/node_modules/request/request.js:971:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
Do you know a solution for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.