ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
filter.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::sensor
 

Functions

bool esphome::sensor::value_list_matches_any (Sensor *parent, float sensor_value, const TemplatableFn< float > *values, size_t count)
 Non-template helper for value matching (implementation in filter.cpp)
 
optional< float > esphome::sensor::throttle_with_priority_new_value (Sensor *parent, float value, const TemplatableFn< float > *values, size_t count, uint32_t &last_input, uint32_t min_time_between_inputs)
 Non-template helper for ThrottleWithPriorityFilter (implementation in filter.cpp)
 
void esphome::sensor::or_filter_initialize (Filter **filters, size_t count, Sensor *parent, Filter *phi)
 Non-template helpers for OrFilter (implementation in filter.cpp)
 
optional< float > esphome::sensor::or_filter_new_value (Filter **filters, size_t count, float value, bool &has_value)
 
optional< float > esphome::sensor::calibrate_linear_compute (const std::array< float, 3 > *functions, size_t count, float value)
 Non-template helper for linear calibration (implementation in filter.cpp)
 
optional< float > esphome::sensor::calibrate_polynomial_compute (const float *coefficients, size_t count, float value)
 Non-template helper for polynomial calibration (implementation in filter.cpp)
 

Variables

constexpr uint32_t esphome::sensor::FILTER_ID = 0