Skip to content

Commit

Permalink
Merge pull request #258 from NebzHB/beta
Browse files Browse the repository at this point in the history
Update to beta
  • Loading branch information
NebzHB authored Nov 22, 2024
2 parents 01c7b8d + 616d7ca commit 41871d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 41871d7

Please sign in to comment.