Allow updating pid control params (#1115)
This commit is contained in:
1 parent
e6f42fa6f0
commit
351ecf9bd4
6 files changed
+92
No files matched your search
@@ -35,6 +35,18 @@ void PIDClimateSensor::update_from_parent_() {
|
||||
case PID_SENSOR_TYPE_COOL:
|
||||
value = clamp(-this->parent_->get_output_value(), 0.0f, 1.0f);
|
||||
break;
|
||||
case PID_SENSOR_TYPE_KP:
|
||||
value = this->parent_->get_kp();
|
||||
this->publish_state(value);
|
||||
return;
|
||||
case PID_SENSOR_TYPE_KI:
|
||||
value = this->parent_->get_ki();
|
||||
this->publish_state(value);
|
||||
return;
|
||||
case PID_SENSOR_TYPE_KD:
|
||||
value = this->parent_->get_kd();
|
||||
this->publish_state(value);
|
||||
return;
|
||||
default:
|
||||
value = NAN;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user