Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Aug 23, 2023
1 parent 81303af commit 50193ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3951,8 +3951,8 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i
case Characteristic.MotionDetected.UUID :
for (const cmd of cmdList) {
if (cmd.generic_type == 'PRESENCE' && cmd.id == service.cmd_id) {
returnValue = parseInt(service.invertBinary)==0 ? !toBool(cmd.currentValue) : toBool(cmd.currentValue); // invertBinary ?
// returnValue = toBool(cmd.currentValue);
// returnValue = parseInt(service.invertBinary)==0 ? !toBool(cmd.currentValue) : toBool(cmd.currentValue); // invertBinary ?
returnValue = toBool(cmd.currentValue);
if(that.fakegato && service.eqLogic && service.eqLogic.hasLogging) {
service.eqLogic.loggingService.addEntry({
time: Math.round(new Date().valueOf() / 1000),
Expand All @@ -3966,8 +3966,8 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i
case Characteristic.OccupancyDetected.UUID :
for (const cmd of cmdList) {
if (cmd.generic_type == 'OCCUPANCY' && cmd.id == service.cmd_id) {
returnValue = parseInt(service.invertBinary)==0 ? !toBool(cmd.currentValue) : toBool(cmd.currentValue); // invertBinary ?
// returnValue = toBool(cmd.currentValue);
// returnValue = parseInt(service.invertBinary)==0 ? !toBool(cmd.currentValue) : toBool(cmd.currentValue); // invertBinary ?
returnValue = toBool(cmd.currentValue);
if(returnValue === false) {
returnValue = Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED;
} else {
Expand Down

0 comments on commit 50193ca

Please sign in to comment.