Earthing when two objects need to be earthed
All the earth connections should be to mains earth, as the transformer goes inside the unit there is still a risk that the mains wiring could fail to the casing of the device.