How old the unit is matters less than what's failing
A heat pump that won't switch between heating and cooling is usually the reversing valve, and that's a repair worth making even on an older unit. A compressor that's failing is a different story. The compressor is the most expensive part in the system, and once it starts going, the rest tends to follow.







