This commit is contained in:
Paulus Schoutsen 2014-12-21 15:25:26 -08:00
parent 52f81a715e
commit 58ff384360
11 changed files with 325 additions and 9 deletions

18
source/demo/events.json Normal file
View 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

File diff suppressed because one or more lines are too long

18
source/demo/index.html Normal file
View 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
View 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
View 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"
}
]

File diff suppressed because one or more lines are too long