hi euro,
You can buy logic ic bi-stables, not very expensive, the bistable output would 'latch' the AC module.
If you bury electronics, you should use IP68 rated boxes/enclosures, pay special attention to earthing and use a RCCB.
Whats the system for?