I am trying to set up HA to autostart when the Pi is rebooted. I am following the instructions here:
I set up Jessie Lite and then did a manual install of HA and have confirmed it starts and runs. Since I am using a virtual environment I used those instructions, however, within that configuration is:
ExecStartPre=source /srv/hass/bin/activate
There is no /srv/hass directory!
I have confirmed that the HA home directory does exist and the configuration file is there and as mentioned I can manually start HA. When I run:
whereis hass
All I get in response is
hass:
So, digging around I find that the proper path according to the manual install instructions is:
/srv/homeassistant/homeassistant_venv/bin
I do not want to come across as rude or unappreciative of HA, but does anyone verify these instruction/manual pages are accurate as HA changes?
So with the proper paths, I then try to configure the autostart with:
su -c 'cat <<EOF >> /etc/systemd/system/[email protected]
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=hass
ExecStartPre=source /srv/homeassistant/homeassistant_venv/bin/activate
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/hass/.homeassistant"
[Install]
WantedBy=multi-user.target
EOF'
It asks for the password and I type in the password I use to log into the Pi and it gives me an authentication error. So what gives?
Do I need to do this as the home assistant user with
sudo su -s /bin/bash homeassistant
I really love HA and what I did manage to get working at one time I truly enjoyed and was impressed with it all, but forgive me for saying, but it gets old having to chase all these rabbits down their holes. Good grief. If you guys need someone to go through the documentation and test it out, I will help all I can. I cannot imagine the frustration of some users trying to install HA and do not have a great deal of Linux experience or Raspberry Pi experience. I think Iād end up wanting to toss the Pi out into the street and see how long it takes to get run over.
Again, no offense or meaning to be rude, but holy cow.