|
ESPHome 2026.3.2
|
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::initializer_list< 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_ |
Protected Attributes inherited from esphome::sensor::ValueListFilter | |
| FixedVector< TemplatableValue< float > > | values_ |
Protected Attributes inherited from esphome::sensor::Filter | |
| friend | Sensor |
| Filter * | next_ {nullptr} |
| Sensor * | parent_ {nullptr} |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::sensor::ValueListFilter | |
| ValueListFilter (std::initializer_list< TemplatableValue< float > > values) | |
| bool | value_matches_any_ (float sensor_value) |
| Check if sensor value matches any configured value (with accuracy rounding) | |
Same as 'throttle' but will immediately publish values contained in value_to_prioritize.
|
explicit |
Definition at line 287 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 291 of file filter.cpp.
|
protected |
|
protected |