mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
parent
b5f976321b
commit
ad589f8641
@ -596,8 +596,17 @@ class runtime extends cora\api {
|
|||||||
$columns['zoneClimate']
|
$columns['zoneClimate']
|
||||||
)['runtime_thermostat_text_id'];
|
)['runtime_thermostat_text_id'];
|
||||||
|
|
||||||
$data['setpoint_cool'] = $columns['zoneCoolTemp'] * 10;
|
if (isset($columns['zoneCoolTemp']) === true) {
|
||||||
$data['setpoint_heat'] = $columns['zoneHeatTemp'] * 10;
|
$data['setpoint_cool'] = $columns['zoneCoolTemp'] * 10;
|
||||||
|
} else {
|
||||||
|
$data['setpoint_cool'] = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($columns['zoneHeatTemp']) === true) {
|
||||||
|
$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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user