Skip to content

Commit

Permalink
Fixed PID updating (#31)
Browse files Browse the repository at this point in the history
If temperature_sensor won't update frequently PID won't update its values
  • Loading branch information
krzysztofsk authored Oct 29, 2022
1 parent 92b5451 commit 52f32bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opentherm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ sensor:
entity_id: sensor.temperature_sensor
name: "Actual temperature"
unit_of_measurement: °C
- platform: template
id: temperature_sensor_interval
name: "Actual temperature interval"
lambda: |-
return id(temperature_sensor).state;
update_interval: 1s
- platform: pid
name: "PID Climate Result"
type: RESULT
Expand Down Expand Up @@ -133,7 +139,7 @@ climate:
min_temperature: 16 °C
max_temperature: 28 °C
temperature_step: 0.5 °C
sensor: temperature_sensor
sensor: temperature_sensor_interval
default_target_temperature: 20°C
heat_output: pid_output
control_parameters:
Expand Down

0 comments on commit 52f32bb

Please sign in to comment.