ESPHome
2024.11.2
|
A simple filter that only forwards the filter chain if it doesn't receive value_to_filter_out
.
More...
#include <filter.h>
Public Member Functions | |
FilterOutValueFilter (std::vector< TemplatableValue< 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. More... | |
void | input (float value) |
void | output (float value) |
Protected Attributes | |
std::vector< TemplatableValue< float > > | values_to_filter_out_ |
Protected Attributes inherited from esphome::sensor::Filter | |
friend | Sensor |
Filter * | next_ {nullptr} |
Sensor * | parent_ {nullptr} |
A simple filter that only forwards the filter chain if it doesn't receive value_to_filter_out
.
|
explicit |
Definition at line 301 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 304 of file filter.cpp.
|
protected |