ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
338 stars 49 forks source link

Attributes are not updated after a calculation #39

Closed bamnoru closed 2 years ago

bamnoru commented 2 years ago

Hi,

Describe the bug Attributes (control_output, pid_p, pid_i, pid_d) are not updated after a calculation. Wait for a temperature update, attributes are updated.

Expected behavior After each PID and output calculation, update attributes.

Additional context Maybe, add at the end of "calc_output", line #804 : await self.async_update_ha_state()

ScratMan commented 2 years ago

Should be fixed by this commit

ScratMan commented 2 years ago

Hello @bamnoru , please try this beta release : https://github.com/ScratMan/HASmartThermostat/releases/tag/2021.12.2-beta1

bamnoru commented 2 years ago

Hi @ScratMan , Thanks a lot. Beta version installed. Attributes are updated more frequently. Need to wait, the major issue was when the control_output return to 0.

bamnoru commented 2 years ago

Hi,

Works fine, now, I can have some charts to analyse PID values and tune it.