diff --git a/esphome/core/base_automation.h b/esphome/core/base_automation.h index ad50a3921f..add3df0bb5 100644 --- a/esphome/core/base_automation.h +++ b/esphome/core/base_automation.h @@ -73,7 +73,7 @@ template class ForCondition : public Condition, public Co bool check(Ts... x) override { if (!this->check_internal()) return false; - return millis() - this->last_inactive_ < this->time_.value(x...); + return millis() - this->last_inactive_ >= this->time_.value(x...); } protected: