ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::exponential_moving_average Namespace Reference

Data Structures

class  ExponentialMovingAverageSensor
 
struct  ScaledDuration
 A duration in the largest of ms, s, min or h that keeps the value at 1 or more. More...
 

Enumerations

enum  TimeWeighting : uint8_t { TIME_WEIGHTING_NEW = 0 , TIME_WEIGHTING_PREVIOUS , TIME_WEIGHTING_LINEAR }
 Which value is assumed to apply during the time between two readings, when a time constant is used. More...
 

Functions

 ESPHOME_LOG_TAG (TAG, "exponential_moving_average")
 
const LogString * time_weighting_to_string (TimeWeighting weighting)
 
ScaledDuration scale_duration (uint32_t ms)
 

Enumeration Type Documentation

◆ TimeWeighting

Which value is assumed to apply during the time between two readings, when a time constant is used.

Enumerator
TIME_WEIGHTING_NEW 
TIME_WEIGHTING_PREVIOUS 
TIME_WEIGHTING_LINEAR 

Definition at line 14 of file exponential_moving_average_sensor.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::exponential_moving_average::ESPHOME_LOG_TAG ( TAG ,
"exponential_moving_average"  )

◆ scale_duration()

ScaledDuration esphome::exponential_moving_average::scale_duration ( uint32_t ms)

Definition at line 22 of file exponential_moving_average_sensor.cpp.

◆ time_weighting_to_string()

const LogString * esphome::exponential_moving_average::time_weighting_to_string ( TimeWeighting weighting)

Definition at line 11 of file exponential_moving_average_sensor.cpp.