From f0d9cd1c8bab36e1d7e6c0f0d82f48fc23a0ef98 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 15 Oct 2025 06:22:05 -0400 Subject: [PATCH] Added thermostat name to Glenwood report --- api/runtime.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/runtime.php b/api/runtime.php index 6796e9d..4e8a4d7 100644 --- a/api/runtime.php +++ b/api/runtime.php @@ -1223,6 +1223,7 @@ class runtime extends cora\api { json_unquote(user.settings->'$.glenwood_name') as glenwood_name, json_unquote(user.settings->'$.glenwood_unit') as glenwood_unit, ecobee_thermostat.identifier as thermostat_serial_number, + thermostat.name as thermostat_name, round(avg(runtime_thermostat.outdoor_temperature) / 10, 1) as average_outdoor_temperature, round(avg(runtime_thermostat.indoor_temperature) / 10, 1) as average_indoor_temperature, cast(sum( @@ -1270,6 +1271,7 @@ class runtime extends cora\api { 'Name', 'Unit #', 'Serial #', + 'Thermostat Name', 'Average Outdoor Temp (°F)', 'Average Indoor Temp (°F)', 'Heat 1 Runtime (min)', @@ -1289,6 +1291,7 @@ class runtime extends cora\api { $row['glenwood_name'], $row['glenwood_unit'], $row['thermostat_serial_number'], + $row['thermostat_name'], $row['average_outdoor_temperature'], $row['average_indoor_temperature'], $row['heat_stage_1_runtime_minutes'],