I attempted something similar, at least on the nest side of things. I quickly realized the nest wouldn’t recognize any attached equipment unless connected to a 24vac line. I always wondered how the nest derived DC power to charge its internal battery when a common line was not used. Maybe I’ll research this some more and try again.