if you don't feel comfortable with 500V lines and you don't want to messing around making your own PCB circuit , you need a minimum voltage relay. Something like this one:

They are not cheap, but you can set options such as the delay time and a precise range of voltages to operate with it. For 500VAC, if the relay can't handle the voltage or current, you can cascade the output with a suited relay, if you are in a 3-phase environment you need a "contactor" or power relay. Also, I wanted to mention that "safe voltages" are from 0 up to 49V max in AC at 50Hz (which in my country are required to be used by law in industrial applications and signaling).
This solution is probably the simplest and safest: 3 relays and you are good to go and that particular relay is guaranteed it will work. Another simpler option could be a rotary switch: they ensure
at least 4mm of space from the live contacts and yep that's why rotary switches are used: to ensure that it's not live or goes live in any way unless the rotary switch is used, for safety reasons, NEVER use breakers for sectioning a circuit: they do not provide a sufficient safe distance between the switch contacts, because they are designed to break the circuit if something malfunction.