Referencing another post here for the same issue, just thought my title makes more sense
I have a few generic thermostats that are turned off and on as needed. Them spend most of their time off. Lately I’ve noticed that the associated switches for some of them, which I manually turn on and off a lot of the time, have been getting turned off automatically.
The message in the logs looks like this:
[homeassistant.components.generic_thermostat.climate] The climate mode is OFF, but the switch device is ON. Turning off device switch.sonoff_10017c36c2
This is like 3 hours after I’d turned on the switch but not the thermostat. Thermostat had been off for 9 hours or so.
Anyone know how to stop the generic thermostat from risinf from the grave and flipping my switches?
This is great if this happens.
I think the thermostat should do it much quicker.
I actually filed a bug report on this a few months ago. As I see it, if the thermostat is off or the temperature is above set point then the generic thermostat should switch off the heater if it was turned on.
As I see it the thermostat should govern the temperature and heater.
Allowing the user to fiddle with the heater manually should not be allowed.
Maybe I was unclear. This is during instances where the gen thermostat is OFF and I want to manually turn a device on and keep it on. Otherwise, if you’ve got a gen thermostat coded in your configuration file any device it refers to is permanently governed by that thermostat. Kinda limiting…
Why would this be limiting?
You use a thermostat by changing the setpoint.
Just like any other heater.
If you look at water radiators, do you have an “on” button?
Underfloor heating? Does it have a on button?
A space heater might have a simple on/off, but most have a thermostat.
If you set up a generic thermostat then you do that with the intention to use the thermostat, right?
What if you accidentally turn on the heater when the temperature is above the setpoint, do you really feel that is appropriate that HA just leaves it on forever (or until restart/reload config)?
If a restart or config reload makes the device switch off then that is because the device should not be on.
That to me seems obvious that there is a bug.
I can’t find any reason why you would want to allow manual control by default since it can only risk an out of sequence setting (where heater is on at over temp, or off when under temp).
A thermostat should be controlled by the setpoint. If the thermostat is off then the heater should be off.
Just like any other thermostat.
If you turn the water radiator thermostat to 0 then you can’t manually feed water in the radiator.
As said, I find this a bug, but if you want manual control then I could see a third option on the generic thermostat “manual”.
But on and off is in my opinion reserved for auto mode or off.
You have some really strong feelings about this. There are cases where a device that’s used in an HA thermostat might need manual control from the user.
My two use cases are as follows:
I have a hot water cylinder with a built in analog thermostat set to max. Attached to this is a sonoff switch with a temp probe that I use to control the HWC temperature.
This switch is the target of two different thermostats actually, depending on if I’m heating the HWC to shower temperature or if I have an abundance of solar power so I let it get to max temperature.
But sometimes I just want to turn that switch on and let the HWC’s thermostat govern it at max. Perfectly safe.
Also, because there’s two thermostats targeting this switch the one thermostat might be running when the the other, completely OFF, thermostat turns the damned switch off.
Another use case is my office heater. It’s a dumb heater with a switch and a dial. Dial is set to max. It’s plugged into a smart power socket and my HA speaks to a Govee BT thermometer display on my desk. Together these three make a smart thermostat heater. But sometimes I just want to turn the heater on and let it run.
If this is a bug so be it, but I don’t think that once a user has integrated a switch into an HA thermostat that isn’t always in use that switch shouldn’t be able to be run manually.
This has occurred to me in the meantime and is a solution to me having so many thermostats for the same device.
That being said, an “OFF” thermostat should either block the use of the associated entity completely, so that its obvious. Or should leave it alone. Not wait an unspecified amount of time before turning the entity off.
I currently don’t need the smart plug for my bedroom heater so I’ve repurposed it as a power meter for a heated towel rail. But wouldn’t you know it, I have a to go edit the configuration file and remove that thermostat else the damned thing turns my switch off for no good reason…