You might enjoy Dennett’s “The Intentional Stance” for some enlightening exploration of this metaphor, e.g. “The thermostat tries to keep the temperature between 67 and 69” not only makes sense but is a useful way to think of it even when we don’t believe the thermostat has agency.