16 if (std::isnan(
value)) {
37 this->last_update_ = now;
39 this->
publish_state((value - old_value) / dt_ms * ms_per_unit);
uint32_t IRAM_ATTR HOT get_loop_component_start_time() const
Get the cached time in milliseconds from when the current component started its loop execution.
void process_sensor_value_(float value, float ms_per_unit)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
ESPHOME_LOG_TAG(TAG, "derivative")
Application App
Global storage of Application pointer - only one Application can exist.