1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #347 - Setpoint metrics don't generate when system is set to auto

This commit is contained in:
Jon Ziebell 2021-12-15 07:47:40 -05:00
parent bcb59df01d
commit 3e6b03f93f

View File

@ -378,10 +378,18 @@ class profile extends cora\api {
$current_runtime['outdoor_temperature'] = round($current_runtime['outdoor_temperature'] / $smoothing) * $smoothing;
}
// If the system mode was heat or cool, log the setpoint.
if($current_runtime['system_mode'] === 'heat') {
// Log the setpoint.
if(
$current_runtime['system_mode'] === 'heat' ||
$current_runtime['system_mode'] === 'auto'
) {
$setpoints['heat'][] = $current_runtime['setpoint_heat'];
} else if($current_runtime['system_mode'] === 'cool') {
}
if(
$current_runtime['system_mode'] === 'cool' ||
$current_runtime['system_mode'] === 'auto'
) {
$setpoints['cool'][] = $current_runtime['setpoint_cool'];
}