The idea here is to detect when the compressor turns off at the end of a cycle, and turn off the power so that it doesn’t restart after 3 minutes, allowing for the water in the whole system to cool down a bit. Then, after some reasonable length of time (10 minutes is decent), turn the power back on.
This was explored more fully in this topic I mentioned before:
Solution can be done with hardware, as Ringi and John proposed, or possibly via Modbus. I did something similar via Mitsubishi’s cloud service.