ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
353 stars 50 forks source link

Unresponsiveness initial_hvac_mode: "off" #36

Closed Stefano0042 closed 2 years ago

Stefano0042 commented 2 years ago

Despite initial hvac_mode: is set to "off" after every new ha restart it remain on the old state. The same issue is involving target_temp: value.

Steps to reproduce the behavior: Restart Home Assistant OS: Raspberry PI OS All the browser HA ver.: core-2021.11.5

ScratMan commented 2 years ago

Hello, this is on purpose, the "restore" feature of the integration is called after HA restart to set all the main parameters to their last known states. Otherwise in case of HA crash with a restart while you're away the heating system would be stuck to off. This setting is used only when there is no old state data in the database.

If you really need the thermostat to be forced to off (no regulation, no heating) after HA restart, you may use an automation triggered by the HA boot event.

Stefano0042 commented 2 years ago

Hello, thank you for your fast reply, but it seem to be a misconception on my eyes, if we want the heating to be on after a restart or crash:
initial_hvac_mode: "heat" target_temp: ...desired temp °C