sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install --upgrade homeassistant
sudo systemctl restart home-assistant.service
Install FUSE & SSHFS
sshfs pi@server-address:/server-path /Users/a-user/mount/pi/ -ovolname=GIVE-DISK-A-NAME
sudo umount /mnt/droplet
sudo chmod g+w .homeassistant/
apt list --installed | grep telldus
sudo nano /etc/apt/sources.list
deb http://download.telldus.com/debian/ stable main
sudo apt-get update
sudo apt-get install telldus-core
§ sudo /etc/init.d/telldusd restart
sudo -u homeassistant bash
pi@pi2:~ $ cat .bash_aliases
alias ha-logging='sudo journalctl --no-full -o cat -f -u home-assistant@pi'
alias ha-restart='sudo systemctl restart home-assistant@pi'
alias ha-update='sudo pip3 install --upgrade homeassistant'
alias ha-tellstick-restart='sudo /etc/init.d/telldusd restart'
$ su -c 'cat <<EOF >> /lib/systemd/system/home-assistant@[your user].service
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=%i
ExecStart=/usr/bin/hass
[Install]
WantedBy=multi-user.target
EOF'
$ sudo systemctl --system daemon-reload
$ sudo systemctl enable home-assistant@[your user]
$ sudo systemctl start home-assistant@[your user]
$ sudo journalctl -f -u home-assistant@[your user]
$ sudo journalctl --no-full -o cat -f -u home-assistant@pi
§ lsusb