Wiring guide

Google Nest Learning Thermostat (4th gen) wiring for heat pump with B valve wire

Good news: the Google Nest Learning Thermostat (4th gen) is a direct swap for this setup. Every wire has a matching terminal.

Rheem, Ruud and a few other brands energize the reversing valve in heating mode and label it B. Put it on O/B and choose B in settings, or your heat and cool will be backwards. Read the full heat pump with B valve wire guide for how to confirm your setup and mistakes to avoid.

Wiring diagram

Detected system: Heat pump, 1-stage compressor, 1-stage aux heat, fan, C wire present · 6 wires
Your B wire is treated as the reversing valve (energized in heat), common on Rheem and Ruud heat pumps. Set the new thermostat’s O/B setting to B.

Google Nest Learning Thermostat (4th gen)

Works: direct swap
Wires from the wallNest Learning (4th gen)Rred · 24 V powerRc or RhCblack · Common (C wire)CYyellow · Cooling, stage 1YGgreen · FanGBorange · Reversing valve (O/B)*OBW2white · Auxiliary heatW2
WireColorJobConnect toNote
Rred24 V powerRc or Rh
CblackCommon (C wire)C
YyellowCooling, stage 1Y
GgreenFanG
BorangeReversing valve (O/B)*OB
W2whiteAuxiliary heatW2

Install steps

  1. Turn off power to the furnace/air handler (switch or breaker) and the AC condenser. Confirm the old thermostat is dead.
  2. Photograph the old wiring, then label each wire with the letter it came off. Ignore short jumpers.
  3. Connect each wire to the Nest Learning (4th gen) terminal shown above. Cap unused wires one at a time.
  4. Restore power and finish setup in the app using the settings below.
  5. Test heat, cool and fan. If a breaker trips or equipment runs nonstop, power off and call a pro.

App settings to choose

  • Reversing valve (O/B): set to B.
  • Equipment type: heat pump with auxiliary (electric strip) heat.
  • Single R wire: the Nest app tells you whether to use Rc or Rh.

What you need

  • Google Nest Learning Thermostat (4th gen)The thermostat itselfCheck price

As an Amazon Associate we earn from qualifying purchases, at no cost to you.

Confirm against the official Google Nest install guide. The app also checks your wiring during setup.

Link to this diagram

Copy this code to share this wiring diagram on your site or forum post.

Frequently asked questions

Where does each wire go on the Nest Learning (4th gen)?

R → Rc or Rh; C → C; Y → Y; G → G; B → *OB; W2 → W2.

Do I need a C wire for the Nest Learning (4th gen)?

You already have a C wire, so no adapter is needed.

Other thermostats for this setup

Nest Learning (4th gen): other setups