ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
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  MinMaxFilter
 Base class for Min/Max filters. 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  SlidingWindowFilter
 Base class for filters that use a sliding window of values. More...
 
class  SlidingWindowMovingAverageFilter
 Simple sliding window moving average filter. More...
 
class  SortedWindowFilter
 Base class for filters that need a sorted window (Median, Quantile). More...
 
class  StatelessLambdaFilter
 Optimized lambda filter for stateless lambdas (no capture). More...
 
class  StreamingFilter
 Base class for streaming filters (batch windows where window_size == send_every). More...
 
class  StreamingMaxFilter
 Streaming max filter for batch windows (window_size == send_every). More...
 
class  StreamingMinFilter
 Streaming min filter for batch windows (window_size == send_every). More...
 
class  StreamingMovingAverageFilter
 Streaming moving average filter for batch windows (window_size == send_every). More...
 
class  ThrottleAverageFilter
 Simple throttle average filter. More...
 
class  ThrottleFilter
 
class  ThrottleWithPriorityFilter
 Same as 'throttle' but will immediately publish values contained in value_to_prioritize. More...
 
class  TimeoutFilter
 
class  ToNTCResistanceFilter
 
class  ToNTCTemperatureFilter
 
class  ValueListFilter
 Base class for filters that compare sensor values against a list of configured values. More...
 
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

void log_sensor (const char *tag, const char *prefix, const char *type, Sensor *obj)
 
const LogString * state_class_to_string (StateClass state_class)
 

Typedef Documentation

◆ lambda_filter_t

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

Definition at line 277 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 29 of file sensor.h.

Function Documentation

◆ log_sensor()

void esphome::sensor::log_sensor ( const char * tag,
const char * prefix,
const char * type,
Sensor * obj )

Definition at line 12 of file sensor.cpp.

◆ state_class_to_string()

const LogString * esphome::sensor::state_class_to_string ( StateClass state_class)

Definition at line 39 of file sensor.cpp.