this post was submitted on 01 Sep 2025
50 points (98.1% liked)

Selfhosted

51079 readers
2071 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have a pretty simple smart thermostat without many fancy features. Every Spring and Fall I tell myself I should set up some kind of system where if the outdoor weather is good enough, maybe I dial back the heating / cooling, maybe send myself a text to open windows, etc.

Small example: I normally keep my house at 72 in the summer, but if it's up to 76 or so outside, it'd be nice if the thermostat turned off the cooling. I could manually turn it back on if I have guests over, etc.

I'm sure some of this logic would be easy to code myself, but wanted to check out what anyone else is doing first.

Using home assistant.

you are viewing a single comment's thread
view the rest of the comments
[–] a1studmuffin@aussie.zone 26 points 21 hours ago* (last edited 21 hours ago) (2 children)

I went down this rabbit hole a few years back. I'm in a house with 3 separate HVAC split systems over 2 floors, and we always had large temperature differentials and needed to constantly manage HVAC settings.

My goal was to never need to touch the settings for any of the HVAC units all year round, and I had plans to automate my windows so if it was nice outside, the house would ventilate automatically... but only if the pollen count was low, as I have allergies.

It became clear very early on that using the standard Home Assistant automation logic wasn't going to be adequate for my needs, so I ended up running a Python script every half hour that reassessed the state of all sensors, using whatever crazy logic I dreamed up, then decided what actions to perform (if anything).

The general approach worked well, though I hit two snags and lost interest:

One was finding a (cheap) solution to physically open and close my roller windows. I came close, but didn't want to make any permanent changes and had concerns about home insurance, so ultimately chickened out there. Everything still worked without this, but it would have been pretty cool to open windows automatically on a nice day for fresh air.

The other snag was more fundamental - I don't think it's possible to have a perfect temperature, even for one person. If I'm sitting still for long periods, I tend to want warmer temps. If I'm cleaning the house, I want cooler temps.

Ultimately my "ruleset" for the perfect solution became more and more complex, with edge cases and bugs popping up as the months rolled on, and it became clear I couldn't represent this problem with a set of sensor inputs.

It was a fun experiment and I learned a lot, but I ended up going back to simpler automation rules after a while, like just turning on the heater in the morning if it's cold, or vice versa. Solve the biggest problems first.

I think trying to automate to the extreme is sometimes a trap. Our hacker mindset wants the problem to be perfect and solveable, when in reality us humans are fickle creatures whose wants and whims change on the regular, and that can't be captured easily in zeros and ones.

[–] a1studmuffin@aussie.zone 14 points 21 hours ago (1 children)

Here's a screenshot of what my diagnostic interface for it looked like. The Python script took all the sensors as inputs and decided on a strategy for upstairs and downstairs, and gave the reason for its decision in a separate sensor for debugging purposes. The script performed all the necessary actions whenever it changed strategy.

[–] keepee@lemmy.world 2 points 19 hours ago (1 children)

Nice! Which sensor did you use for pollen?

[–] a1studmuffin@aussie.zone 3 points 18 hours ago

I cheated and just used a webscraper to pull the data from a local government website.

[–] DaGeek247@fedia.io 2 points 16 hours ago

My goal was to never need to touch the settings for any of the HVAC units all year round,

I got a lot more luckier than you. I have a single floor, three bedroom place. All I needed to get my setup to an acceptable level was a programmable thermostat.

The other snag was more fundamental - I don't think it's possible to have a perfect temperature, even for one person. If I'm sitting still for long periods, I tend to want warmer temps. If I'm cleaning the house, I want cooler temps.

I set my temps for warmer in the afternoon, cooler in the evening/night, and semi-warm again in the morning. It's not perfect, but it makes getting to sleep and waking up a lot easier.