I have a raspberry pi thermostat that is plugged in through USB. Dealing with this voltage I don't want to "try and see what happens". My current setup is the Pi is powering the relay module through VCC on the module. What I want to do is remove the ac adapter and power the whole thing from the red power wire out of the wall.
Because no one wants a thermostat with a wire running down the wall. So any help would be greatly appreciated. I am also open to using any board arduino, pi or whatever. Currently targeting final build with pi zero W.