void process_sensor_value_(float value, float ms_per_unit)
void dump_config() override
MS_PER_UNIT is the configured time unit in milliseconds, a constant rather than a member.
DerivativeSensor(sensor::Sensor *source)
Base-class for all sensors.
void add_on_state_callback(F &&callback)
Add a callback that will be called every time a filtered value arrives.
float state
This member variable stores the last state that has passed through all filters.