Home-assistant venv Ubuntu

Share on:

Upgrade Python to 3.5.4 https://sgrudadh.blogspot.se/2017/12/upgrading-python-virtual-environment.html

Install hass in venv https://sgrudadh.blogspot.co.uk/2017/12/installing-home-assistant-in-virtual.html

You can watch Home Assistant start (and run) with:

1$ sudo journalctl -f -u home-assistant

You can stop watching that by pressing CTRL+C - it won't stop any service.

activate user env and upgrade hass

1sudo su -s /bin/bash homeassistant
2source /srv/homeassistant/homeassistant_venv/bin/activate
3pip3 install --upgrade homeassistant
4

control hass service

1sudo systemctl start home-assistant
2sudo systemctl stop home-assistant
3sudo systemctl restart home-assistant

######Samba share

1sudo nano /etc/samba/smb.conf

Once "smb.conf" has loaded, add this to the very end of the file:

1[<folder_name>]
2path = /home/<user_name>/<folder_name>
3valid users = <user_name>
4read only = no
1sudo service smbd restart
2
3#test with
4testparm

###backup https://blog.ceard.tech/2017/10/backing-up-home-assistant.html?view=sidebar