diff --git a/index.js b/index.js index 130d756..572ebfd 100755 --- a/index.js +++ b/index.js @@ -4019,7 +4019,7 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i break; case Characteristic.LeakDetected.UUID : for (const cmd of cmdList) { - if (cmd.generic_type == 'FLOOD' && cmd.id == service.cmd_id) { + if ((cmd.generic_type == 'FLOOD' || cmd.generic_type == 'WATER_LEAK') && cmd.id == service.cmd_id) { // returnValue = parseInt(service.invertBinary)==0 ? toBool(cmd.currentValue) : !toBool(cmd.currentValue); // invertBinary ? // no need to invert returnValue = toBool(cmd.currentValue); if(returnValue === false) { diff --git a/package.json b/package.json index f67890b..1b69977 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nebz/homebridge-jeedom", - "version": "v1.8.4", - "cust_serial": "0005", + "version": "v1.8.5", + "cust_serial": "0001", "description": "Homebridge plugin for Jeedom ", "main": "index.js", "private":true, @@ -29,7 +29,7 @@ "dependencies": { "async": "3.2.6", "axios": "1.7.7", - "express": "4.21.0", + "express": "5.0.1", "fakegato-history": "NebzHB/fakegato-history#master" }, "devDependencies": {