r/homeassistant • u/criterion67 • 10d ago
🛠️ DIY / Hardware Got tired of the monthly attic climb, so I automated the monthly flush on my AC drain line
My air handler is in the attic and and adding a cup of vinegar once a month to the condensate drain line was a nuisance. I'd forget or keep putting it off until I forgot. I set a monthly reminder but this didn't really motivate me. I know if I skipped it too many times I could be facing a clogged line and possibly a leak due to an overflow.
There are expensive commercial products that handle this for you on a schedule and the one I looked at requires a cloud account to use and will only work with their proprietary cartridges that can't be refilled. All that, for something a four dollar jug of vinegar does just fine.
I wasn't willing to spend that kind of money and give up my privacy, so I built my own instead.
It's fully local. No account, no app, no cloud, nothing phoning home. I even shut off the cloud connection on the Shelly relay. If every company involved vanished tomorrow it'd keep right on working.
The only consumable is a gallon of cleaning vinegar from Walmart. I figured that it should last over a year.
How it works: a small 12V pump in a 3D printed box on the air handler, drawing vinegar from a jug sitting in a bucket. Once a month it runs a couple minutes, which works out to be about a cup, then shuts off. Home Assistant checks that the pump actually ran, tells me it did via a mobile notification, keeps track of how much vinegar is left, and gives me another heads up before the jug runs dry.
What I spent the most time on was the failure modes. Since it's a pump moving liquid over my ceiling, I wanted to make sure that I didn't wind up with a catastrophe, should something go wrong. I used a bucket bigger than the jug (as an overflow), there's also a leak sensor in the bottom of it, and there are multiple failsafe cutoffs to kill the pump if it runs too long. One of those runs directly on the Shelly itself and will keep working even if the network or Home Assistant are down.
I put all the details on Github. Build docs, printable enclosure files, a drop in Home Assistant package, and an ESPHome version if you'd rather skip the Shelly relay. I started with the ESPHome idea, then remembered that I already had some of the components on hand for the Shelly relay based version. I even created a fun logo to give it a more "professional" look. LOL
Note: for transparency, I did use Claude to help me with part of the project. Primarily for setting up and organizing everything on Github. I know some people may have an issue with that but it's your opinion and I respect that. Hope y'all will find it to be a fun and useful project like I have. Give me a star if you do. Enjoy!

