2019-09-23 11:48:35 +02:00
|
|
|
const inherits = require('util').inherits;
|
|
|
|
|
|
|
|
module.exports = function (Characteristic, CustomUUID)
|
|
|
|
{
|
|
|
|
let SpotRepeat = function ()
|
|
|
|
{
|
2019-09-24 20:32:09 +02:00
|
|
|
Characteristic.call(this, 'Spot 2x', CustomUUID.SpotCleanRepeat);
|
2019-09-23 11:48:35 +02:00
|
|
|
this.setProps({
|
|
|
|
format: Characteristic.Formats.BOOL,
|
|
|
|
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE]
|
|
|
|
});
|
|
|
|
this.value = this.getDefaultValue();
|
|
|
|
};
|
|
|
|
inherits(SpotRepeat, Characteristic);
|
|
|
|
|
|
|
|
return SpotRepeat;
|
|
|
|
};
|