ESPHome 2026.5.3
Loading...
Searching...
No Matches
esphome::sensor::FilterOutValueFilter< N > Class Template Reference

A simple filter that only forwards the filter chain if it doesn't receive value_to_filter_out. More...

#include <filter.h>

Inheritance diagram for esphome::sensor::FilterOutValueFilter< N >:
esphome::sensor::ValueListFilter< N > esphome::sensor::Filter

Public Member Functions

 FilterOutValueFilter (std::initializer_list< TemplatableFn< float > > values_to_filter_out)
 
optional< float > new_value (float value) override
 
- Public Member Functions inherited from esphome::sensor::Filter
virtual void initialize (Sensor *parent, Filter *next)
 Initialize this filter, please note this can be called more than once.
 
void input (float value)
 
void output (float value)
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::sensor::ValueListFilter< N >
 ValueListFilter (std::initializer_list< TemplatableFn< float > > values)
 
bool value_matches_any_ (float sensor_value)
 Check if sensor value matches any configured value (with accuracy rounding)
 
- Protected Attributes inherited from esphome::sensor::ValueListFilter< N >
std::array< TemplatableFn< float >, N > values_ {}
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

template<size_t N>
class esphome::sensor::FilterOutValueFilter< N >

A simple filter that only forwards the filter chain if it doesn't receive value_to_filter_out.

Definition at line 359 of file filter.h.

Constructor & Destructor Documentation

◆ FilterOutValueFilter()

template<size_t N>
esphome::sensor::FilterOutValueFilter< N >::FilterOutValueFilter ( std::initializer_list< TemplatableFn< float > > values_to_filter_out)
inlineexplicit

Definition at line 361 of file filter.h.

Member Function Documentation

◆ new_value()

template<size_t N>
optional< float > esphome::sensor::FilterOutValueFilter< N >::new_value ( float value)
inlineoverridevirtual

Implements esphome::sensor::Filter.

Definition at line 364 of file filter.h.


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