mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed #410 - Setpoint reporting is way off
This commit is contained in:
parent
9424d5ba65
commit
2c591556ad
@ -399,15 +399,21 @@ class profile extends cora\crud {
|
||||
|
||||
// Log the setpoint.
|
||||
if(
|
||||
(
|
||||
$current_runtime['system_mode'] === 'heat' ||
|
||||
$current_runtime['system_mode'] === 'auto'
|
||||
) &&
|
||||
$current_runtime['setpoint_cool'] !== null
|
||||
) {
|
||||
$setpoints['heat'][] = $current_runtime['setpoint_heat'];
|
||||
}
|
||||
|
||||
if(
|
||||
(
|
||||
$current_runtime['system_mode'] === 'cool' ||
|
||||
$current_runtime['system_mode'] === 'auto'
|
||||
) &&
|
||||
$current_runtime['setpoint_cool'] !== null
|
||||
) {
|
||||
$setpoints['cool'][] = $current_runtime['setpoint_cool'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user