ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::Condition< Ts > Class Template Referenceabstract

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

Detailed Description

template<typename... Ts>
class esphome::Condition< Ts >

Base class for all automation conditions.

Template Parameters
TsThe template parameters to pass when executing.

Definition at line 533 of file automation.h.

Member Function Documentation

◆ check()

◆ check_tuple()

template<typename... Ts>
bool esphome::Condition< Ts >::check_tuple ( const std::tuple< Ts... > & tuple)
inline

Call check with a tuple of values as parameter.

Definition at line 539 of file automation.h.

◆ check_tuple_()

template<typename... Ts>
template<size_t... S>
bool esphome::Condition< Ts >::check_tuple_ ( const std::tuple< Ts... > & tuple,
std::index_sequence< S... >  )
inlineprotected

Definition at line 544 of file automation.h.


The documentation for this class was generated from the following file: