I will use the generic thermostat to control my underfloor heating.
The generic thermostat should only be used if the input_boolean “Winterzeit” is on.
dont laught but I asked Copilot to write me an automation
I am not really aware if this code is correct or it will work…
Can anyone doublecheck and explain me if this will works:
thanks!
but if I change the heater to the input_boolean.winterzeit the generic thermostat dont know which entity should heat the room, or do I not understand it correctly
The automation you got is utter (€*#)#/+(@ - it looks nice but does not do anything useful. Asking the community to fix it is a waste of everybodies time.
What do you want the heating to do when the generic thermostat is not used? Turn off completely, set to no frost mode to prevent freezing, something else?
There is a climate service called set_hvac_mode. use an automation to turn it off when that input boolean goes from on to off, and then use another automation to set it to heat when the input boolean goes from off to on
That is a good way, but leaves the question - why the input_boolean? If it is a manual control you could set the hvac mode manually as well. If it is set by an automation, let the automation control the hvac mode directly.
there is maybe one little improvement possible.
I just recognized that the automation doesnt work if I restart HA or do an update of the yamls (and the winter boolean is on).
I need to turn the winter boolean off and on again so the generic thermostat cards showing againt that they are heating…
Is it possible to improve the automation so that after restart of HA / update yaml the automation will be triggered again?
If restarting Home Assistant affects the state of the Generic Thermostats, that’s likely due to how the Generic Thermostats are configured and not because of any deficiency in the automation.
Yes but that will only be bandaid and won’t prevent the issue from re-appearing elsewhere such as in other automations you create employing the thermostat.