|
ESPHome 2025.10.5
|
Same as 'throttle' but will immediately publish values contained in value_to_prioritize.
More...
#include <filter.h>
Public Member Functions | |
| ThrottleWithPriorityFilter (uint32_t min_time_between_inputs, std::vector< TemplatableValue< float > > prioritized_values) | |
| 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 | |
| uint32_t | last_input_ {0} |
| uint32_t | min_time_between_inputs_ |
| std::vector< TemplatableValue< float > > | prioritized_values_ |
Protected Attributes inherited from esphome::sensor::Filter | |
| friend | Sensor |
| Filter * | next_ {nullptr} |
| Sensor * | parent_ {nullptr} |
Same as 'throttle' but will immediately publish values contained in value_to_prioritize.
|
explicit |
Definition at line 337 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 341 of file filter.cpp.
|
protected |
|
protected |
|
protected |