From 1da84c3f94544f300b780f56b2594118f368d211 Mon Sep 17 00:00:00 2001 From: Nebz <28622481+NebzHB@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:30:17 +0100 Subject: [PATCH] Update index.js --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 72a2def..1f54884 100755 --- a/index.js +++ b/index.js @@ -511,7 +511,6 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) { Serv.eqLogic=eqLogic; Serv.actions={}; Serv.infos={}; - Serv.infos.moving=null; if(cmd.moving) { Serv.infos.moving=cmd.moving; } @@ -740,7 +739,6 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) { Serv.actions={}; Serv.infos={}; Serv.infos.state=cmd.state; - Serv.infos.moving=null; if(cmd.moving) { Serv.infos.moving=cmd.moving; } @@ -4586,7 +4584,7 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i } break; case Characteristic.PositionState.UUID : - if(moving in service.infos && service.infos.moving !== null) { + if('moving' in service.infos && service.infos.moving !== null) { for (const cmd of cmdList) { if (cmd.generic_type == 'FLAP_MOVING' || cmd.generic_type == 'WINDOW_MOVING') { switch(parseInt(cmd.currentValue)) {