mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Add demo
This commit is contained in:
parent
52f81a715e
commit
58ff384360
@ -17,15 +17,26 @@
|
||||
margin-top: -18px;
|
||||
}
|
||||
|
||||
.hero-buttons a {
|
||||
margin: 0 30px 10px 0;
|
||||
|
||||
&:last-child {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
article.post, article.page {
|
||||
table, img {
|
||||
img, table {
|
||||
border-radius: 3px;
|
||||
box-shadow: rgba(0,0,0,0.06) 0 0 10px;
|
||||
}
|
||||
|
||||
table {
|
||||
img.no-shadow {
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
& > table {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
<p class="copyright">
|
||||
All content by {{ site.author }} and licenced under <a href="//creativecommons.org/licenses/by-nc-sa/3.0/ie/">Creative Commons</a>.<br>
|
||||
Code under <a href="//github.com/coogie/oscailte/blob/master/README.md">MIT Licence</a>. <span class="credit">Site powered by <a href="http://octopress.org">Octopress</a></span>
|
||||
<span class="credit">Site powered by <a href="http://octopress.org">Octopress</a>, <a href='http://jekyllrb.com/'>Jekyll</a> and using the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.</span>
|
||||
</p>
|
@ -3,7 +3,8 @@
|
||||
<p class="lead">
|
||||
Home Assistant is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Installation in less then a minute.
|
||||
</p>
|
||||
<p>
|
||||
<a href='{{ root_url }}/getting-started' class='btn' style='margin: 0 50px 10px 0;'>Get started</a>
|
||||
<p class='hero-buttons'>
|
||||
<a href='{{ root_url }}/demo' target='_blank' class='btn'>View demo</a>
|
||||
<a href='{{ root_url }}/getting-started' class='btn'>Get started</a>
|
||||
<a href='https://www.github.com/balloob/home-assistant' class='btn'>Browse code on GitHub</a>
|
||||
</p>
|
@ -9,7 +9,7 @@ footer: true
|
||||
---
|
||||
|
||||
<a href='{{ root_url }}/images/ha_architecture.png'>
|
||||
<img src='{{ root_url }}/images/ha_architecture.png' style='border: 0; box-shadow: none;'/>
|
||||
<img src='{{ root_url }}/images/ha_architecture.png' class='no-shadow' />
|
||||
</a>
|
||||
|
||||
The core of Home Assistant exists of the following parts.
|
||||
@ -47,7 +47,7 @@ Home Assistant supports running multiple synchronzied instances using a master-s
|
||||
Because each slave maintains its own ServiceRegistry it is possible to have multiple slaves respond to one service call.
|
||||
|
||||
<a href='{{ root_url }}/images/architecture-remote.png'>
|
||||
<img src='{{ root_url }}/images/architecture-remote.png' style='border: 0; box-shadow: none;' />
|
||||
<img src='{{ root_url }}/images/architecture-remote.png' class='no-shadow' />
|
||||
</a>
|
||||
|
||||
A slave instance can be started with the following code and has the same support for components as a master-instance.
|
||||
|
18
source/demo/events.json
Normal file
18
source/demo/events.json
Normal file
@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"event": "time_changed",
|
||||
"listener_count": 1
|
||||
},
|
||||
{
|
||||
"event": "call_service",
|
||||
"listener_count": 1
|
||||
},
|
||||
{
|
||||
"event": "homeassistant_stop",
|
||||
"listener_count": 2
|
||||
},
|
||||
{
|
||||
"event": "state_changed",
|
||||
"listener_count": 3
|
||||
}
|
||||
]
|
64
source/demo/frontend.html
Normal file
64
source/demo/frontend.html
Normal file
File diff suppressed because one or more lines are too long
18
source/demo/index.html
Normal file
18
source/demo/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Home Assistant</title>
|
||||
<meta name='mobile-web-app-capable' content='yes'>
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192'>
|
||||
<meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0' />
|
||||
<meta name='theme-color' content='#03a9f4'>
|
||||
</head>
|
||||
<body fullbleed>
|
||||
<h3 id='init' align='center'>Initializing Home Assistant</h3>
|
||||
<script src='/demo/webcomponents.js'>
|
||||
</script>
|
||||
<link rel='import' href='/demo/frontend.html' />
|
||||
<splash-login auth='password'></splash-login>
|
||||
</body>
|
||||
</html>
|
24
source/demo/services.json
Normal file
24
source/demo/services.json
Normal file
@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"domain": "homeassistant",
|
||||
"services": [
|
||||
"stop",
|
||||
"turn_off",
|
||||
"turn_on"
|
||||
]
|
||||
},
|
||||
{
|
||||
"domain": "light",
|
||||
"services": [
|
||||
"turn_off",
|
||||
"turn_on"
|
||||
]
|
||||
},
|
||||
{
|
||||
"domain": "switch",
|
||||
"services": [
|
||||
"turn_off",
|
||||
"turn_on"
|
||||
]
|
||||
}
|
||||
]
|
166
source/demo/states.json
Normal file
166
source/demo/states.json
Normal file
@ -0,0 +1,166 @@
|
||||
[
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "a.Demo_Mode",
|
||||
"last_changed": "14:55:24 21-12-2014",
|
||||
"state": "Enabled"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"brightness": 200,
|
||||
"xy_color": [
|
||||
0.861,
|
||||
0.3259
|
||||
]
|
||||
},
|
||||
"entity_id": "light.Ceiling",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "light.TV_Back_light",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "off"
|
||||
},
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "process.XBMC",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "switch.Christmas_Lights",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "off"
|
||||
},
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "switch.AC",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"auto": true,
|
||||
"entity_id": [
|
||||
"device_tracker.Paulus",
|
||||
"device_tracker.Anne_Therese"
|
||||
]
|
||||
},
|
||||
"entity_id": "group.all_devices",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "home"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"auto": false,
|
||||
"entity_id": [
|
||||
"light.Bowl",
|
||||
"light.Ceiling",
|
||||
"light.TV_Back_light",
|
||||
"switch.AC"
|
||||
]
|
||||
},
|
||||
"entity_id": "group.living_room",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"friendly_name": "Outside temperature",
|
||||
"unit_of_measurement": "\u00b0C"
|
||||
},
|
||||
"entity_id": "tellstick_sensor.Outside_temperature",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "15.6"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"brightness": 200,
|
||||
"xy_color": [
|
||||
0.861,
|
||||
0.3259
|
||||
]
|
||||
},
|
||||
"entity_id": "light.Bowl",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"entity_picture": "http://graph.facebook.com/KillBillMovie/picture",
|
||||
"friendly_name": "Living Room"
|
||||
},
|
||||
"entity_id": "chromecast.Living_Rm",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "Netflix"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"friendly_name": "Outside humidity",
|
||||
"unit_of_measurement": "%"
|
||||
},
|
||||
"entity_id": "tellstick_sensor.Outside_humidity",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "54"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"next_rising": "06:47:45 22-12-2014",
|
||||
"next_setting": "16:46:55 21-12-2014"
|
||||
},
|
||||
"entity_id": "sun.sun",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "above_horizon"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"entity_picture": "http://graph.facebook.com/schoutsen/picture"
|
||||
},
|
||||
"entity_id": "device_tracker.Paulus",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "home"
|
||||
},
|
||||
{
|
||||
"attributes": {},
|
||||
"entity_id": "light.Bed_light",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "off"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"auto": false,
|
||||
"entity_id": [
|
||||
"light.Bed_light",
|
||||
"switch.Christmas_Lights"
|
||||
]
|
||||
},
|
||||
"entity_id": "group.bedroom",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "off"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"auto": true,
|
||||
"entity_id": [
|
||||
"light.Bowl",
|
||||
"light.Ceiling",
|
||||
"light.TV_Back_light",
|
||||
"light.Bed_light"
|
||||
]
|
||||
},
|
||||
"entity_id": "group.all_lights",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "on"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"entity_picture": "http://graph.facebook.com/anne.t.frederiksen/picture"
|
||||
},
|
||||
"entity_id": "device_tracker.Anne_Therese",
|
||||
"last_changed": "14:55:25 21-12-2014",
|
||||
"state": "not_home"
|
||||
}
|
||||
]
|
15
source/demo/webcomponents.js
Normal file
15
source/demo/webcomponents.js
Normal file
File diff suppressed because one or more lines are too long
BIN
source/static/favicon-192x192.png
Normal file
BIN
source/static/favicon-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
Loading…
x
Reference in New Issue
Block a user