ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::AutomationList< N, Ts > Class Template Reference

Automations a component triggers itself, sized at codegen time (count from cg.slot_counter). More...

#include <automation.h>

Public Member Functions

void add (Automation< Ts... > *automation)
 
bool empty () const
 
template<typename... Args>
void trigger (Args &&...x)
 Arguments convert to Ts only when the list is not empty (e.g. const char * to std::string).
 

Protected Attributes

StaticVector< Automation< Ts... > *, N > automations_
 

Detailed Description

template<size_t N, typename... Ts>
class esphome::AutomationList< N, Ts >

Automations a component triggers itself, sized at codegen time (count from cg.slot_counter).

Definition at line 765 of file automation.h.

Member Function Documentation

◆ add()

template<size_t N, typename... Ts>
void esphome::AutomationList< N, Ts >::add ( Automation< Ts... > * automation)
inline

Definition at line 767 of file automation.h.

◆ empty()

template<size_t N, typename... Ts>
bool esphome::AutomationList< N, Ts >::empty ( ) const
inline

Definition at line 768 of file automation.h.

◆ trigger()

template<size_t N, typename... Ts>
template<typename... Args>
void esphome::AutomationList< N, Ts >::trigger ( Args &&... x)
inline

Arguments convert to Ts only when the list is not empty (e.g. const char * to std::string).

Definition at line 770 of file automation.h.

Field Documentation

◆ automations_

template<size_t N, typename... Ts>
StaticVector<Automation<Ts...> *, N> esphome::AutomationList< N, Ts >::automations_
protected

Definition at line 777 of file automation.h.


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