The Locale Hotspot Plugin is a plugin for the Locale or Tasker application for Android which is able to turn the Wifi hotspot on and off.
See the download & install page.
Will it work on my device?
Please check the compatibility page.
I found a bug, will you fix it for me?
Unfortunately there is currently no maintainer of the project, and I won't have time for it, so you have to fix the issue yourself. Check the GitHub project page.
Check out the GitHub project page for the source code, and contact me through my email address that you can find in the play store entry of the plugin.