15 switch (this->
type_) {
17 value = this->
parent_->get_output_value() * 100.0f;
20 value = this->
parent_->get_error_value() * 100.0f;
23 value = this->
parent_->get_proportional_term() * 100.0f;
26 value = this->
parent_->get_integral_term() * 100.0f;
29 value = this->
parent_->get_derivative_term() * 100.0f;
32 value = clamp(this->
parent_->get_output_value(), 0.0f, 1.0f) * 100.0f;
35 value = clamp(-this->
parent_->get_output_value(), 0.0f, 1.0f) * 100.0f;
38 value = this->
parent_->get_kp();
41 value = this->
parent_->get_ki();
44 value = this->
parent_->get_kd();
47 value = this->
parent_->get_threshold_high();
50 value = this->
parent_->get_threshold_low();
53 value = this->
parent_->get_kp_multiplier();
56 value = this->
parent_->get_ki_multiplier();
59 value = this->
parent_->get_kd_multiplier();
PIDClimateSensorType type_
void update_from_parent_()
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
ESPHOME_LOG_TAG(TAG, "pid.autotune")
@ PID_SENSOR_TYPE_DEADBAND_THRESHOLD_HIGH
@ PID_SENSOR_TYPE_PROPORTIONAL
@ PID_SENSOR_TYPE_DERIVATIVE
@ PID_SENSOR_TYPE_INTEGRAL
@ PID_SENSOR_TYPE_KI_DEADBAND_MULTIPLIER
@ PID_SENSOR_TYPE_KD_DEADBAND_MULTIPLIER
@ PID_SENSOR_TYPE_DEADBAND_THRESHOLD_LOW
@ PID_SENSOR_TYPE_KP_DEADBAND_MULTIPLIER