From 4a09eebff513e006cb5f995efb64973d021e03d5 Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:49:36 +0200 Subject: [PATCH 1/7] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5973cc74..3e86b4df 100755 --- a/index.js +++ b/index.js @@ -5782,7 +5782,7 @@ function RegisterCustomCharacteristics() { format : Characteristic.Formats.UINT16, unit : 'Watts', maxValue : 100000, - minValue : 0, + minValue : -100000, minStep : 1, perms : [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY], }); From 734e35930b2c8c6c964ddd4cd83d081956d24a2f Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:56:20 +0200 Subject: [PATCH 2/7] Update index.js --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index 3e86b4df..8ae0bb43 100755 --- a/index.js +++ b/index.js @@ -4761,8 +4761,6 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i returnValue = cmd.currentValue; if(service.infos.power && service.infos.power.unite && service.infos.power.unite.toLowerCase() == 'kw') { returnValue = Math.round(cmd.currentValue*1000); - } else { - returnValue = cmd.currentValue; } if(that.fakegato && service.eqLogic && service.eqLogic.hasLogging) { service.eqLogic.loggingService.addEntry({ From faf1fc3d86e3cdafa59d35c5ad541fd8eb0e9be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:00:55 +0100 Subject: [PATCH 3/7] Fix issue if this plugin is used outside of jeedom --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8ae0bb43..09913e44 100755 --- a/index.js +++ b/index.js @@ -17,6 +17,7 @@ 'use strict'; let Access, Accessory, Service, Characteristic, AdaptiveLightingController, UUIDGen; +const fs = require('fs'); const inherits = require('util').inherits; const myLogger = require('./lib/myLogger').myLogger; const debug = {}; @@ -59,7 +60,11 @@ function JeedomPlatform(logger, config, api) { DEV_DEBUG = true; } this.debugLevel = config.debugLevel || debug.ERROR; - this.log = myLogger.createMyLogger(this.debugLevel,logger,api.user.storagePath()+'/../../../../log/'); + let logPath = api.user.storagePath()+'/../../../../log/' + if (!fs.existsSync(logPath)) { + logPath = '/tmp/' + } + this.log = myLogger.createMyLogger(this.debugLevel,logger,logPath); this.log('debugLevel:'+this.debugLevel); this.myPlugin = config.myPlugin; this.adaptiveEnabled = config.adaptiveEnabled; From e8e304f875caf8b9dcae22f3960dc835dd81e7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:16:21 +0100 Subject: [PATCH 4/7] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 09913e44..28d1f01a 100755 --- a/index.js +++ b/index.js @@ -60,9 +60,9 @@ function JeedomPlatform(logger, config, api) { DEV_DEBUG = true; } this.debugLevel = config.debugLevel || debug.ERROR; - let logPath = api.user.storagePath()+'/../../../../log/' + let logPath = api.user.storagePath()+'/../../../../log/'; if (!fs.existsSync(logPath)) { - logPath = '/tmp/' + logPath = '/tmp/'; } this.log = myLogger.createMyLogger(this.debugLevel,logger,logPath); this.log('debugLevel:'+this.debugLevel); From 56d9acd44698fe8bbc7d03e860d04d1697ee3090 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:07:43 +0000 Subject: [PATCH 5/7] Update eslint requirement from ^8.50.0 to ^8.52.0 (#184) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1fd929c6..0476ccde 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "devDependencies": { "@babel/core": ">=7.23.0", "@babel/eslint-parser": "^7.22.15", - "eslint": "^8.50.0" + "eslint": "^8.52.0" }, "author": "Nebz ", "license": "GPL-2.0", From 096121bac90b7ddf14e2a9ee51697f4dc145be5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:14:03 +0000 Subject: [PATCH 6/7] Update @babel/core requirement from >=7.23.0 to >=7.23.2 (#183) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0476ccde..ba6b22b4 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "fakegato-history": "NebzHB/fakegato-history#master" }, "devDependencies": { - "@babel/core": ">=7.23.0", + "@babel/core": ">=7.23.2", "@babel/eslint-parser": "^7.22.15", "eslint": "^8.52.0" }, From 1cf23ab67fd84f71a3fcf49130120d2f4848dc97 Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:14:24 +0100 Subject: [PATCH 7/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba6b22b4..d5cd8fa2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nebz/homebridge-jeedom", "version": "v1.6.1", - "cust_serial": "0008", + "cust_serial": "0009", "description": "Homebridge plugin for Jeedom ", "main": "index.js", "private":true,