Skip to content

Commit

Permalink
Valve position is open if temp < target
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges Dib committed Feb 17, 2023
1 parent df425d1 commit 9732477
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,14 @@ EvohomePlatform.prototype.periodicUpdate = function () {

//this.log("populating loggingService: " + loggingService);
//this.log(moment().unix() + " " + newCurrentTemp + " " + newTargetTemp);
var valvePosition =
newCurrentTemp >= newTargetTemp ? 0 : 100;
loggingService.addEntry({
time: moment().unix(),
currentTemp: newCurrentTemp,
setTemp: newTargetTemp,
valvePosition: 50,
}); // valve pos 50%???
valvePosition: valvePosition,
});
}
} else if (
!updatedAwayActive &&
Expand Down

0 comments on commit 9732477

Please sign in to comment.