Unable to autostart homeassistant on RPI3

Hi

I’m not able to autorun homeassistant on my RPI 3 using systemd.
I’ve followed the tutorial on this page:

Logged with the user “pi”, i’ve executed the following command:

sudo su -c 'cat <<EOF >> /etc/systemd/system/[email protected]
[Unit]
Description=Home Assistant
After=network.target

[Service]
Type=simple
User=pi
ExecStartPre=source /srv/homeassistant/homeassistant_venv/bin/activate
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target
EOF'

Then I’ve executed these three command as described in the tutorial:

sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@pi
sudo systemctl start home-assistant@pi

But when i check the status with

systemctl status [email protected]

I get

[email protected]
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: exit-code) since Sun 2016-10-30 21:43:00 CET; 24min ago
 Main PID: 1805 (code=exited, status=217/USER)

Thanks for the help!

Lucas

OK i’m such a idiot sometimes…

I’ve found the error. It must be

systemctl status [email protected]

instead of

systemctl status [email protected]

Then the output shows me that everything is fine…