homebridge-loxone-proxy
Version:
Homebridge Dynamic Platform Plugin which exposes a Loxone System to Homekit.
17 lines • 831 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Irrigation = void 0;
const LoxoneAccessory_1 = require("../../LoxoneAccessory");
const IrrigationSystem_1 = require("../../homekit/services/IrrigationSystem");
class Irrigation extends LoxoneAccessory_1.LoxoneAccessory {
configureServices() {
this.ItemStates = {
[this.device.states.zones]: { service: 'PrimaryService', state: 'zones' },
[this.device.states.currentZone]: { service: 'PrimaryService', state: 'currentZone' },
};
this.Service.PrimaryService = new IrrigationSystem_1.IrrigationSystem(this.platform, this.Accessory);
this.platform.LoxoneHandler.pushCachedState(this, this.device.states.zones);
}
}
exports.Irrigation = Irrigation;
//# sourceMappingURL=Irrigation.js.map