I use my Galaxy S as a wifi tether hotspot for my tablet and laptop, so tethering is always on (I have extended battery so it's ok). But if my phone is in the area where I have wifi internet (for example, at home) I don't need it to act as hotspot and want it to stop tethering and connect wifi. Is there a way to automatically start tethering if no wifi is available and stop it / connect wifi if wifi is available for long enough?
You now can attach these tasks to any condition, such as e.g. "Wifi Near" with your networks name. You can also add things like "Wifi On" / "Wifi off" to above tasks to customize.
Detailed descriptions can be found in the linked Wiki.