UNPKG

homebridge-loxone-proxy

Version:

Homebridge Dynamic Platform Plugin which exposes a Loxone System to Homekit.

28 lines 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseService = void 0; class BaseService { constructor(platform, accessory, secondaryService, handleLoxoneCommand) { this.platform = platform; this.accessory = accessory; this.secondaryService = secondaryService; this.handleLoxoneCommand = handleLoxoneCommand; this.State = {}; this.device = (this.secondaryService) ? this.secondaryService : this.accessory.context.device; this.setupService(); } setupService() { } updateCharacteristicValue(characteristic, value) { if (this.service) { const characteristicInstance = this.service.getCharacteristic(characteristic); if (characteristicInstance) { characteristicInstance.updateValue(value); } } } } exports.BaseService = BaseService; //# sourceMappingURL=BaseService.js.map