ESPHome  2022.9.1
Public Member Functions | Protected Attributes
esphome::sun::SunCondition< Ts > Class Template Reference

#include <sun.h>

Inheritance diagram for esphome::sun::SunCondition< Ts >:
esphome::Condition< Ts... > esphome::Parented< Sun >

Public Member Functions

 TEMPLATABLE_VALUE (double, elevation)
 
void set_above (bool above)
 
bool check (Ts... x) override
 
- Public Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter. More...
 
- Public Member Functions inherited from esphome::Parented< Sun >
 Parented ()
 
 Parented (Sun *parent)
 
Sun * get_parent () const
 Get the parent of this object. More...
 
void set_parent (Sun *parent)
 Set the parent of this object. More...
 

Protected Attributes

bool above_
 
- Protected Attributes inherited from esphome::Parented< Sun >
Sun * parent_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 

Detailed Description

template<typename... Ts>
class esphome::sun::SunCondition< Ts >

Definition at line 105 of file sun.h.

Member Function Documentation

◆ check()

template<typename... Ts>
bool esphome::sun::SunCondition< Ts >::check ( Ts...  x)
inlineoverridevirtual

Implements esphome::Condition< Ts... >.

Definition at line 110 of file sun.h.

◆ set_above()

template<typename... Ts>
void esphome::sun::SunCondition< Ts >::set_above ( bool  above)
inline

Definition at line 108 of file sun.h.

◆ TEMPLATABLE_VALUE()

template<typename... Ts>
esphome::sun::SunCondition< Ts >::TEMPLATABLE_VALUE ( double  ,
elevation   
)

Field Documentation

◆ above_

template<typename... Ts>
bool esphome::sun::SunCondition< Ts >::above_
protected

Definition at line 121 of file sun.h.


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