ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
336 stars 48 forks source link

Not able to switch pid-mode to auto #102

Closed jorometala closed 1 year ago

jorometala commented 1 year ago

Describe the bug After autotune successfully done pid mode automatically is set to auto which is good. But if i set , k params in config.yaml and restart HA, autotune start over, If autotune is disabled in config I'm not able to switch to pid mode auto. Service executes without error but pid-mode stays off

To Reproduce 1 set K params manually in config 2 set pid-mode to auto

Expected behavior Pid mode in the status entity to be set to auto

Additional context

ScratMan commented 1 year ago

Hi, please post your configuration Yaml once auto-tune is disabled.

jorometala commented 1 year ago

Here is the configuration.yaml ` climate:

and the status of the entity after I trigger the pid_mode set service to auto ` hvac_modes:

ScratMan commented 1 year ago

Please try commenting the autotune: "off" line in configuration Yaml.

jorometala commented 1 year ago

I have done it and restarted HA. Here is the result: `hvac_modes:

jorometala commented 1 year ago

actually after turning pid_mode to auto from the service this time make a difference and: `hvac_modes:

` do you see anything wrong in these values?

ScratMan commented 1 year ago

OK, understood. The autotune: "off" line will try to enable the autotuner with the "off" rule that doesn't exist, so the PID is forced off until the auto-tune is done, but autotuner remains off because rule is not recognised.