From ffaae3c254f34a8efc04b77869286ba99be4b796 Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:44:09 +0100 Subject: [PATCH] fix WATER_LEAK --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {