From aa0b12e331c160974fdf8df649a65f4de73b2d96 Mon Sep 17 00:00:00 2001 From: nielsth Date: Fri, 27 May 2022 09:11:10 +0200 Subject: [PATCH 1/2] Update index.js Hotfix for warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 1e64ff8ad466be1b4b64bfe6b840607e20d0d716 Mon Sep 17 00:00:00 2001 From: nielsth Date: Fri, 27 May 2022 09:12:02 +0200 Subject: [PATCH 2/2] Update package.json version bump --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"