ESPHome  2021.11.4
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::Action< Ts > Class Template Referenceabstract

#include <automation.h>

Public Member Functions

virtual void play_complex (Ts... x)
 
virtual void stop_complex ()
 
virtual bool is_running ()
 Check if this or any of the following actions are currently running. More...
 
int num_running_total ()
 The total number of actions that are currently running in this plus any of the following actions in the chain. More...
 

Protected Member Functions

virtual void play (Ts... x)=0
 
void play_next_ (Ts... x)
 
template<int... S>
void play_next_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple)
 
virtual void stop ()
 
void stop_next_ ()
 
bool is_running_next_ ()
 

Protected Attributes

friend ActionList< Ts... >
 
Action< Ts... > * next_ = nullptr
 
int num_running_ {0}
 The number of instances of this sequence in the list of actions that is currently being executed. More...
 

Detailed Description

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

Definition at line 116 of file automation.h.

Member Function Documentation

◆ is_running()

template<typename... Ts>
virtual bool esphome::Action< Ts >::is_running ( )
inlinevirtual

Check if this or any of the following actions are currently running.

Definition at line 131 of file automation.h.

◆ is_running_next_()

template<typename... Ts>
bool esphome::Action< Ts >::is_running_next_ ( )
inlineprotected

Definition at line 168 of file automation.h.

◆ num_running_total()

template<typename... Ts>
int esphome::Action< Ts >::num_running_total ( )
inline

The total number of actions that are currently running in this plus any of the following actions in the chain.

Definition at line 135 of file automation.h.

◆ play()

template<typename... Ts>
virtual void esphome::Action< Ts >::play ( Ts...  x)
protectedpure virtual

Implemented in esphome::display::DisplayPageShowPrevAction< Ts >, esphome::display::DisplayPageShowNextAction< Ts >, esphome::mqtt::MQTTPublishJsonAction< Ts >, esphome::remote_base::RemoteTransmitterActionBase< Ts >, esphome::remote_base::RemoteTransmitterActionBase< Ts... >, esphome::UpdateComponentAction< Ts >, esphome::WaitUntilAction< Ts >, esphome::fingerprint_grow::AuraLEDControlAction< Ts >, esphome::RepeatAction< Ts >, esphome::fingerprint_grow::DeleteAllAction< Ts >, esphome::fingerprint_grow::CancelEnrollmentAction< Ts >, esphome::fingerprint_grow::EnrollmentAction< Ts >, esphome::WhileAction< Ts >, esphome::rf_bridge::RFBridgeStartBucketSniffingAction< Ts >, esphome::IfAction< Ts >, esphome::rf_bridge::RFBridgeStopAdvancedSniffingAction< Ts >, esphome::rf_bridge::RFBridgeStartAdvancedSniffingAction< Ts >, esphome::rf_bridge::RFBridgeLearnAction< Ts >, esphome::script::ScriptWaitAction< Ts >, esphome::LambdaAction< Ts >, esphome::dfplayer::PlayFileAction< Ts >, esphome::DelayAction< Ts >, esphome::cs5460a::CS5460ARestartAction< Ts >, esphome::deep_sleep::PreventDeepSleepAction< Ts >, esphome::pid::PIDSetControlParametersAction< Ts >, esphome::stepper::SetDecelerationAction< Ts >, esphome::pid::PIDResetIntegralTermAction< Ts >, esphome::rf_bridge::RFBridgeSendCodeAction< Ts >, esphome::canbus::CanbusSendAction< Ts >, esphome::deep_sleep::EnterDeepSleepAction< Ts >, esphome::script::ScriptStopAction< Ts >, esphome::integration::ResetAction< Ts >, esphome::stepper::SetAccelerationAction< Ts >, esphome::http_request::HttpRequestSendAction< Ts >, esphome::script::ScriptExecuteAction< Ts >, esphome::servo::ServoDetachAction< Ts >, esphome::tm1651::TurnOffAction< Ts >, esphome::pid::PIDAutotuneAction< Ts >, esphome::tm1651::TurnOnAction< Ts >, esphome::senseair::SenseAirABCGetPeriodAction< Ts >, esphome::light::DimRelativeAction< Ts >, esphome::globals::GlobalVarSetAction< C, Ts >, esphome::stepper::SetSpeedAction< Ts >, esphome::ds1307::ReadAction< Ts >, esphome::senseair::SenseAirABCDisableAction< Ts >, esphome::rtttl::StopAction< Ts >, esphome::ds1307::WriteAction< Ts >, esphome::mhz19::MHZ19ABCDisableAction< Ts >, esphome::fan::CycleSpeedAction< Ts >, esphome::midea::ac::PowerOffAction< Ts >, esphome::senseair::SenseAirABCEnableAction< Ts >, esphome::hbridge::BrakeAction< Ts >, esphome::mhz19::MHZ19ABCEnableAction< Ts >, esphome::midea::ac::PowerOnAction< Ts >, esphome::fan::ToggleAction< Ts >, esphome::ledc::SetFrequencyAction< Ts >, esphome::api::HomeAssistantServiceCallAction< Ts >, esphome::midea::ac::BeeperOffAction< Ts >, esphome::senseair::SenseAirBackgroundCalibrationResultAction< Ts >, esphome::cover::ToggleAction< Ts >, esphome::esp8266_pwm::SetFrequencyAction< Ts >, esphome::mhz19::MHZ19CalibrateZeroAction< Ts >, esphome::midea::ac::BeeperOnAction< Ts >, esphome::fan::TurnOffAction< Ts >, esphome::midea::ac::DisplayToggleAction< Ts >, esphome::senseair::SenseAirBackgroundCalibrationAction< Ts >, esphome::cover::StopAction< Ts >, esphome::switch_::ToggleAction< Ts >, esphome::midea::ac::SwingStepAction< Ts >, esphome::output::TurnOnAction< Ts >, esphome::climate::ControlAction< Ts >, esphome::cover::CloseAction< Ts >, esphome::switch_::TurnOffAction< Ts >, esphome::uart::UARTWriteAction< Ts >, esphome::output::TurnOffAction< Ts >, esphome::cover::OpenAction< Ts >, and esphome::switch_::TurnOnAction< Ts >.

