It's possible to design a safe system with true isolation between AC and DC and two separate grounding systems. Is that correct? It's not a good idea to connect the AC ground to the 24VDC power supply's positive or negative connection.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.