|
ESPHome 2026.11.0-dev
|
Base class for all automation conditions. More...
#include <automation.h>
Public Member Functions | |
| virtual bool | check (const Ts &...x)=0 |
| Check whether this condition passes. This condition check must be instant, and not cause any delays. | |
| bool | check_tuple (const std::tuple< Ts... > &tuple) |
| Call check with a tuple of values as parameter. | |
Protected Member Functions | |
| template<size_t... S> | |
| bool | check_tuple_ (const std::tuple< Ts... > &tuple, std::index_sequence< S... >) |
Base class for all automation conditions.
| Ts | The template parameters to pass when executing. |
Definition at line 533 of file automation.h.
|
pure virtual |
Check whether this condition passes. This condition check must be instant, and not cause any delays.
Implemented in esphome::AndCondition< N, Ts >, esphome::ApplyCondition< Fn, Ts >, esphome::ForCondition< Ts >, esphome::LambdaCondition< Ts >, esphome::lvgl::LvglCondition< Tc, Ts >, esphome::NotCondition< Ts >, esphome::number::NumberInRangeCondition< Ts >, esphome::OrCondition< N, Ts >, esphome::select::SelectIsCondition< N, Ts >, esphome::select::SelectIsCondition< 0, Ts... >, esphome::sensor::SensorInRangeCondition< Ts >, esphome::StatelessLambdaCondition< Ts >, and esphome::XorCondition< N, Ts >.
|
inline |
Call check with a tuple of values as parameter.
Definition at line 539 of file automation.h.
|
inlineprotected |
Definition at line 544 of file automation.h.