8static const char *
const TAG =
"pid.sensor";
16 switch (this->
type_) {
void add_on_pid_computed_callback(std::function< void()> &&callback)
float get_proportional_term() const
float get_error_value() const
float get_derivative_term() const
float get_integral_term() const
float get_output_value() const
PIDClimateSensorType type_
void update_from_parent_()
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
@ PID_SENSOR_TYPE_PROPORTIONAL
@ PID_SENSOR_TYPE_DERIVATIVE
@ PID_SENSOR_TYPE_INTEGRAL
Providing packet encoding functions for exchanging data with a remote host.
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)