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) {