homebridge-loxone-proxy 1.1.0 → 1.2.0-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.
@@ -0,0 +1,6 @@
1
+ import { LoxoneAccessory } from '../../LoxoneAccessory';
2
+ export declare class Intercom extends LoxoneAccessory {
3
+ configureServices(): void;
4
+ private registerChildItems;
5
+ }
6
+ //# sourceMappingURL=Intercom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Intercom.d.ts","sourceRoot":"","sources":["../../../src/loxone/items/Intercom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAQxD,qBAAa,QAAS,SAAQ,eAAe;IAE3C,iBAAiB,IAAI,IAAI;IAqBzB,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Intercom = void 0;
4
+ const LoxoneAccessory_1 = require("../../LoxoneAccessory");
5
+ const Doorbell_1 = require("../../homekit/services/Doorbell");
6
+ const Switch_1 = require("../../homekit/services/Switch");
7
+ class Intercom extends LoxoneAccessory_1.LoxoneAccessory {
8
+ configureServices() {
9
+ this.ItemStates = {
10
+ [this.device.states.bell]: { 'service': 'PrimaryService', 'state': 'bell' },
11
+ };
12
+ this.Service.PrimaryService = new Doorbell_1.Doorbell(this.platform, this.Accessory);
13
+ this.registerChildItems();
14
+ }
15
+ registerChildItems() {
16
+ for (const childUuid in this.device.subControls) {
17
+ const ChildItem = this.device.subControls[childUuid];
18
+ const serviceName = ChildItem.name;
19
+ for (const stateName in ChildItem.states) {
20
+ const stateUUID = ChildItem.states[stateName];
21
+ this.ItemStates[stateUUID] = { service: serviceName, state: stateName };
22
+ this.Service[serviceName] = new Switch_1.SwitchService(this.platform, this.Accessory, ChildItem);
23
+ }
24
+ }
25
+ }
26
+ }
27
+ exports.Intercom = Intercom;
28
+ //# sourceMappingURL=Intercom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Intercom.js","sourceRoot":"","sources":["../../../src/loxone/items/Intercom.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AACxD,8DAA2D;AAC3D,0DAA8D;AAM9D,MAAa,QAAS,SAAQ,iCAAe;IAE3C,iBAAiB;QAEf,IAAI,CAAC,UAAU,GAAG;YAChB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAC;SAC1E,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,IAAI,mBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAU,CAAC,CAAC;QAY3E,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAEO,kBAAkB;QACxB,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;YACrD,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;YACnC,KAAK,MAAM,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;gBACxC,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBAC9C,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;gBACxE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,sBAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAU,EAAE,SAAS,CAAC,CAAC;aAC1F;SACF;IACH,CAAC;CACF;AAlCD,4BAkCC"}
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.1.0",
5
+ "version": "1.2.0-beta.1",
6
6
  "description": "Homebridge plugin which exposes a Loxone system to HomeKit.",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {