From 94ae162c6cd211f1a7388bc7674ae83ccd6bd377 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 14 Nov 2019 21:44:15 -0500 Subject: [PATCH] Fixed #186 - Fan and accessory runtime is not populating properly in summary tables Forgot the fan. --- api/runtime_thermostat_summary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/runtime_thermostat_summary.php b/api/runtime_thermostat_summary.php index 33f1376..e388033 100755 --- a/api/runtime_thermostat_summary.php +++ b/api/runtime_thermostat_summary.php @@ -101,7 +101,7 @@ class runtime_thermostat_summary extends cora\crud { sum(case when `compressor_mode` = "heat" then `compressor_2` else 0 end) `sum_compressor_heat_2`, sum(`auxiliary_heat_1`) `sum_auxiliary_heat_1`, sum(`auxiliary_heat_2`) `sum_auxiliary_heat_2`, - sum(`fan`) `fan`, + sum(`fan`) `sum_fan`, sum(case when `accessory_type` = "humidifier" then `accessory` else 0 end) `sum_humidifier`, sum(case when `accessory_type` = "dehumidifier" then `accessory` else 0 end) `sum_dehumidifier`, sum(case when `accessory_type` = "ventilator" then `accessory` else 0 end) `sum_ventilator`,