Skip to content

Commit

Permalink
Merge PR from @lexyan + update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemezzadri committed Feb 26, 2024
1 parent bd68cc8 commit 82585d2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 56 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ Configuration variables:
- **ki** (_Optional_, float): The factor for the integral term of the heating curve. Defaults to 0.
- **output_parameters** (_Optional_): Output parameters of the controller (see [below](<#setpoint-calibration-factors>)).
- **minimum_output** (_Optional_, float): Output value below which output value is set to zero. Defaults to 0.1.
- **maximum_output** (_Optional_, float): Output value above which output value won't go (cap). Defaults to 1.
- **heat_required_output** (_Optional_, float): Minimum output value to be considered when the _Heat Required_ switch is on. Defaults to 0.1.
- **output_factor** (_Optional_, float): Calibration factor of the output. Defaults to 1.
- **output_offset** (_Optional_, float): Calibration offset of the output. Defaults to 0.
- All other options from [Climate](<https://esphome.io/components/climate/index.html#config-climate>)
Expand Down Expand Up @@ -229,7 +231,7 @@ Configuration variables:

- **name** (**Required**, string): The name of the switch.

When the switch is on, the boiler will run at the minimum power defined by the `minimum_output`parameter.
When the switch is on, the boiler will run at the minimum power defined by the `heat_required_output` parameter.

## `heat_curve_climate` Sensor

Expand Down
50 changes: 0 additions & 50 deletions README_fr.md

This file was deleted.

2 changes: 0 additions & 2 deletions common/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
api:
reboot_timeout: ${reboot_timeout}
# password: !secret api_password
encryption:
key: !secret esphome_encryption_key
2 changes: 1 addition & 1 deletion common/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<<: !include wifi.yaml
<<: !include api.yaml
<<: !include ota.yaml
#<<: !include web_server.yaml
<<: !include web_server.yaml
10 changes: 8 additions & 2 deletions components/heat_curve_climate/heat_curve_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,14 @@ void HeatCurveClimate::update() {

// shutdown boiler if outdoor temperature is too high or output below minimum value
if (this->outdoor_temp_ > this->target_temperature - 2 || output < this->minimum_output_) {
ESP_LOGD(TAG, "Forcing minimum output or IDLE");
output = this->heat_required_ ? this->heat_required_output_ : 0;
ESP_LOGD(TAG, "Forcing IDLE");
output = 0;
}

// if heat required by switch, minimum output is heat_required_output_
if (this->heat_required_ && output < this->heat_required_output_) {
ESP_LOGD(TAG, "Forcing heat required minimum output");
output = this->heat_required_output_;
}

// Recalculate actual water temperature (knowing that the output is an integer)
Expand Down

0 comments on commit 82585d2

Please sign in to comment.