A Raspberry pi and Home Assistant newbie here, so be gentle!
I am trying to set up a service to launch Home Assistant on startup as the Home Assistant site, and a number of people on here have managed to successfully do. however, i am falling at the first hurdle, for some reason whereis hass is not returning the path for me to validate the service information, instead i just get a blank response. See below:
> pi@Home-Assistant-Pi:~ $ whereis hass
> hass:
I have tried rebooting, but to no avail. I am sure this is something simple that i don’t quite understand yet, so any help is appreciated.
What method did you use to install Home Assistant? hass will be in different locations depending on how you installed it. If you used the all in one installer it will be in
/srv/hass/hass_venv/bin/
I used the all in one installer, but i am trying to set up the autostart as it says in here. The service seems to fail, and looking into other people’s issues, it seems the reason it fails is because the route to hass is incorrect. Ive tried:
/usr/bin/hass
/usr/local/bin/hass
/srv/hass/hass_venv/bin/ (as suggested by zarthan)
any ideas what this should be set as to make this work?
Dit you guys get it working? With whereis I don’t get a path, but I know it is: /srv/homeassistant/homeassistant_venv/bin
But it’s does’t work:
sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@pi
sudo systemctl start home-assistant@pi
After the last command I don’t get any response, no confirmation and no error and it;s not working.
Someone the same problems?