5 Commits

Author SHA1 Message Date
Khaos Tian
77ce39e157 0.3.3 2016-04-08 23:50:34 -07:00
Khaos Tian
0af8a43dc9 Expose platform accessory category to hap-nodejs
Fix an error in plugin config look up
2016-04-08 23:50:18 -07:00
Khaos Tian
620c8473b8 #572 2016-03-20 22:12:47 -07:00
Khaos Tian
b2f476f833 0.3.2 2016-03-20 21:53:01 -07:00
Khaos Tian
c6d2f889fc Update hap-nodejs version to solve #575 2016-03-20 21:52:56 -07:00
4 changed files with 6 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ Logger.prototype.log = function(level, msg) {
// prepend timestamp
var date = new Date();
msg = chalk.black("[" + date.toLocaleString() + "]") + " " + msg;
msg = "[" + date.toLocaleString() + "]" + " " + msg;
func(msg);
}

View File

@@ -133,6 +133,7 @@ PlatformAccessory.prototype.updateReachability = function(reachable) {
PlatformAccessory.prototype._prepareAssociatedHAPAccessory = function () {
this._associatedHAPAccessory = new Accessory(this.displayName, this.UUID);
this._associatedHAPAccessory._sideloadServices(this.services);
this._associatedHAPAccessory.category = this.category;
this._associatedHAPAccessory.reachable = this.reachable;
this._associatedHAPAccessory.on('identify', function(paired, callback) {
if (this.listeners('identify').length > 0) {

View File

@@ -466,7 +466,7 @@ Server.prototype._handleNewConfig = function(type, name, replace, config) {
this._config.accessories.push(config);
} else {
var targetName;
if (name.indexOf('.') == -1) {
if (name.indexOf('.') !== -1) {
targetName = name.split(".")[1];
}
var found = false;
@@ -498,7 +498,7 @@ Server.prototype._handleNewConfig = function(type, name, replace, config) {
this._config.platforms.push(config);
} else {
var targetName;
if (name.indexOf('.') == -1) {
if (name.indexOf('.') !== -1) {
targetName = name.split(".")[1];
}

View File

@@ -1,7 +1,7 @@
{
"name": "homebridge",
"description": "HomeKit support for the impatient",
"version": "0.3.1",
"version": "0.3.3",
"scripts": {
"dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true"
},
@@ -26,7 +26,7 @@
"dependencies": {
"chalk": "^1.1.1",
"commander": "2.8.1",
"hap-nodejs": "0.2.7",
"hap-nodejs": "0.2.8",
"semver": "5.0.3",
"node-persist": "^0.0.8"
}