For anyone with an air handler in a hot attic, the monthly job of pouring vinegar into an AC drain line can be easy to delay until a blockage or leak becomes a real problem. One homeowner decided to avoid that cycle by automating the chore.
Rather than use an off-the-shelf product, the DIYer put together a fully local system that uses a small pump, a jug of cleaning vinegar, and several smart home protections to help keep the condensate line clear.
Here's what to know
Writing on Reddit, the original poster said the attic location of the air handler made it easy to skip regular maintenance, even though that could eventually mean "a clogged line and possibly a leak due to an overflow."


They said the homemade setup is built around a 12-volt pump housed in a 3D-printed box. The pump pulls vinegar from a gallon jug placed inside a larger bucket, then runs once a month for a few minutes to send about a cup through the line.
According to the poster, one gallon should last more than a year, and they saw no need to pay more when a "four dollar jug of vinegar does just fine." The commercial product they considered also required a cloud account and used proprietary cartridges that could not be refilled.
"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 original poster explained.
More background
The discussion around the project expanded into a broader conversation about how regional this kind of AC maintenance can be. Several commenters noted that regular drain line cleaning is routine in hot, humid parts of the United States, especially in places such as Florida, Texas, and along the Gulf Coast.
"Everyone in Florida has to do this like monthly," one commenter wrote.
Another explained, "Correct. Slime mold builds up in the drain lines in Florida and needs to be periodically flushed to prevent backups."
Others disagreed, saying they had never needed to do it, particularly in drier climates. The comments suggested that the need varies by humidity, system design, and where the unit is installed.
One commenter said a technician told them flushing the drain line monthly was "the single largest cost saver" because "it cost $300-$400 for a tech to come out and do it and the drain line is not covered under warranty."
What can be done?
Small preventive tasks can help avoid expensive repairs, water damage, and the inconvenience of a shut-down AC system during hot weather.
To reduce the risk of automating a liquid-based task above a ceiling, the system places the vinegar jug inside a larger overflow bucket, adds a leak sensor at the bottom, and uses backup cutoffs that stop the pump if it runs too long. Those safeguards are meant to make the setup safer.
The original poster also shared, via GitHub, printable enclosure files, build docs, a Home Assistant package, and an ESPHome version.
Even without building an automated system, regular maintenance with inexpensive vinegar may help prevent a costlier service call in areas where condensate-line clogs are common.
"No joke, I just had my line back up because I didn't do this," one commenter wrote.
Where can I learn more?
For more on AC upkeep, these stories dig into some of the same homeowner concerns.
• A simple trick to flush out buildup can clear AC drain line gunk before backups start.
• One homeowner's simple change can help the AC drain better and avoid costly service calls.
• In Florida, HVAC pros said the viral AC saver is worth skipping altogether.
• One composter turned AC water leakage into a practical boost for backyard composting.
• Using your AC's little-known setting can curb moisture and mold indoors.
Get TCD's free newsletters for easy tips, smart advice, and a chance to earn $5,000 toward home upgrades. To see more stories like this one, change your Google preferences here.







