All,
Thanks for this. I am using HA on ubuntu 18.04 installed in a virtual environment as user ‘homeassistant’. my config files are in /home/homeassistant/.homeassistant
and i use an external mySQL database.
Below are the exact steps I took to install (I can take no credit for it as it is all the bits in the posts above put together!):
systemctl stop home-assistant@homeassistant
apt update
apt install python3.7
apt install python3.7-dev
apt install python3.7-venv
cd /srv
#cp homeassistant homeassistant_old ##edited below as it should be a mv
mv homeassistant homeassistant_old
mkdir homeassistant
chown homeassistant:homeassistant homeassistant
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3.7 -m venv .
source bin/activate
pip install --upgrade pip
python3.7 -m pip install mysqlclient
python3.7 -m pip install homeassistant
pip install home-assistant-frontend
exit
systemctl start home-assistant@homeassistant
journalctl -f -u home-assistant@homeassistant
I do log on as root so no sudo required.
Thanks for all the posts above that got me to this and I hope this helps anyone else with a standard Ubuntu install as user homeassistant in a virtenv
mb