Home Home Assistant

How to update Home Assistant in a few simple steps

One of the great things about Home Assistant is that it gets updated frequently. The developers are actively releasing new updates every couple of weeks bringing support for new components and bug fixes. At the moment, there is no easy way to update Home Assistant via the web interface when it is installed using the All-In-One-Installer, but with a few commands, we can update it quickly via SSH.

 

Note: If you are using Hass.io, you can quickly upgrade Home Assistant via the web interface. I will cover Hass.io in future articles.

When an update is available, a sensor gets displayed on the Home assistant web interface.

You can also manually verify if an update is available. First, check what version of Home Assistant you have installed by going into Menu and then Info. After that, go to the Home Assistant website to check for the latest version available.

How to update

To update Home Assistant, SSH to your Raspberry Pi using PuTTY. Then, switch to the Home Assistant user so type the command:

sudo su -s /bin/bash homeassistant

After that, change to the virtual environment using the command:

source /srv/homeassistant/homeassistant_venv/bin/activate

Now, to update Home Assistant, enter the following command:

pip3 install --upgrade homeassistant

 

After a minute or two, the update will complete. Then, type exit to leave the virtual environment. Now, you need to restart Home Assistant to apply the changes so type the command:

sudo systemctl restart home-assistant.service

In a few seconds, reopen Home Assistant to verify that it still opens with no problems. Then, go to the Info tab to check that the update installed successfully.

Ok, so there you have it. We were able to upgrade Home Assistant to the latest version with a few simple steps. Just have in mind that the commands used in this guide are for when you install Home Assistant using the All-In-One Installer.

If you have any questions, feel free to contact me via social media. I will try to help you the best I can.


Don’t forget to follow me on social media and YouTube, so you do not miss any future written guides, tutorial videos and product reviews.