Do people want this? Maybe I want both warmth and fresh air in the room? And I foresee the day where the window sensor is faulty. I'm shivering in bed as I have an argument with my furnace about which one of us should be in charge of setting the temperature in my bedroom.
Hass just sends on/off commands to a self-contained thermostat in response to window sensor state change events. If it fails, you can still manually go to the thermostat and set it to whatever you want.
For a more advanced use case I’ve recently set it up so that the thermostat logic is within HASS. An automation driven by a binary switch helper then switches the thermostat to a fixed hot or cold value for heat and AC. Then I can feed the HASS thermostat with whatever temperature sensor data I want, like an average of multiple sensors around the house. All this is totally optional though if you just want to control the thermostat from within HASS.
https://www.home-assistant.io/integrations/venstar/
I've not used it (I installed one because I wanted scheduling and liked that it had further possibilities and wasn't overly expensive).
People have also built a variety of presence sensors for beds. With pressure sensors and such. Or if you have a Sleep Number bed, it also has presence detection. You could also do things like detecting phone is in the room and plugged in as a rough equivalent for presence of the person.
If there was a need for a UI I'd probably enable the HomeKit Bridge extension and let them control it via HomeKit (with only specific entities whitelisted) so that 1) they don't have to suffer through the eyesore that is Material Design and 2) don't get confused by a lot of the internal, read-only entities.
The advantage of a fully local, self-contained system is that you can treat it as an appliance - you don't have to update or tinker with it continuously. There's no reason for it to update or brick itself.
A friend of mine still has a Home Assistant set up from now almost 3 years ago running with no updates or anything - it just acts like a PLC to manage some lights, switches and toggles heating on/off based on window sensors. Nobody has to mess with it and it just works in the background.