ESPHome
2024.11.2
|
A simple filter that multiplies to each value it receives by multiplier
.
More...
#include <filter.h>
Public Member Functions | |
MultiplyFilter (TemplatableValue< float > multiplier) | |
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 | |
TemplatableValue< float > | multiplier_ |
Protected Attributes inherited from esphome::sensor::Filter | |
friend | Sensor |
Filter * | next_ {nullptr} |
Sensor * | parent_ {nullptr} |
A simple filter that multiplies to each value it receives by multiplier
.
|
explicit |
Definition at line 296 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 298 of file filter.cpp.
|
protected |