diff --git a/atom.xml b/atom.xml index 372af54410..4e5e0ea890 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index dca74a90ef..4b0bc6e5f8 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/cloud/atom.xml b/blog/categories/cloud/atom.xml index 0db4280fca..15b5b77f53 100644 --- a/blog/categories/cloud/atom.xml +++ b/blog/categories/cloud/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Cloud | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index b9d151cd73..62031fc277 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 10f2a19d75..d3d258fa23 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 5c46516ec8..fb09ccc3b1 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index ec4cd3fff5..c60d301998 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 8a6f8d751b..ab3b157a59 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+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 81f355b29c..c3f653d7e2 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 7666a02271..94340c4f96 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 3965f54bef..e68fe498a5 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 7a5c3e78be..cbae8290a3 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 4ebec54baa..746306201f 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 1374b208d9..1308b2469e 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/organization/atom.xml b/blog/categories/organization/atom.xml index 029063a39f..a206971092 100644 --- a/blog/categories/organization/atom.xml +++ b/blog/categories/organization/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organization | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 1a28207c03..8250a1b3ea 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index ec4b13a457..2fc162f17a 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+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 821a42a1cf..af239f5d67 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index e30205062c..e36e3b4eb0 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index c229b23eff..ad7aaa6df8 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index db593ccebf..897c6d533a 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 8e88162e85..6dfc6b8b38 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 151da02b71..a164bb8a7f 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]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 41bb2f6f8f..b24800b7f7 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 04cf7b8f8b..dac57aab48 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2018-02-26T22:27:22+00:00 + 2018-02-27T07:17:58+00:00 https://home-assistant.io/ diff --git a/components/recorder/index.html b/components/recorder/index.html index 71bae9b66b..f6935bc618 100644 --- a/components/recorder/index.html +++ b/components/recorder/index.html @@ -265,10 +265,25 @@ +

+<p class='note'> ++If you are running a database server instance on the same server as Home Assistant then you must ensure that this service starts before Home Assistant. For a Linux instance running Systemd (Raspberry Pi, Debian, Ubuntu and others) then you should edit the file /etc/systemd/system/home-assistant@homeassistant.service as root (e.g. sudo nano /etc/systemd/system/home-assistant@homeassistant.service) and add the service - for PostgreSQL: ++ ++[Unit] ++Description=Home Assistant ++After=network.target postgresql.service ++ ++</p>

Installation notes

Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working.

MariaDB and MySQL

-

For MariaDB you may have to install a few dependencies. On the Python side we use the mysqlclient:

+

If you are in a virtual environment, don’t forget to activate it before installing the mysqlclient Python package described below.

+
pi@homeassistant:~ $ sudo su homeassistant -s /bin/bash  
+homeassistant@homeassistant:~$ source /srv/homeassistant/bin/activate
+(homeassistant) homeassistant@homeassistant:~$ pip3 install mysqlclient
+
+
+

For MariaDB you may have to install a few dependencies. If you’re using MariaDB version 10.2, libmariadbclient-dev was renamed to libmariadb-dev, please install the correct package based on your MariaDB version.

+

On the Python side we use the mysqlclient:

$ sudo apt-get install libmariadbclient-dev libssl-dev
 $ pip3 install mysqlclient
 
@@ -278,12 +293,6 @@ $ pip3 install mysqlclient
-

If you are in a virtual environment, don’t forget to activate it before installing the mysqlclient Python package.

-
pi@homeassistant:~ $ sudo su homeassistant -s /bin/bash  
-homeassistant@homeassistant:~$ source /srv/homeassistant/bin/activate
-(homeassistant) homeassistant@homeassistant:~$ pip3 install mysqlclient
-
-

After installing the dependencies, it is required to create the database manually. During the startup, Home Assistant will look for the database specified in the db_url. If the database doesn’t exist, it will not automatically create it for you.

Once Home Assistant finds the database, with right level of permissions, all the required tables will then be automatically created and the data will be populated accordingly.

PostgreSQL

diff --git a/docs/mqtt/broker/index.html b/docs/mqtt/broker/index.html index 29281e57a6..3a913b385b 100644 --- a/docs/mqtt/broker/index.html +++ b/docs/mqtt/broker/index.html @@ -185,6 +185,14 @@ There is an issue with the Mosquitto package included in Ubuntu 14.04 LTS. Speci If you get this error AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLS' then you need to set tls_version: '1.2'.

+If you are running a Mosquitto instance on the same server as Home Assistant then you must ensure that the Mosquitto service starts before Home Assistant. For a Linux instance running Systemd (Raspberry Pi, Debian, Ubuntu and others) then you should edit the file /etc/systemd/system/home-assistant@homeassistant.service as root (e.g. sudo nano /etc/systemd/system/home-assistant@homeassistant.service) and add the mosquitto service: + +[Unit] +Description=Home Assistant +After=network.target mosquitto.service + +

+

If you are running a Mosquitto instance on a different server with proper SSL encryption using a service like Let’s Encrypt you may have to set the certificate to the operating systems own .crt certificates file. In the instance of Ubuntu this would be certificate: /etc/ssl/certs/ca-certificates.crt

Public broker

diff --git a/sitemap.xml b/sitemap.xml index 61964ca5bd..b3adb5f202 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4090,7 +4090,7 @@ https://home-assistant.io/components/switch.hook/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4778,131 +4778,131 @@ https://home-assistant.io/docs/autostart/init.d/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/benchmark/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/check_config/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/credstash/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/db_migrator/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/ensure_config/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/hass/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/influxdb_import/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/influxdb_migrator/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/keyring/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/docs/tools/scripts/ -2018-02-26T22:27:22+00:00 +2018-02-27T07:17:58+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -6089,62 +6089,62 @@ https://home-assistant.io/demo/frontend.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/index.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00 https://home-assistant.io/static/mdi-demo.html -2018-02-26T22:25:44+00:00 +2018-02-27T07:17:12+00:00