So... This thread has already decided to emphasize on how to flick a damb isolated switch (opto isolators) instead of considering over-all control topology.(Poor planing on your part does not create an emergency on my part!)
Sad... soo much potential, soo much energy lost...
Well, to start with, I disagree with your premise that it should be PC based. I would never trust control of anything important to a PC - they are fine for receiving data dumps and compiling reports, but these little controllers (smart relays) are meant for an industrial base that is far less tolerant of glitches than any growing operation. And since they all have their own proprietary software, spending a lot of time flogging a front-end is a waste of time.