Skip to content

Commit

Permalink
Add lux fakegato + remove for thermostat HC (no service)
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Nov 13, 2023
1 parent cdac163 commit 6e1d02f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1890,14 +1890,14 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) {
Serv.eqID = eqLogic.id;
Serv.subtype = Serv.subtype || '';
Serv.subtype = eqLogic.id + '-' + Serv.cmd_id + '-' + Serv.subtype;
/* if(that.fakegato && !eqLogic.hasLogging) {
if(that.fakegato && !eqLogic.hasLogging) {
// HBservice.characteristics.push(Characteristic.Sensitivity,Characteristic.Duration,Characteristic.LastActivation);

// eqLogic.loggingService = {type:"motion", options:{storage:'googleDrive',folder:'fakegato',keyPath:'/home/pi/.homebridge/'},subtype:Serv.eqID+'-history',cmd_id:Serv.eqID};
eqLogic.loggingService = {type:"custom", options:{storage:'fs',path:that.pathHomebridgeConf},subtype:Serv.eqID+'-history',cmd_id:Serv.eqID};

eqLogic.hasLogging=true;
} */
}
HBservices.push(HBservice);
HBservice = null;
}
Expand Down Expand Up @@ -3840,7 +3840,7 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i
time: Math.round(new Date().valueOf() / 1000),
temp: returnValue,
});
} else if (cmd.generic_type == 'THERMOSTAT_TEMPERATURE' || cmd.generic_type == 'THERMOSTAT_HC_TEMPERATURE') {
} else if (cmd.generic_type == 'THERMOSTAT_TEMPERATURE') {
service.eqLogic.loggingService.addEntry({
time: Math.round(new Date().valueOf() / 1000),
currentTemp: returnValue,
Expand Down

0 comments on commit 6e1d02f

Please sign in to comment.