How to automate condensation water collection from your A/C unit

Bill of materials

  • A ZigBee relay switch. I went with a SONOFF one.
  • A ZigBee water leak sensor. My choice was Aqara.
  • A a decorative water stream pump / a fishtank pump.
  • A buffer tank.
  • A large bucket for water collection.
  • Some Scotch tape.
  • Something to prop your compressor above the buffer tank.
  • A short length of garden hose.
  • Something to hold the hose tight in the bucket.

Assembly

  • Place the pump inside the buffer tank, level with the floor. This pump will be immersed in the water — and it should never be run dry.
  • Connect the hose to the pump outlet.
  • Place the buffer tank below the prop-up. Make sure the hose can escape it.
  • Place your A/C compressor above the prop-up. Line it up so that the run-off valve drips into the buffer tank.
  • Connect the pump to the ZigBee relay, and connect the ZigBee relay to power. Pair the relay in ZHA.
  • Pair the water leak sensor in ZHA, and tape it so that it floats sort of level with the water as it rises.
  • In this scenario I have it taped such that the tape is stuck to the belly of the sensor it (not covering the metal contacts) then snakes above and both ends stick to the prop-up. I used this method because it was easy to shove the sensor in vertically while holding both sides of the tape, then when the sensor was fully through the slats, I could flatten it by wiggling the tape.
  • The idea of the sensor here is that the water will touch both contacts roughly at the same time and activate the sensor, when it rises sufficiently.
  • Put the bucket nearby.
  • Put the other end of the hose in the bucket, affixing it to the top rim. You never want the tip of the hose to go into the water as the bucket fills up. If that happens (bonus points if you can figure out why that’s bad) you are having a bad day and you will not go to space today.

That is all you need to do for assembly.

For actual automation software, the simplest choice is two automations:

  1. Turn the pump relay off when the sensor changes from anything to wet. The same automation should wait ~15 seconds (you calibrate this according to your buffer tank) and turn the pump relay off. This prevents the pump from running with a dry buffer tank.
  2. Turn the pump relay on every 5 minutes if the sensor is stuck in wet state. This covers the case when there is copious runoff from the air conditioning unit, and 15 seconds weren’t enough to dry up the sensor.

I have a Node-RED automation slightly more complex. This is the logic (I hope it’s self-explanatory):

The full post is here: https://rudd-o.com/linux-and-free-software/cant-hang-your-air-conditioner-outdoors-heres-how-you-collect-the-condensed-water-ha-style. The post contains Node-RED automation you can copy/paste — will need obvious modifications to work in your setup.