ESPHome  2024.10.3
Data Structures | Typedefs | Enumerations | Functions
esphome::sensor Namespace Reference

Data Structures

class  CalibrateLinearFilter
 
class  CalibratePolynomialFilter
 
class  ClampFilter
 
class  DebounceFilter
 
class  DeltaFilter
 
class  ExponentialMovingAverageFilter
 Simple exponential moving average filter. More...
 
class  Filter
 Apply a filter to sensor values such as moving average. More...
 
class  FilterOutValueFilter
 A simple filter that only forwards the filter chain if it doesn't receive value_to_filter_out. More...
 
class  HeartbeatFilter
 
class  LambdaFilter
 This class allows for creation of simple template filters. More...
 
class  MaxFilter
 Simple max filter. More...
 
class  MedianFilter
 Simple median filter. More...
 
class  MinFilter
 Simple min filter. More...
 
class  MultiplyFilter
 A simple filter that multiplies to each value it receives by multiplier. More...
 
class  OffsetFilter
 A simple filter that adds offset to each value it receives. More...
 
class  OrFilter
 
class  QuantileFilter
 Simple quantile filter. More...
 
class  RoundFilter
 
class  RoundMultipleFilter
 
class  Sensor
 Base-class for all sensors. More...
 
class  SensorInRangeCondition
 
class  SensorPublishAction
 
class  SensorRawStateTrigger
 
class  SensorStateTrigger
 
class  SkipInitialFilter
 Simple skip filter. More...
 
class  SlidingWindowMovingAverageFilter
 Simple sliding window moving average filter. More...
 
class  ThrottleAverageFilter
 Simple throttle average filter. More...
 
class  ThrottleFilter
 
class  TimeoutFilter
 
class  ValueRangeTrigger
 

Typedefs

using lambda_filter_t = std::function< optional< float >(float)>
 

Enumerations

enum  StateClass : uint8_t { STATE_CLASS_NONE = 0, STATE_CLASS_MEASUREMENT = 1, STATE_CLASS_TOTAL_INCREASING = 2, STATE_CLASS_TOTAL = 3 }
 Sensor state classes. More...
 

Functions

std::string state_class_to_string (StateClass state_class)
 

Typedef Documentation

◆ lambda_filter_t

using esphome::sensor::lambda_filter_t = typedef std::function<optional<float>(float)>

Definition at line 251 of file filter.h.

Enumeration Type Documentation

◆ StateClass

Sensor state classes.

Enumerator
STATE_CLASS_NONE 
STATE_CLASS_MEASUREMENT 
STATE_CLASS_TOTAL_INCREASING 
STATE_CLASS_TOTAL 

Definition at line 44 of file sensor.h.

Function Documentation

◆ state_class_to_string()

std::string esphome::sensor::state_class_to_string ( StateClass  state_class)

Definition at line 9 of file sensor.cpp.