Skip to content

Commit

Permalink
Update philipsHued.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Oct 16, 2023
1 parent e656544 commit dfc0a97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/philipsHued/philipsHued.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function launchConnection(_bridge_id,_retry){
_retry = 0;
}
bridges[_bridge_id]['lastMessage'] = Math.floor(new Date().getTime() / 1000)
Jeedom.com.add_changes('bridge::'+_bridge_id,e.data);
Jeedom.com.send_change_immediate('bridge::'+_bridge_id,e.data);
})

if(bridges[_bridge_id]['keepalive']){
Expand All @@ -92,7 +92,7 @@ function launchConnection(_bridge_id,_retry){
rejectUnauthorized: false
}
});
Jeedom.com.add_changes('bridge::'+_bridge_id,'resync');
Jeedom.com.send_change_immediate('bridge::'+_bridge_id,'resync');
},30000);
}

Expand Down Expand Up @@ -208,4 +208,4 @@ function updateJeedomGeolocName(_bridge_id){
req.end();
}, 30000)

}
}

0 comments on commit dfc0a97

Please sign in to comment.