2.8 KiB
Best practice for updating Home Assistant Core:
- Back up your installation and store the backup and the backup emergency kit somewhere safe.
- This ensures that you can restore your installation from backup if needed.
- Check the release notes for backward-incompatible changes on Home Assistant release notes. Be sure to check all release notes between the version you are running and the one you are upgrading to. Use the search function in your browser (
CTRL + f
/CMD + f
) and search for Backward-incompatible changes. - Update Home Assistant.
- Review persistent notifications and log to see if there are any issues with your configuration that need to be addressed.
{% if page.installation == "os" or page.installation == "supervised" %}
To update Home Assistant Core when you run Home Assistant {{ page.installation_name }} you have 2 options.
{% tabbed_block %}
-
title: Using the UI content: |
- Open your Home Assistant UI.
- Navigate to the Settings panel.
- On the top you will be presented with an update notification.
- Troubleshooting: If you do not see that notification:
- In the top right corner, select the three dots {% icon "mdi:dots-vertical" %} menu and select Check for updates.
- Go to {% my updates title="System > Updates" %}.
- Select the update notification.
- Select the cogwheel {% icon "mdi:cog-outline" %}, then set Visible to active.
- Troubleshooting: If you do not see that notification:
-
title: Using the CLI content: |
ha core update --backup
The
--backup
flag here ensures that you have a partial backup of your current setup incase you need to downgrade.
{% endtabbed_block %}
{% elsif page.installation == "container" %}
{% tabbed_block %}
-
title: Docker CLI content: |
First start with pulling the new container.
docker pull {{ site.installation.container }}:stable
-
title: Docker Compose content: |
docker compose pull homeassistant docker compose up -d
{% endtabbed_block %}
{% elsif page.installation == "core" %}
-
Stop the Home Assistant service.
-
Switch to the user that is running Home Assistant
sudo -u homeassistant -H -s
-
Activate the virtual environment that Home Assistant is running in
source /srv/homeassistant/bin/activate
-
Download and install the new version
pip3 install --upgrade homeassistant
-
When that is complete start the service again for it to use the new files.
{% endif %}