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

#include <base_automation.h>

Inheritance diagram for esphome::RepeatAction< Ts >:
esphome::Action< Ts... >

Public Member Functions

 TEMPLATABLE_VALUE (uint32_t, count) void add_then(const std
 
void add_then_action (Action< uint32_t, Ts... > *action)
 
void finish_then ()
 
void play_complex (const Ts &...x) override
 
void play (const Ts &...x) override
 
void stop () override
 
- Public Member Functions inherited from esphome::Action< Ts... >
void stop_complex ()
 
bool is_running ()
 Check if this or any of the following actions are currently running.
 
int num_running_total ()
 The total number of actions that are currently running in this plus any of the following actions in the chain.
 

Protected Attributes

ActionList< uint32_t, Ts... > then_
 
RepeatLoopContinuation< Ts... > loop_continuation_ {this}
 
- Protected Attributes inherited from esphome::Action< Ts... >
friend ActionList< Ts... >
 
Action< Ts... > * next_
 
int num_running_
 The number of instances of this sequence in the list of actions that is currently being executed.
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Action< Ts... >
void play_next_ (const Ts &...x)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple, std::index_sequence< S... >)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple)
 
void stop_next_ ()
 
bool is_running_next_ ()
 
bool next_is_owner_ () const
 
Action * owner_ () const
 Only valid when next_is_owner_().
 
Action * chain_next_ () const
 
- Static Protected Member Functions inherited from esphome::Action< Ts... >
static Action * tag_owner (Action *owner)
 
- Static Protected Attributes inherited from esphome::Action< Ts... >
static constexpr uintptr_t OWNER_TAG
 

Detailed Description

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

Definition at line 418 of file base_automation.h.

Member Function Documentation

◆ add_then_action()

template<typename... Ts>
void esphome::RepeatAction< Ts >::add_then_action ( Action< uint32_t, Ts... > * action)
inline

Definition at line 428 of file base_automation.h.

◆ finish_then()

template<typename... Ts>
void esphome::RepeatAction< Ts >::finish_then ( )
inline

Definition at line 429 of file base_automation.h.

◆ play()

template<typename... Ts>
void esphome::RepeatAction< Ts >::play ( const Ts &... x)
inlineoverridevirtual

Implements esphome::Action< Ts... >.

Definition at line 442 of file base_automation.h.

◆ play_complex()

template<typename... Ts>
void esphome::RepeatAction< Ts >::play_complex ( const Ts &... x)
inlineoverridevirtual

Reimplemented from esphome::Action< Ts... >.

Definition at line 433 of file base_automation.h.

◆ stop()

template<typename... Ts>
void esphome::RepeatAction< Ts >::stop ( )
inlineoverridevirtual

Reimplemented from esphome::Action< Ts... >.

Definition at line 444 of file base_automation.h.

◆ TEMPLATABLE_VALUE()

template<typename... Ts>
esphome::RepeatAction< Ts >::TEMPLATABLE_VALUE ( uint32_t ,
count  ) const
inline

Definition at line 420 of file base_automation.h.

Field Documentation

◆ loop_continuation_

template<typename... Ts>
RepeatLoopContinuation<Ts...> esphome::RepeatAction< Ts >::loop_continuation_ {this}
protected

Definition at line 448 of file base_automation.h.

◆ then_

template<typename... Ts>
ActionList<uint32_t, Ts...> esphome::RepeatAction< Ts >::then_
protected

Definition at line 447 of file base_automation.h.


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