UNPKG

homebridge-tahoma

Version:

Sample Platform plugin for TaHoma and Cozytouch services (Somfy,Atlantic,Thermor,Sauter): https://github.com/dubocr/homebridge-tahoma

112 lines 5.76 kB
"use strict"; var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CustomCharacteristics = exports.CurrentConsumptionCharacteristic = exports.TotalConsumptionCharacteristic = exports.EcoCharacteristic = exports.ProgCharacteristic = exports.MyPositionCharacteristic = exports.TargetShowerCharacteristic = exports.CurrentShowerCharacteristic = void 0; class CustomCharacteristics { constructor(hap) { var _a, _b, _c, _d, _e, _f, _g; exports.CurrentShowerCharacteristic = (_a = class extends hap.Characteristic { constructor() { super('Current Shower', exports.CurrentShowerCharacteristic.UUID, { format: "int" /* Formats.INT */, minValue: 0, maxValue: 8, minStep: 1, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_a, "CurrentShowerCharacteristic"), _a.UUID = '10000001-0000-1000-8000-0026BB765291', _a); exports.TargetShowerCharacteristic = (_b = class extends hap.Characteristic { constructor() { super('Target Shower', exports.TargetShowerCharacteristic.UUID, { format: "int" /* Formats.INT */, minValue: 0, maxValue: 8, minStep: 1, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_b, "TargetShowerCharacteristic"), _b.UUID = '10000002-0000-1000-8000-0026BB765291', _b); exports.MyPositionCharacteristic = (_c = class extends hap.Characteristic { constructor() { super('My', exports.MyPositionCharacteristic.UUID, { format: "bool" /* Formats.BOOL */, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_c, "MyPositionCharacteristic"), _c.UUID = '10000003-0000-1000-8000-0026BB765291', _c); exports.ProgCharacteristic = (_d = class extends hap.Characteristic { constructor() { super('Prog', exports.ProgCharacteristic.UUID, { format: "bool" /* Formats.BOOL */, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_d, "ProgCharacteristic"), _d.UUID = '10000004-0000-1000-8000-0026BB765291', _d); exports.EcoCharacteristic = (_e = class extends hap.Characteristic { constructor() { super('Eco', exports.EcoCharacteristic.UUID, { format: "bool" /* Formats.BOOL */, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_e, "EcoCharacteristic"), _e.UUID = '10000005-0000-1000-8000-0026BB765291', _e); exports.TotalConsumptionCharacteristic = (_f = class extends hap.Characteristic { constructor() { super('Total Consumption', exports.TotalConsumptionCharacteristic.UUID, { format: "float" /* Formats.FLOAT */, unit: 'kWh', minValue: 0, maxValue: 1000000, minStep: 0.1, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_f, "TotalConsumptionCharacteristic"), _f.UUID = 'E863F10C-079E-48FF-8F27-9C2605A29F52', _f); exports.CurrentConsumptionCharacteristic = (_g = class extends hap.Characteristic { constructor() { super('Current Consumption', exports.CurrentConsumptionCharacteristic.UUID, { format: "float" /* Formats.FLOAT */, unit: 'W', minValue: 0, maxValue: 12000, minStep: 0.1, perms: ["ev" /* Perms.NOTIFY */, "pr" /* Perms.PAIRED_READ */], }); this.value = this.getDefaultValue(); } }, __setFunctionName(_g, "CurrentConsumptionCharacteristic"), _g.UUID = 'E863F10D-079E-48FF-8F27-9C2605A29F52', _g); } } exports.CustomCharacteristics = CustomCharacteristics; //# sourceMappingURL=CustomCharacteristics.js.map