mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-30 06:13:10 +01:00
package.json
- removed subtypes to be passed by default. - package.json to inbclude "eibd"
This commit is contained in:
@@ -339,35 +339,6 @@ KNXDevice.prototype = {
|
|||||||
*
|
*
|
||||||
* returns a configured service object to the caller (accessory/device)
|
* returns a configured service object to the caller (accessory/device)
|
||||||
*
|
*
|
||||||
* the config section is supposed to look like that for the complete device
|
|
||||||
* "devices": [
|
|
||||||
{
|
|
||||||
"accessory_type": "knxdevice",
|
|
||||||
"name": "Living Room North Lamp",
|
|
||||||
"services": [
|
|
||||||
{
|
|
||||||
"type": "Light",
|
|
||||||
"name": "Living Room North Lamp",
|
|
||||||
"On": {
|
|
||||||
"Set": "1/1/6",
|
|
||||||
"Listen": [
|
|
||||||
"1/1/63"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Brightness": {
|
|
||||||
"Set": "1/1/62",
|
|
||||||
"Listen": [
|
|
||||||
"1/1/64"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
* for each service it is supposed to have a
|
|
||||||
* type
|
|
||||||
* name
|
|
||||||
* and service specific objects
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bindCharacteristic: function(myService, characteristicType, valueType, config) {
|
bindCharacteristic: function(myService, characteristicType, valueType, config) {
|
||||||
@@ -406,7 +377,7 @@ KNXDevice.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ([config.Set].concat(config.Listen || []).length>0) {
|
if ([config.Set].concat(config.Listen || []).length>0) {
|
||||||
this.log("Binding LISTEN");
|
//this.log("Binding LISTEN");
|
||||||
// can read
|
// can read
|
||||||
switch (valueType) {
|
switch (valueType) {
|
||||||
case "Bool":
|
case "Bool":
|
||||||
@@ -443,7 +414,7 @@ KNXDevice.prototype = {
|
|||||||
this.log("[ERROR] Lightbulb Service without 'name' property called");
|
this.log("[ERROR] Lightbulb Service without 'name' property called");
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
var myService = new Service.Lightbulb(config.name,config.name);
|
var myService = new Service.Lightbulb() //(config.name,config.name);
|
||||||
// On (and Off)
|
// On (and Off)
|
||||||
if (config.On) {
|
if (config.On) {
|
||||||
this.log("Lightbulb on/off characteristic enabled");
|
this.log("Lightbulb on/off characteristic enabled");
|
||||||
@@ -488,7 +459,7 @@ KNXDevice.prototype = {
|
|||||||
this.log("[ERROR] Thermostat Service without 'name' property called");
|
this.log("[ERROR] Thermostat Service without 'name' property called");
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
var myService = new Service.Thermostat(config.name,config.name);
|
var myService = new Service.Thermostat() //(config.name,config.name);
|
||||||
// CurrentTemperature)
|
// CurrentTemperature)
|
||||||
if (config.CurrentTemperature) {
|
if (config.CurrentTemperature) {
|
||||||
this.log("Thermostat CurrentTemperature characteristic enabled");
|
this.log("Thermostat CurrentTemperature characteristic enabled");
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"carwingsjs": "0.0.x",
|
"carwingsjs": "0.0.x",
|
||||||
"color": "0.10.x",
|
"color": "0.10.x",
|
||||||
"elkington": "kevinohara80/elkington",
|
"elkington": "kevinohara80/elkington",
|
||||||
|
"eibd": "0.3.1",
|
||||||
"hap-nodejs": "git+https://github.com/KhaosT/HAP-NodeJS#fff863d7a387636fc612cf27cb859e82d9ee3294",
|
"hap-nodejs": "git+https://github.com/KhaosT/HAP-NodeJS#fff863d7a387636fc612cf27cb859e82d9ee3294",
|
||||||
"harmonyhubjs-client": "^1.1.4",
|
"harmonyhubjs-client": "^1.1.4",
|
||||||
"harmonyhubjs-discover": "git+https://github.com/swissmanu/harmonyhubjs-discover.git",
|
"harmonyhubjs-discover": "git+https://github.com/swissmanu/harmonyhubjs-discover.git",
|
||||||
|
|||||||
Reference in New Issue
Block a user