mirror of
https://github.com/beestat/app.git
synced 2025-05-23 18:04:14 -04:00
Fixed system off time bug
This commit is contained in:
parent
6e294377f2
commit
522f917308
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user