diff --git a/atom.xml b/atom.xml index ea87ecfe98..634cec6b09 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Any component has the possibility to add a panel to the frontend. Panels will be rendered full screen and have real-time access to the Home Assistant object via JavaScript. Examples of this in the app are map, logbook and history.
+Panels are pages within Home Assistant that show information within Home Assistant and can allow controlling it. Panels are linked from the sidebar and rendered full screen. The have have real-time access to the Home Assistant object via JavaScript. Examples of panels in the app are map, logbook and history.
+Besides components registering panels, users can also register panels using the panel_custom
component. This allows users to quickly build their own custom interfaces for Home Assistant.
The Home Assistant user interface is currently served to browsers in modern JavaScript and older JavaScript (ES5). The older version has a wider browser support but that comes at a cost of size, performance and more difficult to get started building panels for authors.
+We therefore advice to set up the frontend to serve the modern version of the frontend so that you won’t need any build tools while developing. If you realize that your audience requires both, you can add a transpilation step in the future. To set up your frontend to always serve the latest version, add this to your config:
+frontend:
+ javascript_version: latest
+
+Create a file called hello.html
in your
The hello.html
contains the needed building blocks to create the elements inside the view.
<dom-module id='ha-panel-hello'>
- <template>
- <style>
- p {
- font-weight: bold;
+<dom-module id='ha-panel-hello'>
+ <template>
+ <style>
+ p {
+ font-weight: bold;
}
- </style>
- <p>Hello {{who}}. Greetings from Home Assistant.</p>
- </template>
-</dom-module>
-
-<script>
+ </style>
+ <p>Hello {{who}}. Greetings from Home Assistant.</p>
+ </template>
+</dom-module>
+
+<script>
class HaPanelHello extends Polymer.Element {
static get is() { return 'ha-panel-hello'; }
@@ -121,8 +130,8 @@
}
}
customElements.define(HaPanelHello.is, HaPanelHello);
-</script>
-
+</script>
+
Create an entry for the new panel in your configuration.yaml
file:
panel_custom:
diff --git a/sitemap.xml b/sitemap.xml
index e946d667cf..f7445719d8 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3690,7 +3690,7 @@
https://home-assistant.io/components/switch.hook/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/cookbook/automation_for_rainy_days/
@@ -4362,99 +4362,99 @@
https://home-assistant.io/docs/autostart/init.d/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/api/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/configuration/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/installation/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/operation/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/reboot/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/running/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/updating/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/appdaemon/windows/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/certificates/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/hadashboard/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/hass-configurator/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/ios/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/nginx/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/notebooks/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/scenegen/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/ecosystem/synology/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/tools/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/tools/dev-tools/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/tools/hass/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/docs/tools/scripts/
-2017-12-02T18:38:10+00:00
+2017-12-02T18:50:20+00:00
https://home-assistant.io/faq/after-upgrading/
@@ -5574,62 +5574,62 @@
https://home-assistant.io/demo/frontend.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/index.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-12-02T18:37:09+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-12-02T18:37:10+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-12-02T18:37:10+00:00
+2017-12-02T18:49:41+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-12-02T18:37:10+00:00
+2017-12-02T18:49:41+00:00