From 9fc8ad7318239169f72c97cdb9c4e371b642bb55 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 19 May 2025 16:49:33 -0400 Subject: [PATCH] Adjust eCO2 threshold for Excellent --- supersensor.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supersensor.yaml b/supersensor.yaml index b6e1f26..0974fff 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -560,7 +560,7 @@ sensor: if (tvoc > 2200 || eco2 > 2000) return 1; // Unhealthy if (tvoc > 660 || eco2 > 1200) return 2; // Poor if (tvoc > 220 || eco2 > 800) return 3; // Moderate - if (tvoc > 65 || eco2 > 600) return 4; // Good + if (tvoc > 65 || eco2 > 500) return 4; // Good return 5; // Excellent update_interval: 15s @@ -1071,6 +1071,7 @@ text_sensor: name: "CO2 Level" lambda: |- int eco2 = id(sgp30_eco2).state; + if (eco2 < 500) return {"Excellent"}; if (eco2 < 800) return {"Good"}; if (eco2 < 1200) return {"Moderate"}; if (eco2 < 2000) return {"Poor"};