|
ESPHome 2025.12.0-dev
|
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. | |
| 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 227 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 229 of file filter.cpp.
|
protected |