swingerman / ha-dual-smart-thermostat

The `dual_smart_thermostat` is an enhaced verion of generic thermostat implemented in Home Assistant. It uses several sensors and dedicated switches connected to a heater and air conditioning under the hood.
https://github.com/swingerman/ha-dual-thermostat
Apache License 2.0
128 stars 21 forks source link

Always turn on Cool, regardless of last mode and doesn't revert to mode if HASS is restarted, not turn off when HASS shuts down #217

Closed kabongsteve closed 4 months ago

kabongsteve commented 5 months ago

1) I've noticed that when using turn_on it always starts in Cooling Mode.

When its dual mode I would hope it turns back on the same mode it was last running in. It would be great if it turned on to match the last mode it was operating in.

2) When HASS is restarted (software update etc) it always restarts in Off mode.

It would be great when re-started that it resumed the mode it was operating in when HASS shutdown.

3) It doesn't seem to react HASS Shutdown events Since it always turns off when shutdown and doesn't "resume" mode when HASS restarts, then it potentially should turn off the associated header/cooler on shutdown, so that state remains consistent across the devices.

For Context: I use it to control my Reverse Cycle AC, which has problem with maintaining consistent temp. I now use 3 temp sensors in my house (averaging) and feed those to ha-dual-smart-thermostat

I use dummy switches for heat or cool on/off, and these set the mode of the AC unit

I use automations ha-dual-smart on the switching between heat/idle/cool/idle to adjust the temp setting of the AC (AC setpoint is set to +/- 5 from the dual set point, thus making sure it heats, idles or cools)

Thus when HASS shuts down, the AC is left running, but ha-dual-smart-thermostat is turned off, so no longer managing the house temperature.

Adding an automation to re-turn on dual smart only sort of works, as it always restarts Cool, and its current;ly winter here in Oz

serlinGi commented 5 months ago

same doubt for me; In this period, since I'm not having time to properly fix the dual mode, I set my thermostat:

heat_cool_mode: false 
keep_alive: 
  minutes: 2
initial_hvac_mode: "cool" 
ac_mode: true

it works correctly but if I turn off the climate and restart the HA, the thermostat resets ON to Cool mode.

swingerman commented 5 months ago

@kabongsteve . Could you please post your current failing configuration? Tx.

kabongsteve commented 5 months ago

climate:

swingerman commented 5 months ago

If you set the initial_hvac_mode, the thermostat will activate that mode after startup or restart. You can just remove that from your config as the thermostat should remember the last used HVAC mode.

kabongsteve commented 5 months ago

I did as suggested and removed "initil_hvac_mode"

Unfortunately, it still restarts in "cold" mode

swingerman commented 4 months ago

I tried to reproduce the issue but it works on my end just fine if I remove the initil_hvac_mode setting.

Could you try to create a new config with a new unique_id and see if that works?