no option looks like to work.
It usually takes a couple minutes for HA to stop on my Pi3. If you use a command line to restart, you’ll see the command shell wait/hang until HA closes. It’ll return control when HA is starting back up.
Reboot is working for now. But it did freeze for several hours at the first attempt. Then started with clean install.
But the biggest question is how to update HA on HASSbian.
Long shot but are you using A Raspberry Pi and a wifi adapter? Some wifi adapters have a default sleep setup and can make a pi seem unresponsive from ssh or a front end like HA.
Using a rpi3
Tries it again, but it says all is up to date. But my HA is still giving me the update icon and on one of the screens in still the old version number.
To update Ha on Hassbian
Log in as the pi
account
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
sudo systemctl start [email protected]
Wrote up a quick guide that should cover most common questions. https://community.home-assistant.io/t/quick-documentation-for-hassbian/
I was having a difficult time to find the restart and log file view of Home Assistant using the Hassbian image.
Here is the commands…
Restart Home Assistant
sudo systemctl restart home-assistant@homeassistant
To view HA Logs
sudo journalctl -f -u home-assistant@homssistant
Hope this helps some one using Hassbian image
It works for me even with out .service
also:
sudo service home-assistant@homeassistant restart
It is. It’s already submitted to the hassbian scripts repo and I’m going to rework it to work with the next version of hassbian.
I created a quick and dirty control script for anyone having issues figuring out or remembering what the service names are for hass.
$ export HA=/usr/bin/hassctl;touch $HA;chmod +x $HA
$ nano $HA
#!/bin/bash set -e case "$1" in start) sudo systemctl start [email protected] exit 0 ;; stop) sudo systemctl stop [email protected] exit 0 ;; status) sudo systemctl status [email protected] exit 0 ;; restart) sudo systemctl restart [email protected] exit 0 ;; upgrade) sudo systemctl stop [email protected] sudo su - homeassistant -c "source /srv/homeassistant/bin/activate" sudo su - homeassistant -c "pip3 install --upgrade homeassistant" sudo systemctl start [email protected] exit 0 ;; chkconfig) sudo su - homeassistant -c "source /srv/homeassistant/bin/activate" sudo su - homeassistant -c "hass --script check_config" exit 0 ;; *) echo;echo $"Usage: $0 {start|stop|restart|status|upgrade|chkconfig}.";echo echo $"start: Start HASS. | stop: Stop HASS. | restart: Restart HASS." echo $"status: Check the status of HASS. | upgrade: Upgrade HASS." echo $"chkconfig: Check the validity of the HASS configuration.";echo exit 1 esac
Then just type “hassctl” from anywhere for a list of commands.
This part is not working. sudo hass command not found
try this:
sudo su - homeassistant -c “source /srv/homeassistant/bin/activate && hass --script check_config”
I made a script that autorestart homeassistant when certain files are changed