mirror of
https://github.com/beestat/app.git
synced 2026-05-13 10:52:29 -04:00
Changed TVOC Summary to Air Quality Summary
This better reflects the little color scale in the ecobee app.
This commit is contained in:
@@ -112,6 +112,11 @@ class runtime_sensor extends cora\crud {
|
||||
if ($runtime_sensor['temperature'] !== null) {
|
||||
$runtime_sensor['temperature'] /= 10;
|
||||
}
|
||||
|
||||
// Normalize air quality from 0-350 to 0-100;
|
||||
if ($runtime_sensor['air_quality'] !== null) {
|
||||
$runtime_sensor['air_quality'] = round($runtime_sensor['air_quality'] / 350 * 100);
|
||||
}
|
||||
}
|
||||
|
||||
return $runtime_sensors;
|
||||
|
||||
Reference in New Issue
Block a user