Below are the basic wiring diagrams for a thermostat on a standard air conditioning and heat pump HVAC systems. The wiring colors shown below are standard thermostat wiring colors for thermostat wire. The original installer of your thermostat may not have used these colors. Typical wire for Nest, Ecobee and Honeywell thermostats

Update amazon now offers a free smart home consultation

residential thermostat  A/C wiring diagram for one stage cooling one stage heating

residential thermostat Heat Pump wiring diagram for heat pump systems