homebridge-kobold
Version:
A Vorwerk Kobold vacuum robot plugin for homebridge.
51 lines • 2.17 kB
JavaScript
export const CustomUUID = {
SpotCleanWidth: 'A7889A9A-2F27-4293-BEF8-3FE805B36F4E',
SpotCleanHeight: 'CA282DB2-62BF-4325-A1BE-F8BB5478781A',
SpotCleanRepeat: '1E79C603-63B8-4E6A-9CE1-D31D67981831',
};
export const buildSpotCharacteristics = (api) => {
const SpotWidthCharacteristic = class SpotWidthCharacteristicClass extends api.hap.Characteristic {
static UUID = CustomUUID.SpotCleanWidth;
constructor() {
super('Spot ↔', SpotWidthCharacteristicClass.UUID, {
format: "int" /* api.hap.Formats.INT */,
unit: 'cm',
maxValue: 400,
minValue: 100,
minStep: 50,
perms: ["pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */],
});
this.value = this.getDefaultValue();
}
};
const SpotHeightCharacteristic = class SpotHeightCharacteristicClass extends api.hap.Characteristic {
static UUID = CustomUUID.SpotCleanHeight;
constructor() {
super('Spot ↕', SpotHeightCharacteristicClass.UUID, {
format: "int" /* api.hap.Formats.INT */,
unit: 'cm',
maxValue: 400,
minValue: 100,
minStep: 50,
perms: ["pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */],
});
this.value = this.getDefaultValue();
}
};
const SpotRepeatCharacteristic = class SpotRepeatCharacteristicClass extends api.hap.Characteristic {
static UUID = CustomUUID.SpotCleanRepeat;
constructor() {
super('Spot 2x', SpotRepeatCharacteristicClass.UUID, {
format: "bool" /* api.hap.Formats.BOOL */,
perms: ["pr" /* Perms.PAIRED_READ */, "pw" /* Perms.PAIRED_WRITE */],
});
this.value = this.getDefaultValue();
}
};
return {
SpotWidthCharacteristic: SpotWidthCharacteristic,
SpotHeightCharacteristic: SpotHeightCharacteristic,
SpotRepeatCharacteristic: SpotRepeatCharacteristic,
};
};
//# sourceMappingURL=customCharacteristics.js.map