Skip to content

Commit 5584dab

Browse files
authored
Update temperature_pid.yaml
respect pwm_minimum setting
1 parent 8bba778 commit 5584dab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/temperature_pid.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ number:
141141
- platform: template
142142
entity_category: config
143143
name: PWM Minimum
144+
id: pwm_minimum
144145
min_value: 0
145146
max_value: 30
146147
step: 1
@@ -156,6 +157,10 @@ output:
156157
float write_val =
157158
(id(manual_fan_control).state) ?
158159
id(manual_fan_control).speed : state*100.0;
160+
float pwm_min = id(pwm_minimum).state;
161+
if (write_val > 0.0 && write_val < pwm_min) {
162+
write_val = pwm_min;
163+
}
159164
if (id(pid_control_fan1).state) {
160165
if (write_val == 0.0) {
161166
id(fan1).turn_off().perform();
@@ -332,4 +337,4 @@ button:
332337
- platform: template
333338
name: "PID Climate Autotune"
334339
on_press:
335-
- climate.pid.autotune: console_thermostat
340+
- climate.pid.autotune: console_thermostat

0 commit comments

Comments
 (0)