1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed system off time bug

This commit is contained in:
Jon Ziebell 2024-08-18 12:36:49 -04:00
parent 6e294377f2
commit 522f917308

View File

@ -391,8 +391,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) {
runtime_thermostat.compressor_1 < 300 &&
runtime_thermostat.compressor_2 < 300 &&
runtime_thermostat.auxiliary_heat_1 < 300 &&
runtime_thermostat.auxiliary_heat_2 < 300 &&
runtime_thermostat.fan < 300
runtime_thermostat.auxiliary_heat_2 < 300
)
) {
// If currently running and it stops.
@ -415,7 +414,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) {
) {
// If not currently running and it starts
durations.off_heat_cool.seconds +=
Math.max(
300 - Math.max(
runtime_thermostat.compressor_1,
runtime_thermostat.compressor_2,
runtime_thermostat.auxiliary_heat_1,