Edit esp-entrancebathrmlights.yaml
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user