diff --git a/atom.xml b/atom.xml index 7a947c0024..0965c26c0d 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 7d88404146..48e091cd4f 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index a28d3bf35f..e75300e7a4 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 7f331aefc9..a6d8950a3b 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index bc571d21a5..db98f69a77 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 03d07ae839..ce0cc63e5c 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index f636216186..e628e85ade 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+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 c4a6f81029..d61e24fae9 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 92394ecde2..c2d3680124 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 8bcf4a8a2b..a27b2f76d5 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 11be9e1005..a64f2cc5a4 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index f0ef7105f9..e1da3ed828 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 97eda708cc..938d40f0fb 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index a46ea9458e..92c3d7b37f 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 2fb22a0579..9eba5d9cf1 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index d6499301a0..01f749042e 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+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 7c4a59cd0f..fd5e4f4348 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 44e9810d53..94515e0189 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 53866e47ce..d95618af1e 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 76bff92a60..c0ed6bae19 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 6aa799d717..8b7d24bc5d 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 92ffd6f17c..aea5f24570 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-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 3540f1939c..15284794aa 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 32750ea91a..4972b5559a 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-10-21T13:10:26+00:00 + 2017-10-21T15:37:53+00:00 https://home-assistant.io/ diff --git a/developers/frontend_creating_custom_panels/index.html b/developers/frontend_creating_custom_panels/index.html index 620476ea1f..56acfcf456 100644 --- a/developers/frontend_creating_custom_panels/index.html +++ b/developers/frontend_creating_custom_panels/index.html @@ -89,38 +89,38 @@ </dom-module> <script> -Polymer({ - is: 'ha-panel-hello', - properties: { - // Home Assistant object - hass: { - type: Object, - }, - // If should render in narrow mode - narrow: { - type: Boolean, - value: false, - }, - // If sidebar is currently shown - showMenu: { - type: Boolean, - value: false, - }, - // Home Assistant panel info - // panel.config contains config passed to register_panel serverside - panel: { - type: Object, - }, - who: { - type: String, - computed: 'computeWho(panel)', - } - }, +class HaPanelHello extends Polymer.Element { + static get is() { return 'ha-panel-hello'; } + + static get properties() { + return { + // Home Assistant object + hass: Object, + // If should render in narrow mode + narrow: { + type: Boolean, + value: false, + }, + // If sidebar is currently shown + showMenu: { + type: Boolean, + value: false, + }, + // Home Assistant panel info + // panel.config contains config passed to register_panel serverside + panel: Object, + who: { + type: String, + computed: 'computeWho(panel)', + }, + }; + } - computeWho: function (panel) { + computeWho(panel) { return panel && panel.config && panel.config.who ? panel.config.who : 'World'; - }, -}); + } +} +customElements.define(HaPanelHello.is, HaPanelHello); </script> diff --git a/developers/frontend_creating_custom_ui/index.html b/developers/frontend_creating_custom_ui/index.html index 5374d8ea0c..ed8d3a159b 100644 --- a/developers/frontend_creating_custom_ui/index.html +++ b/developers/frontend_creating_custom_ui/index.html @@ -81,9 +81,12 @@

In state-card-my-custom-light.html you should use <link rel="import"> to import all the dependencies not used by Home Assistant’s UI. Do not import any dependencies used by the Home Assistant UI. Importing those will work in development: 1 mode, but will fail in production mode.

-

1) In the customize: section of the configuration.yaml file put custom_ui_state_card: state-card-my-custom-light. -2) In the frontend section use extra_html_url to specify the URL to load.

-

For example:

+
    +
  1. In the customize: section of the configuration.yaml file put custom_ui_state_card: state-card-my-custom-light.
  2. +
  3. In the frontend section use extra_html_url to specify the URL to load.
  4. +
+

Example:

+

configuration.yaml:

homeassistant:
   customize:
     light.bedroom:
@@ -94,6 +97,42 @@ Importing those will work in development: 1- /local/custom_ui/state-card-my-custom-light.html
 
+

www\custom_ui\state-card-my-custom-light.html:

+
<dom-module id='state-card-my-custom-light'>
+  <template>
+    <style>
+
+    </style>
+    <textarea>[[_toStr(StateObj)]]</textarea>
+  </template>
+</dom-module>
+
+<script>
+class StateCardMyCustomLight extends Polymer.Element {
+  static get is() { return 'state-card-my-custom-light'; }
+  
+  static get properties() {
+    return {
+      // Home Assistant object
+      hass: Object,
+      // inDialog is true if shown as more-info-card
+      inDialog: {
+        type: Boolean,
+        value: false,
+      },
+      // includes state, config and more information of the entity
+      stateObj: Object,
+    };
+  }
+
+  _toStr(obj) {
+    return JSON.stringify(obj);
+  }
+}
+customElements.define(StateCardMyCustomLight.is, StateCardMyCustomLight);
+</script>
+
+

For more possibilities, see the Custom UI section on our Examples page.

diff --git a/docs/autostart/init.d/index.html b/docs/autostart/init.d/index.html index 612f03c993..d335e85c0b 100644 --- a/docs/autostart/init.d/index.html +++ b/docs/autostart/init.d/index.html @@ -84,15 +84,17 @@

2. Select a user.

Create or pick a user that the Home Assistant daemon will run under. Update script to set RUN_AS to the username that should be used to execute hass.

-

3. Register the daemon with Linux

+

3. Change hass executable if required.

+

Some installation environments may require a change in the Home Assistant executable hass. Update script to set HASS_BIN to the appropriate hass executable path.

+

4. Register the daemon with Linux

$ sudo update-rc.d hass-daemon defaults
 
-

4. Install this service

+

5. Install this service

$ sudo service hass-daemon install
 
-

5. Restart Machine

+

6. Restart Machine

That’s it. Restart your machine and Home Assistant should start automatically.

If HA does not start, check the log file output for errors at /var/opt/homeassistant/home-assistant.log

Extra: Running commands before hass executes

@@ -111,6 +113,8 @@ # /etc/init.d Service Script for Home Assistant # Created with: https://gist.github.com/naholyr/4275302#file-new-service-sh PRE_EXEC="" +# Typically /usr/bin/hass +HASS_BIN="hass" RUN_AS="USER" PID_FILE="/var/run/hass.pid" CONFIG_DIR="/var/opt/homeassistant" @@ -123,7 +127,7 @@ start() { return 1 fi echo 'Starting service…' >&2 - local CMD="$PRE_EXEC hass $FLAGS $REDIRECT;" + local CMD="$PRE_EXEC $HASS_BIN $FLAGS $REDIRECT;" su -c "$CMD" $RUN_AS echo 'Service started' >&2 } diff --git a/sitemap.xml b/sitemap.xml index dbcc0481a1..99a075858c 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3442,7 +3442,7 @@ https://home-assistant.io/components/switch.hook/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4078,99 +4078,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/tools/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/tools/hass/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/docs/tools/scripts/ -2017-10-21T13:10:26+00:00 +2017-10-21T15:37:53+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5240,62 +5240,62 @@ https://home-assistant.io/demo/frontend.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/index.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:11+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-10-21T13:09:31+00:00 +2017-10-21T15:37:12+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-10-21T13:09:32+00:00 +2017-10-21T15:37:12+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-10-21T13:09:32+00:00 +2017-10-21T15:37:12+00:00 https://home-assistant.io/static/mdi-demo.html -2017-10-21T13:09:32+00:00 +2017-10-21T15:37:12+00:00