Autostart on Windows

OK. I am gonna answer my own question here…

Somehow I manage to achieve this by following these steps…

  1. Open up Task Scheduler (can use search tool to look for it)
  2. Click on “Task Scheduler (Local)” on the left panel and then select “Create Task…”
  3. Under General tab, give it a name and then select “Run whether user is logged on or not”…

  1. Under Triggers tab, click on “New…” button and then for “Begin the task” option, select “At startup”…

  1. Under Actions tab, click on New… button and then under Action, select “Start a program”. Under Settings, browse to your python.exe file. Mine is located at “C:\Users\Masterkenobi\AppData\Local\Programs\Python\Python35\python.exe”. For Add arguments field, enter “-m homeassistant”

  1. Under Conditions tab, uncheck “Start the task only if the computer is on AC power”. I need this because I want it to run even if the PC is on battery. You can skip this.

  1. Under Settings tab, uncheck “Stop the task if it runs longer than:” so that it will continue to run forever.

  1. Once you click OK, it will prompt you for your password. Enter the password you normally use to logon to your Windows.

You are done!

To test it, reboot your PC and wait for few minutes before try to load the page in your other PC.

6 Likes