Added spot cleaning function with individual spot size (D7)

This commit is contained in:
Arne
2019-09-23 11:48:35 +02:00
parent b8fa1db8ae
commit 46ba5e5f30
7 changed files with 332 additions and 91 deletions

View File

@@ -0,0 +1,17 @@
const inherits = require('util').inherits;
module.exports = function (Characteristic, CustomUUID)
{
let SpotRepeat = function ()
{
Characteristic.call(this, 'Spot ↺', CustomUUID.SpotCleanRepeat);
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(SpotRepeat, Characteristic);
return SpotRepeat;
};