Sometimes switches correctly, sometimes gets stuck. Reversing valve or defrost board intermittency.
If the valve is stuck, the heat pump may get trapped in one mode or fail to provide adequate temperature change.
A faulty board can cause the outdoor unit to freeze over in winter, blocking heat absorption.
If the thermostat fails to sense the correct temperature, it won't signal the HVAC to run.