homebridge-tahoma
Version:
Sample Platform plugin for TaHoma and Cozytouch services (Somfy,Atlantic,Thermor,Sauter): https://github.com/dubocr/homebridge-tahoma
21 lines • 926 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const RollerShutter_1 = __importDefault(require("../RollerShutter"));
class PositionableRollerShutterUno extends RollerShutter_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 = PositionableRollerShutterUno;
//# sourceMappingURL=PositionableRollerShutterUno.js.map