Edit esp-entrancebathrmlights.yaml
This commit is contained in:
1 parent
9342616e33
commit
15e9903b91
1 file changed
+3
-3
@@ -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