Non-destructive smartening of a thermostat