I use the Generic Thermostat to control my pool heater. Whenever I reboot or do an update, the heater kicks on and I have to stop it and reset the temperature. I know this has been mentioned before in other threads, but I haven’t seen it listed recently or in the “WTH” section. Apologies if this has already been discussed or dismissed.
Is that the state of sensor.pool_water_temperature_measurement?
If so then that is the case I believe. It returns as 0 when converted to a number.
I honestly think this is a bug in the generic thermostat then, it should discard non numeric characters.
There are ways around it in the mean time, but just confirm this is the state from the logs or history of the entity
I believe, if you set it to off then you need to turn on the climate entity before it starts regulating the heat.
I believe the temperature is between his thresholds but because it returns 0 at startup, it kicks in then remains on until it reaches the upper threshold.
When I look in history I only see line items for when I turned the heater off, not for when it started by itself after a restart of HA.
What’s interesting is that the thermostat is set to 86 degrees, which is a setting I have in my automations (both of which are disabled right now).
So on restart of HA, the generic thermostat is set to 86 degrees and kicks on, even when the prior state was off, temp was set to 70 and the automations were disabled.
Thanks by the way for the thoughts and suggestions, truly appreciate it.
It doesn’t appear to dip down to 0.
The automations are to turn the heater on and off on certain days in the summer. We don’t heat the pool non-stop. During peak summer months, we would heat the pool later in the day to ensure it was at our desired temp for after school/work. On Weekends we’d heat it earlier due to no school/work. If the temp was high enough it wouldn’t heat, if not it would heat to the set temperature. Then an automation would turn off the heater at sunset since we didn’t swim much after dark.
The automations will be disabled for winter and I will cut the power to the devices via the circuit breaker box (as part of the pool closing for the season).
Looking at that graph it’s quite obvious it heats the pool.
Your temperature is below the lower threshold.
So probably you have manually (or by automation) switched off the generic thermostat, when you restart the initial HVAC mode is heat, and the heating begins.
Not sure what (or if possible) will happen if you leave that line out.
Will it remember previous state? Doubt it…
But you could use the events homeassistant_stop and homeassistant_started events to set a boolean of the state it was at stop, then use start to set the climate entity to what it was prior to restart by looking at the boolean.
I ended up installing the automation suggested by akasma74 (on 1st April) in this tread for my units, so that they are restored to the same value after a restart.
So basically the step is to record/store every change to the thermostat and then use an automation to restore them after the restart