Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on autotune? #16

Open
GoNzCiD opened this issue Oct 6, 2020 · 3 comments
Open

Exception on autotune? #16

GoNzCiD opened this issue Oct 6, 2020 · 3 comments

Comments

@GoNzCiD
Copy link

GoNzCiD commented Oct 6, 2020

Hi, I've this exceptionin ha log. I think this is related with auto-tune option maybe?

2020-10-06 02:35:40 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/smart_thermostat/climate.py", line 433, in _async_control_heating
    await self.calc_output()
  File "/config/custom_components/smart_thermostat/climate.py", line 475, in calc_output
    if self.pidAutotune.run(self._cur_temp):
  File "/config/custom_components/smart_thermostat/pid_controller/__init__.py", line 286, in run
    amplitude_dev = ((0.5 * (abs_max - abs_min) - self._induced_amplitude)
ZeroDivisionError: float division by zero

This is the configuration:

  - platform: smart_thermostat
    name: Pid Study
    heater: input_boolean.thermostat
    target_sensor: sensor.beca_temperature
    min_temp: 15
    max_temp: 23
    ac_mode: False
    target_temp: 18.3
    keep_alive:
      seconds: 5
    pwm : 10
    autotune : ziegler-nichols
    noiseband : 0.5

Thanks

@HeimdallMidgard
Copy link

Hey, i have the same error. Did you find any solution?

@GoNzCiD
Copy link
Author

GoNzCiD commented Oct 27, 2020

Hey, i have the same error. Did you find any solution?

Unfortunately, not :(

@aendle
Copy link
Owner

aendle commented Jan 29, 2021

I'm reworking the autotune feature at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants