aendle / custom_components

missing feature test reposetory
66 stars 33 forks source link

Exception on autotune? #16

Open GoNzCiD opened 3 years ago

GoNzCiD commented 3 years ago

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 commented 3 years ago

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

GoNzCiD commented 3 years ago

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

Unfortunately, not :(

aendle commented 3 years ago

I'm reworking the autotune feature at the moment.