This is a copy of the installation script run during first boot of your Raspberry Pi with the Hassbian image
And an easy way to upgrade Home Assistant to the newest version.
NB!: This is installed by Hassbian, and should not be run additionally
$ sudo hassbian-config install homeassistant
$ sudo hassbian-config upgrade homeassistant
$ sudo hassbian-config upgrade homeassistant --beta
$ sudo hassbian-config upgrade homeassistant --dev
$ sudo hassbian-config upgrade homeassistant=0.65.6
Running as: homeassistant
Configuration dir: /home/homeassistant/.homeassistant/
Start service: sudo systemctl start [email protected]
Stop service: sudo systemctl stop [email protected]
Restart service: sudo systemctl restart [email protected]
Service status: sudo systemctl status [email protected]
Enter the virtual environment where Home Assistant is installed as homeassistant
:
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
When you are done, type exit
to return to the pi
user.
The installation script was originally contributed by @Landrash.
The upgrade scripts was originally contributed by @Ludeeus.