ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
esphome::sprinkler::StartSingleValveAction< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::sprinkler::StartSingleValveAction< Ts >:
esphome::Action< Ts... >

Public Member Functions

 StartSingleValveAction (Sprinkler *a_sprinkler)
 
template<typename V >
void set_valve_to_start (V valve_to_start)
 
 TEMPLATABLE_VALUE (uint32_t, valve_run_duration) void play(const Ts &...x) override
 
- Public Member Functions inherited from esphome::Action< Ts... >
virtual void play_complex (const Ts &...x)
 
virtual void stop_complex ()
 
virtual 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

Sprinklersprinkler_
 
TemplatableValue< size_t, Ts... > valve_to_start_ {}
 
- 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... >
virtual void play (const Ts &...x)=0
 
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)
 
virtual void stop ()
 
void stop_next_ ()
 
bool is_running_next_ ()
 

Detailed Description

template<typename... Ts>
class esphome::sprinkler::StartSingleValveAction< Ts >

Definition at line 42 of file sprinkler.h.

Constructor & Destructor Documentation

◆ StartSingleValveAction()

template<typename... Ts>
esphome::sprinkler::StartSingleValveAction< Ts >::StartSingleValveAction ( Sprinkler * a_sprinkler)
inlineexplicit

Definition at line 109 of file automation.h.

Member Function Documentation

◆ set_valve_to_start()

template<typename... Ts>
template<typename V >
void esphome::sprinkler::StartSingleValveAction< Ts >::set_valve_to_start ( V valve_to_start)
inline

Definition at line 112 of file automation.h.

◆ TEMPLATABLE_VALUE()

template<typename... Ts>
esphome::sprinkler::StartSingleValveAction< Ts >::TEMPLATABLE_VALUE ( uint32_t ,
valve_run_duration  ) const &
inlineoverride

Definition at line 113 of file automation.h.

Field Documentation

◆ sprinkler_

template<typename... Ts>
Sprinkler* esphome::sprinkler::StartSingleValveAction< Ts >::sprinkler_
protected

Definition at line 121 of file automation.h.

◆ valve_to_start_

template<typename... Ts>
TemplatableValue<size_t, Ts...> esphome::sprinkler::StartSingleValveAction< Ts >::valve_to_start_ {}
protected

Definition at line 122 of file automation.h.


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