diff --git a/index.js b/index.js index 461e858..f4898d4 100755 --- a/index.js +++ b/index.js @@ -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; },