I have a Raspberry Pi 3 that will be dedicated to HomeAssistant. However, for fun, I decided to install Raspbian on the device, then install HomeAssistant on top of that. I followed the instructions here https://home-assistant.io/docs/installation/virtualenv/ (without creating a separate user/group), but ran into a problem when runnign hass for the first time. The problem was resolved by opening up file permissions …/hass_venv/lib/python3.4/site-packages.
I then followed the instructions here https://home-assistant.io/docs/autostart/systemd/ configure the system so that hass would run, and autorun, as a service. I again ran into problems.
I believe that the service file is correct (note - I am lazy and typically operate using sudo -s, thus no sudo before each command):
ExecStart=/home/pi/homeassistant/bin/hass -c “/home/pi/.homeassistant”
Next, I executed the commands shown:
[email protected]:/etc/systemd/system# systemctl --system daemon-reload
[email protected]:/etc/systemd/system# systemctl enable [email protected]
Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /etc/systemd/system/[email protected]
[email protected]:/etc/systemd/system# systemctl start [email protected]
Failed to get properties: Unit name [email protected] is missing the instance name.
See system logs and ‘systemctl status [email protected]’ for details.
When I looked in the various log files for details, I found nothing useful (only relevant lines are shown):
[email protected]:/var/log# tail -50 syslog
Nov 27 23:12:26 podhomeauto systemd: Reloading.
Nov 27 23:12:38 podhomeauto systemd: Reloading.
The file permissions seem to be set correctly (because they are the same as the one other service file in the folder) (only two files are shown):
[email protected]:/etc/systemd/system# ls -al
drwxr-xr-x 17 root root 4096 Nov 27 23:04 .
drwxr-xr-x 5 root root 4096 Sep 7 10:47 …
-rw-r–r-- 1 root root 1551 Aug 11 09:40 [email protected]
-rw-r–r-- 1 root root 199 Nov 27 23:04 [email protected]
Would you please help me try to resolve this problem?