ESPHome  2022.11.4
Public Member Functions | Protected Attributes
esphome::sensor::SensorInRangeCondition< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::sensor::SensorInRangeCondition< Ts >:
esphome::Condition< Ts... >

Public Member Functions

 SensorInRangeCondition (Sensor *parent)
 
void set_min (float min)
 
void set_max (float max)
 
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...
 

Protected Attributes

Sensorparent_
 
float min_ {NAN}
 
float max_ {NAN}
 

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::sensor::SensorInRangeCondition< Ts >

Definition at line 87 of file automation.h.

Constructor & Destructor Documentation

◆ SensorInRangeCondition()

template<typename... Ts>
esphome::sensor::SensorInRangeCondition< Ts >::SensorInRangeCondition ( Sensor parent)
inline

Definition at line 89 of file automation.h.

Member Function Documentation

◆ check()

template<typename... Ts>
bool esphome::sensor::SensorInRangeCondition< Ts >::check ( Ts...  x)
inlineoverridevirtual

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

Definition at line 93 of file automation.h.

◆ set_max()

template<typename... Ts>
void esphome::sensor::SensorInRangeCondition< Ts >::set_max ( float  max)
inline

Definition at line 92 of file automation.h.

◆ set_min()

template<typename... Ts>
void esphome::sensor::SensorInRangeCondition< Ts >::set_min ( float  min)
inline

Definition at line 91 of file automation.h.

Field Documentation

◆ max_

template<typename... Ts>
float esphome::sensor::SensorInRangeCondition< Ts >::max_ {NAN}
protected

Definition at line 107 of file automation.h.

◆ min_

template<typename... Ts>
float esphome::sensor::SensorInRangeCondition< Ts >::min_ {NAN}
protected

Definition at line 106 of file automation.h.

◆ parent_

template<typename... Ts>
Sensor* esphome::sensor::SensorInRangeCondition< Ts >::parent_
protected

Definition at line 105 of file automation.h.


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