Skip to content

Exception on autotune? #16

@GoNzCiD

Description

@GoNzCiD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions