From 88108cf93f3835eab101251f4efde63af4d28e64 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 17 Jun 2020 07:46:31 -0400 Subject: [PATCH] Fixed #280 - Sometimes ecobee reports auxHeat2 > auxHeat1 --- api/runtime.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/runtime.php b/api/runtime.php index e5cd538..e59d7a9 100644 --- a/api/runtime.php +++ b/api/runtime.php @@ -498,6 +498,15 @@ class runtime extends cora\api { continue; } + /** + * See #280. + */ + if( + $columns['auxHeat2'] > $columns['auxHeat1'] + ) { + continue; + } + // Date and time are first two columns of the returned data. It is // returned in thermostat time, so convert it to UTC first. $timestamp = $this->get_utc_datetime(