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:
+
+ - In the
customize:
section of the configuration.yaml
file put custom_ui_state_card: state-card-my-custom-light
.
+ - In the
frontend
section use extra_html_url
to specify the URL to load.
+
+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