In my house in Florida, I had a heat recovery system hooked up to the condenser of the air conditioner. It was a commercially available system that had a taco pump in the box outside as well as a heat exchanger. The hot line from the Condenser was routed to one side of the heat exchanger and contained refrigerant. The other side of the heat exchanger was a loop that went from the bottom of the water heater thru the heat exchanger and back to the top of the water heater. I have worked on a number of these systems when replacing water
heaters, and what I did was to first remove the cheap boiler drain at the bottom of the heater, install a brass nipple of appropriate length to extend just past the outside of the metal, then add a brass tee. One side of the tee gets a street ell, close nipple, full port ball Valve, and hose adapter. The other side gets fittings to connect to loop running to heat exchanger, usually 1/2" soft copper, but I have seen pex used, but worry about high temps. On the top of the tank, you have to remove the plastic heat trap, this is usually a flap inside an insert, if you don't remove this, the water has a hard time flowing back into the tank. A simple tee at the top allows connection to heat recovery loop. The box outside has a thermometer attached to the lines to control operation. My
experience with the one on my water heater was great, I shut off the breaker in the summer and never had a problem with lack of hot water. I will say this tho, I have replaced a fair number of pumps, but most repairs were to replace the pipes on the water loop side, for whatever reason, the pipes on the heat exchanger loop failed whereas the rest of the house plumbing was fine. So, there is a commercially available product out there that may work for you. It's not designed for your application, but may work. The way I see it, is you would need a loop in the mound with a pump to circulate fluid on the side normally used for refrigerant, this is normally a passive side since the AC condenser pump moves the freon. The loop to water heater would function as designed, the pump inside the unit moves water In the water heater loop. All of the systems I have seen were on a conventional water heater, taking cooler water from the bottom and dumping hotter water back in the top. I always provide a full port ball valve on the bottom so the heater can be flushed, important when sending water through the heat exchanger. Some units I have seen have a filter to trap sediment before the heat exchanger, not one customer had any idea how to service the heat recovery system, and a couple were never even turned on because the plumber had no idea either. So, flush heater regularly, and inspect and replace anode rod if necessary.
Travis is correct In stating the need for controls, but if you can find a heat recovery unit, they are built in. This is definitely a
project for someone with advanced diy experience! I have worked on these systems and used one myself, so I would be very comfortable adapting one for an alternative energy project, but would recommend caution to anyone who has never touched one, or with little plumbing experience.
One other thing, with the efficiency of AC systems increasing (high seer ratings), I don't see heat recovery systems on water heaters any more because of less waste heat being seen at the condenser. You won't see these units at a big box store, I'd look
online if you go this route, unless you can buy from a supply house. Search for "AC heat recovery". If you are really handy, you could look for a used unit and take it apart and refurbish it.
Good luck, and let us know how you ended up making this work.
Kevin