1.7 KiB
Run a specific version
{% assign current_version = site.current_major_version | append: "." | append: site.current_minor_version | append: "." | append: site.current_patch_version %}
{% if page.installation != "os" and page.installation != "supervised" %}
In the event that a Home Assistant Core version doesn't play well with your hardware setup, you can downgrade to a previous release. In this example {{current_version}}
is used as the target version but you can choose the version you desire to run.
{% endif %}
{% if page.installation == "os" or page.installation == "supervised" %}
You can use the CLI to upgrade to a specific version ({{current_version}}
in this example), to downgrade your installation you should do a partial restore of a backup instead.
ha core update --version {{current_version}} --backup
The --backup
flag here ensures that you have a partial backup of your current setup incase you need to downgrade.
{% elsif page.installation == "container" %}
docker pull {{ site.installation.container }}:{{current_version}}
You then need to recreate the container with the new image.
{% 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 version you want
pip3 install homeassistant=={{current_version}}
-
When that is complete start the service again for it to use the new files.
{% endif %}