diff --git a/README.md b/README.md index 4535b68..7481d23 100755 --- a/README.md +++ b/README.md @@ -88,6 +88,12 @@ You have to create a config.json in .homebridge directory. You'll find that dire "type": "Fan", "onoff": "OG.Bad.Ventilator" }, + { + "name": "Lüftung", + "type": "Fan", + "onoff": "EG.Lüftung" + "rotationSpeed": "EG.LüftungSpeed" + }, { "name": "Schalter", "type": "Switch", diff --git a/index.js b/index.js index 6862319..6cbb55b 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; },