◆ play_complex()

template<typename... Ts>
virtual void esphome::Action< Ts >::play_complex ( Ts...  x)
inlinevirtual

◆ play_next_()

template<typename... Ts>
void esphome::Action< Ts >::play_next_ ( Ts...  x)
inlineprotected

Definition at line 146 of file automation.h.

◆ play_next_tuple_() [1/2]

template<typename... Ts>
template<int... S>
void esphome::Action< Ts >::play_next_tuple_ ( const std::tuple< Ts... > &  tuple,
seq< S... >   
)
inlineprotected

Definition at line 154 of file automation.h.

◆ play_next_tuple_() [2/2]

template<typename... Ts>
void esphome::Action< Ts >::play_next_tuple_ ( const std::tuple< Ts... > &  tuple)
inlineprotected

Definition at line 157 of file automation.h.

◆ stop()

template<typename... Ts>
virtual void esphome::Action< Ts >::stop ( )
inlineprotectedvirtual

◆ stop_complex()

template<typename... Ts>
virtual void esphome::Action< Ts >::stop_complex ( )
inlinevirtual

Definition at line 123 of file automation.h.

◆ stop_next_()

template<typename... Ts>
void esphome::Action< Ts >::stop_next_ ( )
inlineprotected

Definition at line 162 of file automation.h.

Field Documentation

◆ ActionList< Ts... >

template<typename... Ts>
friend esphome::Action< Ts >::ActionList< Ts... >
protected

Definition at line 143 of file automation.h.

◆ next_

template<typename... Ts>
Action<Ts...>* esphome::Action< Ts >::next_ = nullptr
protected

Definition at line 174 of file automation.h.

◆ num_running_

template<typename... Ts>
int esphome::Action< Ts >::num_running_ {0}
protected

The number of instances of this sequence in the list of actions that is currently being executed.

Definition at line 178 of file automation.h.


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