From 15e9903b916130ccbadd9361651043630a8cf419 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Sun, 28 Jun 2026 00:02:28 +1200 Subject: [PATCH] Edit esp-entrancebathrmlights.yaml --- esphome/esp-entrancebathrmlights.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/esp-entrancebathrmlights.yaml b/esphome/esp-entrancebathrmlights.yaml index fb231e2..bd20bfe 100644 --- a/esphome/esp-entrancebathrmlights.yaml +++ b/esphome/esp-entrancebathrmlights.yaml @@ -251,10 +251,10 @@ text_sensor: lambda: |- int seconds = 0; - if (id(Relay_2).state && id(fan_timer_counting_down)) { + // Only show the countdown while the timer is actually operating. + // If the timer is not operating, always show 00:00. + if (id(fan_timer_counting_down)) { seconds = id(fan_timer_remaining_seconds); - } else { - seconds = 0; } if (seconds < 0) {