homebridge-tahoma-fork
Version:
Sample Platform plugin for TaHoma and Cozytouch services (Somfy,Atlantic,Thermor,Sauter): https://github.com/dubocr/homebridge-tahoma
21 lines • 934 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Awning_1 = __importDefault(require("../Awning"));
class PositionableHorizontalAwningUno extends Awning_1.default {
onStateChanged(name, value) {
var _a, _b;
switch (name) {
case 'core:TargetClosureState':
if (this.isIdle) {
(_a = this.targetPosition) === null || _a === void 0 ? void 0 : _a.updateValue(this.reversedValue(value));
}
(_b = this.currentPosition) === null || _b === void 0 ? void 0 : _b.updateValue(this.reversedValue(value));
break;
}
}
}
exports.default = PositionableHorizontalAwningUno;
//# sourceMappingURL=PositionableHorizontalAwningUno.js.map