Most smart switches need a neutral wire attached to stay powered. Is that correct? The neutral wire for the circuit is located in the junction box that holds the light fixture, and the two wires coming down to the switch are the "hot" leg that will power the light.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.