mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Allow updating pid control params (#1115)
This commit is contained in:
committed by
GitHub
parent
e6f42fa6f0
commit
351ecf9bd4
@@ -169,6 +169,13 @@ api:
|
||||
then:
|
||||
- tm1651.turn_off:
|
||||
id: tm1651_battery
|
||||
- service: pid_set_control_parameters
|
||||
then:
|
||||
- climate.pid.set_control_parameters:
|
||||
id: pid_climate
|
||||
kp: 1.0
|
||||
kd: 1.0
|
||||
ki: 1.0
|
||||
|
||||
wifi:
|
||||
ssid: 'MySSID'
|
||||
@@ -681,6 +688,17 @@ climate:
|
||||
away_config:
|
||||
default_target_temperature_low: 16°C
|
||||
default_target_temperature_high: 20°C
|
||||
- platform: pid
|
||||
id: pid_climate
|
||||
name: "PID Climate Controller"
|
||||
sensor: ha_hello_world
|
||||
default_target_temperature: 21°C
|
||||
heat_output: my_slow_pwm
|
||||
control_parameters:
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
@@ -761,6 +779,11 @@ output:
|
||||
id: dimmer1
|
||||
gate_pin: GPIO5
|
||||
zero_cross_pin: GPIO12
|
||||
- platform: slow_pwm
|
||||
pin: GPIO5
|
||||
id: my_slow_pwm
|
||||
period: 15s
|
||||
|
||||
|
||||
mcp23017:
|
||||
id: mcp23017_hub
|
||||
|
Reference in New Issue
Block a user