树莓派

Raspbian All-in-One

  1. 终端中登陆树莓派
  2. 停止正在运行的 Home Assistant 服务:sudo systemctl stop home-assistant.service
  3. 切换至 homeassistant 用户:sudo su -s /bin/bash homeassistant
  4. 切换至虚拟环境:source /srv/homeassistant/homeassistant_venv/bin/activate
  5. 升级系统:pip3 install --upgrade homeassistant
  6. 退出 homeassistant 账号,回到初始状态:exit
  7. 重启 Home Assistant 服务:sudo systemctl restart home-assistant.service

Hassbian

方法一

在终端中输入 sudo hassbian-config upgrade home-assistant 即可

方法二

  1. 终端中登陆树莓派
  2. 停止正在运行的 Home Assistant 服务:sudo systemctl stop home-assistant@homeassistant.service
  3. 切换至 homeassistant 用户:sudo su -s /bin/bash homeassistant
  4. 切换至虚拟环境:source /srv/homeassistant/bin/activate
  5. 升级系统:pip3 install --upgrade homeassistant
  6. 退出 homeassistant 账号,回到初始状态:exit
  7. 重启 Home Assistant 服务:sudo systemctl restart home-assistant@homeassistant.service

Hass.io

Home Assistant 在系统更新时会推送至 Hass.io,只需在前端页面点击 UPDATE 即可更新至最新系统。