Scripts used in the Hassbian image.
HOME | SUITES | HASSBIAN-CONFIG (CLI) | CONTRIBUTE |
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
Description | Command/value |
---|---|
Running as: | homeassistant |
Configuration dir: | /home/homeassistant/.homeassistant/ |
Start service: | sudo systemctl start home-assistant@homeassistant.service |
Stop service: | sudo systemctl stop home-assistant@homeassistant.service |
Restart service: | sudo systemctl restart home-assistant@homeassistant.service |
Service status: | sudo systemctl status home-assistant@homeassistant.service |
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.
pi
Alias | Command |
---|---|
halog | sudo journalctl -f -u home-assistant@homeassistant.service |
harestart | sudo systemctl restart home-assistant@homeassistant.service |
hashell | sudo su -s /bin/bash homeassistant |
hastart | sudo systemctl start home-assistant@homeassistant.service |
hastatus | sudo systemctl status home-assistant@homeassistant.service |
hastop | sudo systemctl stop home-assistant@homeassistant.service |
homeassistant
Alias | Command |
---|---|
hacheckconf | source /srv/homeassistant/bin/activate;hass --script check_config |
hapyshell | source /srv/homeassistant/bin/activate;cd ~/.homeassistant |
The installation script was originally contributed by @Landrash.
The upgrade script was originally contributed by @Ludeeus.