diff --git a/index.js b/index.js index 672561d..43626b7 100755 --- a/index.js +++ b/index.js @@ -173,7 +173,7 @@ MiFlowerCarePlugin.prototype.getStatusLowLight = function (callback) { }; MiFlowerCarePlugin.prototype.getCurrentAmbientLightLevel = function (callback) { - callback(null, this.storedData.data ? this.storedData.data.lux : 0); + callback(null, this.storedData.data ? this.storedData.data.lux : 0.001); }; MiFlowerCarePlugin.prototype.getCurrentTemperature = function (callback) { diff --git a/package.json b/package.json index 9261c7d..76dbc4e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-mi-flower-care", - "version": "1.1.3", + "version": "1.1.4", "description": "This is a homebridge plugin for the Xiaomi Mi Flora / Xiaomi Flower Care devices.", "main": "index.js", "scripts": { @@ -20,7 +20,7 @@ "xiaomi", "flower" ], - "author": "Luca Becker, Tobias Tiemerding", + "author": "Luca Becker, Tobias Tiemerding, Niels ten Have", "license": "ISC", "bugs": { "url": "https://github.com/nielsth/homebridge-mi-flower-care/issues"