From 8ad42f1d7f3a1e5e80ba40ea7f6a4db3af9d12fb Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Sun, 20 Sep 2026 11:44:38 -0400 Subject: [PATCH] Edit airqualitysensor-3.yaml --- esphome/airqualitysensor-3.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/airqualitysensor-3.yaml b/esphome/airqualitysensor-3.yaml index 3ca2c46..97e75ee 100644 --- a/esphome/airqualitysensor-3.yaml +++ b/esphome/airqualitysensor-3.yaml @@ -99,7 +99,7 @@ script: std::string quality = id(iaq_reading).state; float lux = id(ambient_light).state; - std::string mode = id(led_mode).state; + std::string mode = id(led_mode).current_option(); float brightness = 0.15; float r = 0.0, g = 0.0, b = 0.0; @@ -154,7 +154,7 @@ script: } std::string quality = id(iaq_reading).state; - std::string mode = id(led_mode).state; + std::string mode = id(led_mode).current_option(); float lux = id(ambient_light).state; float r = 0.0, g = 0.0, b = 0.0;