Set Boot Up Automatically¶
After setting up the self-start, you can open http://localhost:8123 and go directly to Home Assistant. The setup steps are as follows.
Virtual environment installation.
If your Home Assistant is running in a Python virtual environment, please use the following methods:
sudo nano -w /firstname.lastname@example.org
copy and paste.
[Unit] Description=Home Assistant After=network-online.target [Service] Type=simple User=%i ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant" [Install] WantedBy=multi-user.target
Save and exit: Ctrl+ X, Y, Enter.
Start self-boot service:
# Reload process management sudo systemctl --system daemon-reload
# Enable Service sudo systemctl enable home-assistant@homeassistant
Restart Home Assistant.
sudo systemctl restart home-assistant@homeassistant
home-assistant@account_name in the command,
account_name is set in Create an account.
If you don’t change it, then the default account_name is