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

Fixed #293 - Undefined index: zoneHeatTemp

Fixed API-2S
This commit is contained in:
Jon Ziebell 2020-07-17 14:31:22 -04:00
parent b5f976321b
commit ad589f8641

View File

@ -596,8 +596,17 @@ class runtime extends cora\api {
$columns['zoneClimate'] $columns['zoneClimate']
)['runtime_thermostat_text_id']; )['runtime_thermostat_text_id'];
if (isset($columns['zoneCoolTemp']) === true) {
$data['setpoint_cool'] = $columns['zoneCoolTemp'] * 10; $data['setpoint_cool'] = $columns['zoneCoolTemp'] * 10;
} else {
$data['setpoint_cool'] = null;
}
if (isset($columns['zoneHeatTemp']) === true) {
$data['setpoint_heat'] = $columns['zoneHeatTemp'] * 10; $data['setpoint_heat'] = $columns['zoneHeatTemp'] * 10;
} else {
$data['setpoint_heat'] = null;
}
if ($data_begin === null) { if ($data_begin === null) {
$data_begin = $timestamp; $data_begin = $timestamp;