The transformer (black box) takes AC input directly from high voltage.
Would double check your voltages etc. But in general, this black box has a white, grey, and black wire. White wire would connect to your white/neutral AC wire. You would then connect the grey OR the black wire to your live...