Merge pull request #5 from thomas-kaltenbach/master

Add fan characteristics
This commit is contained in:
Serge Wagener authored and GitHub committed 2020-10-20 14:28:04 +02:00
commit 56cd8413f2
2 files changed
+11

No files matched your search

+5
View File
@@ -498,6 +498,11 @@ SmartHomeNGAccessory.prototype = {
this.log("["+ this.name +"] Fan on/off characteristic enabled");
this.bindCharacteristic(myService, Characteristic.On, "Bool", config.onoff, inverted);
}
// RotationSpeed
if (config.rotationSpeed) {
this.log("["+ this.name +"] Fan rotationSpeed characteristic enabled");
this.bindCharacteristic(myService, Characteristic.RotationSpeed, "Percent", config.rotationSpeed, inverted);
}
return myService;
},