From 475ee10cf741c88deda552f4999d7a7576b4c82b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 7 Mar 2017 18:45:41 +0000 Subject: [PATCH] Site updated at 2017-03-07 18:45:41 UTC --- atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/iot-data/atom.xml | 2 +- blog/categories/merchandise/atom.xml | 2 +- blog/categories/micropython/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- docs/autostart/systemd/index.html | 66 +++++++++---------- sitemap.xml | 30 ++++----- 24 files changed, 70 insertions(+), 70 deletions(-) diff --git a/atom.xml b/atom.xml index 262a6b4577..38b04e246e 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index a2660b3809..44aa984ada 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 4dce707998..7a80cce9d2 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index a5be353f9e..6c1db9c17f 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index eb94550f71..30efed47f4 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index f04abb74fe..d7f87b0a29 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index c279fe9324..5e86b911dc 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 6279f6e2d5..b5ee05c92c 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 9ac98d9aa7..221ec6f399 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index f3a14c864c..e1542c2530 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index b69d4f6e3a..f306d1d8ba 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index def8c6636d..1e9ada18f5 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 14a2283832..ca4bc33a1f 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 4b670fc30e..281490a97a 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index f21e6c4add..9f251463d5 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 718e0a9f6e..1c54340aae 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 1f0e3abb5a..664dbd334c 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 60816f0920..5faa916877 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 76f873ab50..f07841751e 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 7f60c453a8..c7688d008a 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index a5db5527d5..d932d098a3 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 7bf948cb07..a3e5e87687 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-03-07T13:19:26+00:00 + 2017-03-07T18:42:11+00:00 https://home-assistant.io/ diff --git a/docs/autostart/systemd/index.html b/docs/autostart/systemd/index.html index bf223393b7..68b1fc07a3 100644 --- a/docs/autostart/systemd/index.html +++ b/docs/autostart/systemd/index.html @@ -100,10 +100,16 @@

If the preceding command returns the string systemd, you are likely using systemd.

-

If you want Home Assistant to be launched automatically, an extra step is needed to setup systemd. You need a service file to control Home Assistant with systemd. If you are using a Raspberry Pi with Raspbian then replace the [your user] with pi otherwise use your user you want to run Home Assistant. ExecStart contains the path to hass and this may vary. Check with whereis hass for the location.

+

If you want Home Assistant to be launched automatically, an extra step is needed to setup systemd. A service file is needed to control Home Assistant with systemd. The template below should be created using a text editor. Note, root permissions via ‘sudo’ will likely be needed. The following should be noted to modify the template:

-
$ su -c 'cat <<EOF >> /etc/systemd/system/home-assistant@.service
-[Unit]
+
    +
  • ExecStart contains the path to hass and this may vary. Check with whereis hass for the location.
  • +
  • If running Home Assistant in a python virtual environment or a docker, please skip to section below.
  • +
  • For most systems, the file is /etc/systemd/system/home-assistant@[your user].service with [your user] replaced by the user account that Home Assistant will run as - normally homeassistant. For Ubuntu 16.04, the file is /lib/systemd/system/home-assistant.service and requires running this command sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service after file is created.
  • +
  • If unfamiliar with command line text editors, sudo nano -w [filename] can be used with [filename] replaced with the full path to the file. Ex. sudo nano -w /etc/systemd/system/home-assistant@homeassistant.service. After text entered, press CTRL-X then press Y to save and exit.
  • +
+ +
[Unit]
 Description=Home Assistant
 After=network.target
 
@@ -114,31 +120,10 @@ ExecStart=/usr/bin/hass
 
 [Install]
 WantedBy=multi-user.target
-EOF'
 
-

For Ubunt 16.04 use this commands. Notice that files are saved in a slightly diffrent path

- -
$ su -c 'cat <<EOF >> /lib/systemd/system/home-assistant.service
-[Unit]
-Description=Home Assistant
-After=network.target
-
-[Service]
-Type=simple
-User=%i
-ExecStart=/usr/local/bin/hass
-
-[Install]
-WantedBy=multi-user.target
-EOF'
-
-
- -

sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service

- -

If you’ve setup Home Assistant in virtualenv following our python installation guide or manual installation guide for raspberry pi, the following template should work for you.

+

If you’ve setup Home Assistant in virtualenv following our python installation guide or manual installation guide for raspberry pi, the following template should work for you. If Home Assistant install is not located at /srv/homeassistant, please modify the Enviroment= and ExecStart= lines appropriately.

[Unit]
 Description=Home Assistant
@@ -176,17 +161,32 @@ WantedBy=multi-user.target
 
-

You need to reload systemd to make the daemon aware of the new configuration. Enable and launch Home Assistant after that.

+

You need to reload systemd to make the daemon aware of the new configuration.

$ sudo systemctl --system daemon-reload
-$ sudo systemctl enable home-assistant@[your user]
-$ sudo systemctl start home-assistant@[your user]
 
-

If everything went well, sudo systemctl start home-assistant@[your user] should give you a positive feedback.

+

To have Home Assistant start automatically at boot, enable the service.

-
$ sudo systemctl status home-assistant@[your user] -l
+
$ sudo systemctl enable home-assistant@[your user]
+
+
+ +

To disable the automatic start, use this command.

+ +
$ sudo systemctl disable home-assistant@[your user]
+
+
+ +

To start Home Assistant now, use this command.

+
$ sudo systemctl start home-assistant@[your user]
+
+
+ +

You can also substitute the start above with stop to stop Home Assistant, restart to restart Home Assistant, and ‘status’ to see a brief status report as seen below.

+ +
$ sudo systemctl status home-assistant@[your user]
 ● home-assistant@fab.service - Home Assistant for [your user]
    Loaded: loaded (/etc/systemd/system/home-assistant@[your user].service; enabled; vendor preset: disabled)
    Active: active (running) since Sat 2016-03-26 12:26:06 CET; 13min ago
@@ -200,12 +200,12 @@ WantedBy=multi-user.target
 
 

To get Home Assistant’s logging output, simple use journalctl.

-
$ journalctl -f -u home-assistant@[your user]
+
$ sudo journalctl -f -u home-assistant@[your user]
 
-

Because the log can scroll quite quickly, you might want to open a second terminal to view only the errors:

-
$ journalctl -f -u home-assistant@[your user] | grep -i 'error'
+

Because the log can scroll quite quickly, you can select to view only the error lines:

+
$ sudo journalctl -f -u home-assistant@[your user] | grep -i 'error'
 
diff --git a/sitemap.xml b/sitemap.xml index cd14f30ac8..0ea070d788 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2954,62 +2954,62 @@ https://home-assistant.io/demo/frontend.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/index.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00 https://home-assistant.io/static/mdi-demo.html -2017-03-07T13:18:19+00:00 +2017-03-07T18:41:07+00:00