1
0
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:
Jon Ziebell 2024-06-04 19:48:32 -04:00
parent 9424d5ba65
commit 2c591556ad

View File

@ -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'];
}