|
ESPHome 2026.11.0-dev
|
#include <base_automation.h>
Data Structures | |
| struct | NoElse |
Public Member Functions | |
| IfAction (Condition< Ts... > *condition) | |
| void | add_then (const std::initializer_list< Action< Ts... > * > &actions) |
| void | add_else (const std::initializer_list< Action< Ts... > * > &actions) |
| void | add_then_action (Action< Ts... > *action) |
| void | finish_then () |
| void | add_else_action (Action< Ts... > *action) |
| void | finish_else () |
| void | play_complex (const Ts &...x) final |
| 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 | |
| Condition< Ts... > * | condition_ |
| ActionList< Ts... > | then_ |
| std::conditional_t< HasElse, ActionList< Ts... >, NoElse > | else_ |
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 |
Definition at line 284 of file base_automation.h.
|
inlineexplicit |
Definition at line 286 of file base_automation.h.
|
inline |
Definition at line 296 of file base_automation.h.
|
inline |
Definition at line 307 of file base_automation.h.
|
inline |
Definition at line 291 of file base_automation.h.
|
inline |
Definition at line 305 of file base_automation.h.
|
inline |
Definition at line 312 of file base_automation.h.
|
inline |
Definition at line 306 of file base_automation.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 336 of file base_automation.h.
|
inlinefinalvirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 318 of file base_automation.h.
|
inlineoverridevirtual |
Reimplemented from esphome::Action< Ts... >.
Definition at line 338 of file base_automation.h.
|
protected |
Definition at line 346 of file base_automation.h.
|
protected |
Definition at line 349 of file base_automation.h.
|
protected |
Definition at line 347 of file base_automation.h.