homebridge-loxone-proxy 1.3.0-beta.3 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ It retrieves the loxone StructureFile and tries to map all items to HomeKit acce
|
|
|
37
37
|
|`PresenceDetector` | OccupancySensor | Auto
|
|
38
38
|
|`Switch` | Switch, Outlet, or Lightbulb | Auto
|
|
39
39
|
|`Ventilation` | Fanv2 | Auto
|
|
40
|
-
|`WindowMonitor` |
|
|
40
|
+
|`WindowMonitor` | ContactSensor | Auto
|
|
41
41
|
|
|
42
42
|
### Manual mapping
|
|
43
43
|
Some items cannot be mapped automatically and require a naming convention to be recognized. For example, giving all motion detectors the convention "MoXX" in Loxone Config and then setting the alias "Mo" in the plugin will result in all items with "Mo" in the name being recognized as motion detectors.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactSensor.d.ts","sourceRoot":"","sources":["../../../src/homekit/services/ContactSensor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,aAAc,SAAQ,WAAW;IAC5C,KAAK;;MAEH;IAKF,YAAY,IAAI,IAAI;IAepB,aAAa,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"ContactSensor.d.ts","sourceRoot":"","sources":["../../../src/homekit/services/ContactSensor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,aAAc,SAAQ,WAAW;IAC5C,KAAK;;MAEH;IAKF,YAAY,IAAI,IAAI;IAepB,aAAa,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,IAAI;IAkCtD,KAAK,IAAI,OAAO,CAAC,mBAAmB,CAAC;CAG5C"}
|
|
@@ -19,21 +19,15 @@ class ContactSensor extends BaseService_1.BaseService {
|
|
|
19
19
|
updateService(message) {
|
|
20
20
|
const valuesArray = message.value.split(',');
|
|
21
21
|
const itemEntry = valuesArray[this.device.cat];
|
|
22
|
-
console.log(`ITEM: ${this.device.name}`);
|
|
23
|
-
console.log(`ITEM ID: ${this.device.cat}`);
|
|
24
|
-
console.log(`Full Message: ${message.value}`);
|
|
25
|
-
console.log(`ITEM Entry: ${itemEntry}`);
|
|
26
22
|
this.platform.log.debug(`[${this.device.name}] Callback state update for ContactSensor: ${itemEntry}`);
|
|
27
23
|
switch (itemEntry) {
|
|
28
|
-
case 1:
|
|
29
|
-
case 8:
|
|
24
|
+
case '1':
|
|
25
|
+
case '8':
|
|
30
26
|
this.State.ContactSensorState = 0;
|
|
31
27
|
break;
|
|
32
28
|
default:
|
|
33
29
|
this.State.ContactSensorState = 1;
|
|
34
30
|
}
|
|
35
|
-
console.log(`Homebridge itemstate: ${this.State.ContactSensorState}`);
|
|
36
|
-
console.log('!!!!!!! DEBUG !!!!!!');
|
|
37
31
|
this.service.getCharacteristic(this.platform.Characteristic.ContactSensorState).updateValue(this.State.ContactSensorState);
|
|
38
32
|
}
|
|
39
33
|
async getOn() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactSensor.js","sourceRoot":"","sources":["../../../src/homekit/services/ContactSensor.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAE5C,MAAa,aAAc,SAAQ,yBAAW;IAA9C;;QACE,UAAK,GAAG;YACN,kBAAkB,EAAE,CAAC;SACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactSensor.js","sourceRoot":"","sources":["../../../src/homekit/services/ContactSensor.ts"],"names":[],"mapp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IAMD,KAAK,CAAC,KAAK;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACvC,CAAC;CACF;AA5DD,sCA4DC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"displayName": "Homebridge Loxone Proxy",
|
|
4
4
|
"name": "homebridge-loxone-proxy",
|
|
5
|
-
"version": "1.3.
|
|
5
|
+
"version": "1.3.1-beta.1",
|
|
6
6
|
"description": "Homebridge plugin which exposes a Loxone system to HomeKit.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"repository": {
|