Smart thermostats and Geofencing for advanced temperature control