Upgrade OK but still shows old version [SOLVED]

Hi,

I did sudo pip3 -upgrade twice with this result:
(homeassistant_venv) pi@raspberrypi:~ $ sudo pip3 install --upgrade homeassistan t
Requirement already up-to-date: homeassistant in /usr/local/lib/python3.4/dist-p ackages
Requirement already up-to-date: pytz>=2017.02 in /usr/local/lib/python3.4/dist-p ackages (from homeassistant)
Requirement already up-to-date: astral==1.4 in /usr/local/lib/python3.4/dist-pac kages (from homeassistant)
Requirement already up-to-date: async-timeout==1.4.0 in /usr/local/lib/python3.4 /dist-packages (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.11 in /usr/local/lib/python3.4/dist -packages (from homeassistant)
Requirement already up-to-date: chardet==3.0.4 in /usr/local/lib/python3.4/dist- packages (from homeassistant)
Requirement already up-to-date: requests==2.14.2 in /usr/local/lib/python3.4/dis t-packages (from homeassistant)
Requirement already up-to-date: pip>=8.0.3 in /usr/local/lib/python3.4/dist-pack ages (from homeassistant)
Requirement already up-to-date: voluptuous==0.10.5 in /usr/local/lib/python3.4/d ist-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.9.6 in /usr/local/lib/python3.4/dist-p ackages (from homeassistant)
Requirement already up-to-date: aiohttp==2.2.5 in /usr/local/lib/python3.4/dist- packages (from homeassistant)
Requirement already up-to-date: typing<4,>=3 in /usr/local/lib/python3.4/dist-pa ckages (from homeassistant)
Requirement already up-to-date: MarkupSafe>=0.23 in /usr/local/lib/python3.4/dis t-packages (from jinja2>=2.9.6->homeassistant)
Requirement already up-to-date: multidict>=2.1.4 in /usr/local/lib/python3.4/dis t-packages (from aiohttp==2.2.5->homeassistant)
Requirement already up-to-date: yarl>=0.11 in /usr/local/lib/python3.4/dist-pack ages (from aiohttp==2.2.5->homeassistant)
And web still shows ver 0,52,1 and rgb_command_template: “{{ ‘%02x%02x%02x’ | format(blue, green, red)}}” still not working. Please help, Idont like to reinstall all PI again :frowning:

Issue the command: sudo service home-assistant restart to restart HomeAssistant

Thank you, but it is same, restart service, reboot all pi, still 0,52,1 :frowning:

This worked, problem SOLVED:
To upgrade the All-In-One setup manually:

Login to Raspberry Pi ssh pi@your_raspberry_pi_ip
Change to homeassistant user sudo su -s /bin/bash homeassistant
Change to virtual environment source /srv/homeassistant/homeassistant_venv/bin/activate
Update Home Assistant pip3 install --upgrade homeassistant
Type exit to logout the hass user and return to the pi user.

1 Like

I created a script for that:

#!/bin/bash

# Update AIO installed HASS

if [ "$(id -u)" != "0" ]; then
echo "This script must be run with sudo. Use \"sudo ${0} ${*}\"" 1>&2
exit 1
fi

echo "Chaning to user homeassistant"
sudo -H -u homeassistant /bin/bash <<EOF
echo "Activating virtual environment"
source /srv/homeassistant/homeassistant_venv/bin/activate
echo "Updating Home Assistant to latest version"
pip3 install --upgrade homeassistant
echo "Deactivating virtual environment"
deactivate
EOF
exit 0
1 Like