Compare commits
276 Commits
20181211.2
...
20190202.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cf1b9e5067 | ||
![]() |
83aaf4699c | ||
![]() |
72aa98fe5c | ||
![]() |
86b353e627 | ||
![]() |
79183bb6ea | ||
![]() |
4921686bdf | ||
![]() |
a5bdf096dc | ||
![]() |
bfee69e7ff | ||
![]() |
db53d37493 | ||
![]() |
c294124b8d | ||
![]() |
2afc8607c6 | ||
![]() |
e2ff51f425 | ||
![]() |
25a579f7ed | ||
![]() |
ecd33fd93c | ||
![]() |
960707b804 | ||
![]() |
4cd3b683a7 | ||
![]() |
d0b507561d | ||
![]() |
d8d3149558 | ||
![]() |
41b086cd3c | ||
![]() |
6fc20450b4 | ||
![]() |
c00930f45e | ||
![]() |
77935b7c7a | ||
![]() |
03f7a23540 | ||
![]() |
f1f1623d2f | ||
![]() |
b86bfa0395 | ||
![]() |
75235ec544 | ||
![]() |
7cb2b743fa | ||
![]() |
175693ba4e | ||
![]() |
c7d1417f48 | ||
![]() |
db92abad66 | ||
![]() |
e42e59871e | ||
![]() |
f97b5c48d0 | ||
![]() |
f22510fd74 | ||
![]() |
e789380126 | ||
![]() |
9086051608 | ||
![]() |
a0f0d49f45 | ||
![]() |
bc87e05e2d | ||
![]() |
b0958f589b | ||
![]() |
b37eee56c0 | ||
![]() |
2ad27f7400 | ||
![]() |
95e9d6164d | ||
![]() |
43bc9abb46 | ||
![]() |
ab816ad529 | ||
![]() |
c964ea30e0 | ||
![]() |
73b500db64 | ||
![]() |
633fc1372f | ||
![]() |
dedb36cecf | ||
![]() |
13aa0568a6 | ||
![]() |
a090b291aa | ||
![]() |
30ab056aa4 | ||
![]() |
5a797a6dec | ||
![]() |
d76ffd343e | ||
![]() |
20ecfffb9c | ||
![]() |
d2bfd5ce62 | ||
![]() |
0cdb96f917 | ||
![]() |
fd4ede39ba | ||
![]() |
fa3889b549 | ||
![]() |
d71d5aa855 | ||
![]() |
644af4d009 | ||
![]() |
9f4ae5d932 | ||
![]() |
7a8c9d7c12 | ||
![]() |
89630a5c7f | ||
![]() |
13adee09da | ||
![]() |
c3f473c3e7 | ||
![]() |
0a09eabce3 | ||
![]() |
3e1c22edcd | ||
![]() |
ccb12996f8 | ||
![]() |
d6887758a9 | ||
![]() |
9299d548ba | ||
![]() |
7dda98f139 | ||
![]() |
6b8e90ce67 | ||
![]() |
c20fae289c | ||
![]() |
8db111c2fb | ||
![]() |
5a6d537d43 | ||
![]() |
1ffeace8f9 | ||
![]() |
7bf8ea9d0a | ||
![]() |
85e900bf68 | ||
![]() |
6f9b7a1f60 | ||
![]() |
cad4fa408e | ||
![]() |
dc334844ed | ||
![]() |
4e86cf01b8 | ||
![]() |
2bfd7ff33b | ||
![]() |
b1d5517864 | ||
![]() |
334c4fe90f | ||
![]() |
77f6016701 | ||
![]() |
a2816800e8 | ||
![]() |
e3d32c9dd0 | ||
![]() |
37b2154638 | ||
![]() |
28d3f445f6 | ||
![]() |
45e50ea948 | ||
![]() |
f3eaba4b23 | ||
![]() |
96f7f842cd | ||
![]() |
bc6debc6c9 | ||
![]() |
a9df5ea6a9 | ||
![]() |
c972d039bc | ||
![]() |
d130471a99 | ||
![]() |
52e31648bf | ||
![]() |
40d12fa870 | ||
![]() |
d5728579e0 | ||
![]() |
257ff7707b | ||
![]() |
b8851a7f3e | ||
![]() |
a4680feb92 | ||
![]() |
ca02080cf1 | ||
![]() |
08824b5796 | ||
![]() |
99ded45bb0 | ||
![]() |
bc8cc32445 | ||
![]() |
5cc75c294e | ||
![]() |
035e6752eb | ||
![]() |
c1913799f2 | ||
![]() |
ceb86df0fa | ||
![]() |
24b0eb8ce4 | ||
![]() |
547f829f5b | ||
![]() |
16c9303ae9 | ||
![]() |
6d329bdd1f | ||
![]() |
1c6f7d32cf | ||
![]() |
9a86b06092 | ||
![]() |
0e1eaa18df | ||
![]() |
ad98534195 | ||
![]() |
b261e779e5 | ||
![]() |
f9e97c0577 | ||
![]() |
5276db5d23 | ||
![]() |
6bf954ccb2 | ||
![]() |
26dbef8d4c | ||
![]() |
1d1e85e1d7 | ||
![]() |
755a3d5cf1 | ||
![]() |
e9c5011a6d | ||
![]() |
871ee33229 | ||
![]() |
3b66d58f91 | ||
![]() |
69c10256ef | ||
![]() |
480b92c960 | ||
![]() |
6098b433be | ||
![]() |
d91bf4c2a9 | ||
![]() |
bad9369ce6 | ||
![]() |
3ba9189612 | ||
![]() |
bb71fe0bec | ||
![]() |
65359aabe3 | ||
![]() |
233b646917 | ||
![]() |
3263d84def | ||
![]() |
faee6a7163 | ||
![]() |
00ad91af9a | ||
![]() |
4081fea5f2 | ||
![]() |
97f7da198c | ||
![]() |
f6be8153bb | ||
![]() |
d67e035198 | ||
![]() |
f7a67af71b | ||
![]() |
41554ab14d | ||
![]() |
1b2e052f05 | ||
![]() |
427f0f5e66 | ||
![]() |
86502c5cd8 | ||
![]() |
edf7485578 | ||
![]() |
01c5b64c63 | ||
![]() |
690188b4a3 | ||
![]() |
42e60beb0d | ||
![]() |
0ddc82601a | ||
![]() |
f943366ecd | ||
![]() |
732237d4e1 | ||
![]() |
d8d77d0238 | ||
![]() |
f98fff9ffd | ||
![]() |
9565b5490b | ||
![]() |
8b19ea8e87 | ||
![]() |
2e6d79a60f | ||
![]() |
07f624fd1c | ||
![]() |
3408392aea | ||
![]() |
864f2619a2 | ||
![]() |
bd2c57169b | ||
![]() |
8f1c75c57b | ||
![]() |
1c86fbd52c | ||
![]() |
937a939907 | ||
![]() |
7173b16ef3 | ||
![]() |
d738f6e2f6 | ||
![]() |
b0d32b5674 | ||
![]() |
0f53b7c832 | ||
![]() |
668d4e82ba | ||
![]() |
963bdcc53c | ||
![]() |
d34dada9d8 | ||
![]() |
5ae599b1b2 | ||
![]() |
ebbd308be6 | ||
![]() |
6d43c9e86a | ||
![]() |
339a0f70e3 | ||
![]() |
94df67a7cb | ||
![]() |
1d4f74cda3 | ||
![]() |
07a4505f1e | ||
![]() |
e96c9daad6 | ||
![]() |
08f3496818 | ||
![]() |
326931277e | ||
![]() |
a2ef8bbe70 | ||
![]() |
4bcb51bf5a | ||
![]() |
bda5c3a0c9 | ||
![]() |
e228f60c39 | ||
![]() |
67c032c85a | ||
![]() |
417ffde3e8 | ||
![]() |
f3064f0071 | ||
![]() |
e9d912cc87 | ||
![]() |
2517e5ba60 | ||
![]() |
64b405dd4d | ||
![]() |
ddb050d1fd | ||
![]() |
3f6a8cac80 | ||
![]() |
ad113367e6 | ||
![]() |
f4f08ab0d1 | ||
![]() |
c2a57099d3 | ||
![]() |
adf0c6d891 | ||
![]() |
38a2627227 | ||
![]() |
5a90edc893 | ||
![]() |
88473581c2 | ||
![]() |
88d23eb9dd | ||
![]() |
25c788871f | ||
![]() |
f272801253 | ||
![]() |
2e750dc1e2 | ||
![]() |
3c5fb6d1ad | ||
![]() |
32cd683b8a | ||
![]() |
6c029b39e0 | ||
![]() |
79b71ed753 | ||
![]() |
49fa74cc07 | ||
![]() |
0a2eaec884 | ||
![]() |
4c5d3138c1 | ||
![]() |
5e1cd389b3 | ||
![]() |
7ced08a899 | ||
![]() |
603cf7ba0f | ||
![]() |
c47ba65c3b | ||
![]() |
849ed80e78 | ||
![]() |
b78c48ecec | ||
![]() |
8d2da9c5a6 | ||
![]() |
9664e8258c | ||
![]() |
64714c64c7 | ||
![]() |
b7c34c483a | ||
![]() |
e5bf842801 | ||
![]() |
d1a56d6acc | ||
![]() |
cac7f8d1ab | ||
![]() |
9d2b37c9f2 | ||
![]() |
e20a02c52c | ||
![]() |
c46d04eaa6 | ||
![]() |
2ec8b97378 | ||
![]() |
b3b9ca9c3f | ||
![]() |
71ed83ef07 | ||
![]() |
47635055d0 | ||
![]() |
0dfca2f33b | ||
![]() |
18de427145 | ||
![]() |
118f28285e | ||
![]() |
6a9cfbfa1c | ||
![]() |
8c61624a9c | ||
![]() |
d277571735 | ||
![]() |
a6f3684846 | ||
![]() |
edef4ba2f5 | ||
![]() |
7cd6619a79 | ||
![]() |
2059e36dd6 | ||
![]() |
4a455e9147 | ||
![]() |
fe0b131480 | ||
![]() |
b1b78c2bb7 | ||
![]() |
99395360c7 | ||
![]() |
bd46e3b8e0 | ||
![]() |
80dd15306e | ||
![]() |
88f0ebf75d | ||
![]() |
8679f10f10 | ||
![]() |
db4c1e45f5 | ||
![]() |
65cf2feb7a | ||
![]() |
97da26eba7 | ||
![]() |
8e7d7c5188 | ||
![]() |
767307ef47 | ||
![]() |
ccc6262026 | ||
![]() |
2cdb542112 | ||
![]() |
4e232e58ce | ||
![]() |
27bb175624 | ||
![]() |
5a5a7dad1e | ||
![]() |
2d1cf421ef | ||
![]() |
8be25f2020 | ||
![]() |
0a8f853a8e | ||
![]() |
a46f5e3d4e | ||
![]() |
5de36f9579 | ||
![]() |
9b5e79f42a | ||
![]() |
a824599a37 | ||
![]() |
884b24da0e | ||
![]() |
76325a384c | ||
![]() |
e2218f1e6e | ||
![]() |
758b686684 | ||
![]() |
0319fd23c5 | ||
![]() |
d7e5993501 |
@@ -8,7 +8,8 @@
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"pragma": "h"
|
||||
"pragma": "h",
|
||||
"version": "15.0"
|
||||
},
|
||||
"import/resolver": {
|
||||
"webpack": {
|
||||
@@ -18,6 +19,7 @@
|
||||
},
|
||||
"globals": {
|
||||
"__DEV__": false,
|
||||
"__DEMO__": false,
|
||||
"__BUILD__": false,
|
||||
"__VERSION__": false,
|
||||
"__STATIC_PATH__": false,
|
||||
|
2
.gitattributes
vendored
@@ -9,3 +9,5 @@
|
||||
*.png binary
|
||||
*.zip binary
|
||||
*.mp3 binary
|
||||
|
||||
demo/public/api/camera_proxy_stream/* binary
|
||||
|
1
.gitignore
vendored
@@ -6,6 +6,7 @@ npm-debug.log
|
||||
hass_frontend/*
|
||||
hass_frontend_es5/*
|
||||
.reify-cache
|
||||
demo/hademo-icons.html
|
||||
|
||||
# Python stuff
|
||||
*.py[cod]
|
||||
|
5
.vscode/extensions.json
vendored
@@ -2,6 +2,7 @@
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"eg2.tslint",
|
||||
"esbenp.prettier-vscode"
|
||||
"esbenp.prettier-vscode",
|
||||
"bierner.lit-html"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
7
config/.eslintrc.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "../.eslintrc.json",
|
||||
"rules": {
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"global-require": 0
|
||||
}
|
||||
}
|
29
config/minimizer.js
Normal file
@@ -0,0 +1,29 @@
|
||||
const BabelMinifyPlugin = require("babel-minify-webpack-plugin");
|
||||
|
||||
module.exports.minimizer = [
|
||||
// Took options from Polymer build tool
|
||||
// https://github.com/Polymer/tools/blob/master/packages/build/src/js-transform.ts
|
||||
new BabelMinifyPlugin(
|
||||
{
|
||||
// Disable the minify-constant-folding plugin because it has a bug relating
|
||||
// to invalid substitution of constant values into export specifiers:
|
||||
// https://github.com/babel/minify/issues/820
|
||||
evaluate: false,
|
||||
|
||||
// TODO(aomarks) Find out why we disabled this plugin.
|
||||
simplifyComparisons: false,
|
||||
|
||||
// Prevent removal of things that babel thinks are unreachable, but sometimes
|
||||
// gets wrong: https://github.com/Polymer/tools/issues/724
|
||||
deadcode: false,
|
||||
|
||||
// Disable the simplify plugin because it can eat some statements preceeding
|
||||
// loops. https://github.com/babel/minify/issues/824
|
||||
simplify: false,
|
||||
|
||||
// This is breaking ES6 output. https://github.com/Polymer/tools/issues/261
|
||||
mangle: false,
|
||||
},
|
||||
{}
|
||||
),
|
||||
];
|
BIN
demo/public/api/camera_proxy_stream/camera.backyard
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
demo/public/api/camera_proxy_stream/camera.driveway
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
demo/public/api/camera_proxy_stream/camera.patio
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
demo/public/api/camera_proxy_stream/camera.porch
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
demo/public/assets/arsaboo/floorplans/ecobee_blank.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
demo/public/assets/arsaboo/floorplans/main.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
demo/public/assets/arsaboo/floorplans/second.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
demo/public/assets/arsaboo/icons/Harmony.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
demo/public/assets/arsaboo/icons/abode_disabled.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
demo/public/assets/arsaboo/icons/abode_enabled.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
demo/public/assets/arsaboo/icons/automation_disabled.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
demo/public/assets/arsaboo/icons/automation_enabled.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_backyard_recording.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_backyard_streaming.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_driveway_recording.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_driveway_streaming.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_patio_recording.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_patio_streaming.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_porch_recording.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_porch_streaming.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
demo/public/assets/arsaboo/icons/ecobee_blank.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
demo/public/assets/arsaboo/icons/garage_door_closed.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
demo/public/assets/arsaboo/icons/garage_door_open.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_bulb_off.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_bulb_on.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
demo/public/assets/arsaboo/icons/light_off.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_on.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
demo/public/assets/arsaboo/icons/security_armed_red.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
demo/public/assets/arsaboo/icons/security_disarmed.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_disabled.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_enabled.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_off2.png
Normal file
After Width: | Height: | Size: 767 B |
BIN
demo/public/assets/arsaboo/icons/tv_on2.png
Normal file
After Width: | Height: | Size: 805 B |
BIN
demo/public/assets/jimpower/background-15.jpg
Normal file
After Width: | Height: | Size: 232 KiB |
BIN
demo/public/assets/jimpower/cardbackK.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
demo/public/assets/jimpower/home/bus_10.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
demo/public/assets/jimpower/home/git.png
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
demo/public/assets/jimpower/home/house_4.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
demo/public/assets/jimpower/home/james_10.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
demo/public/assets/jimpower/home/tina_4.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
demo/public/assets/jimpower/security/air_8.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
demo/public/assets/jimpower/security/alarm_3.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
demo/public/assets/jimpower/security/door_3.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
demo/public/assets/jimpower/security/leak_2.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
demo/public/assets/jimpower/security/motion_3.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
demo/public/assets/jimpower/security/smoke_4.jpg
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
demo/public/assets/jimpower/security/window_2.jpg
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
demo/public/assets/kernehed/bella.jpg
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
demo/public/assets/kernehed/camera.entre.jpg
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
demo/public/assets/kernehed/oscar.jpg
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
demo/public/assets/teachingbirds/House_square.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
demo/public/assets/teachingbirds/Stefan_square.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
demo/public/assets/teachingbirds/background_square.png
Normal file
After Width: | Height: | Size: 781 B |
BIN
demo/public/assets/teachingbirds/cleaning_square.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
demo/public/assets/teachingbirds/clothes_drying_square.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
demo/public/assets/teachingbirds/dryer_square.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
demo/public/assets/teachingbirds/folded_clothes_square.jpg
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
demo/public/assets/teachingbirds/guests_square.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
demo/public/assets/teachingbirds/isa_square.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
demo/public/assets/teachingbirds/laundry_clean_2_square.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
demo/public/assets/teachingbirds/laundry_running_square.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
demo/public/assets/teachingbirds/mailbox_bw_square.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
demo/public/assets/teachingbirds/mailbox_square.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
demo/public/assets/teachingbirds/meteogram.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
demo/public/assets/teachingbirds/plants.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
demo/public/assets/teachingbirds/radiator_off.jpg
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
demo/public/assets/teachingbirds/radiator_on.jpg
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
demo/public/assets/teachingbirds/roomba_bw_square.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
demo/public/assets/teachingbirds/roomba_square.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
demo/public/assets/teachingbirds/trash_bear_bw_square.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
demo/public/assets/teachingbirds/trash_square.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
demo/public/assets/teachingbirds/washer_square.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
112
demo/public/index.html
Normal file
@@ -0,0 +1,112 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
|
||||
<link rel="icon" href="/static/icons/favicon.ico" />
|
||||
<link rel="mask-icon" href="/static/icons/mask-icon.svg" color="#03a9f4" />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/static/fonts/roboto/Roboto-Regular.ttf"
|
||||
as="font"
|
||||
crossorigin
|
||||
/>
|
||||
<link
|
||||
rel="preload"
|
||||
href="/static/fonts/roboto/Roboto-Medium.ttf"
|
||||
as="font"
|
||||
crossorigin
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="/static/icons/favicon-apple-180x180.png"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta
|
||||
name="msapplication-square70x70logo"
|
||||
content="/static/icons/tile-win-70x70.png"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-square150x150logo"
|
||||
content="/static/icons/tile-win-150x150.png"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-wide310x150logo"
|
||||
content="/static/icons/tile-win-310x150.png"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-square310x310logo"
|
||||
content="/static/icons/tile-win-310x310.png"
|
||||
/>
|
||||
<meta name="msapplication-TileColor" content="#03a9f4ff" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="referrer" content="same-origin" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
<meta name="theme-color" content="#03a9f4" />
|
||||
<meta property="fb:app_id" content="338291289691179" />
|
||||
<meta property="og:title" content="Home Assistant Demo" />
|
||||
<meta property="og:site_name" content="Home Assistant" />
|
||||
<meta property="og:url" content="https://demo.home-assistant.io/" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Open source home automation that puts local control and privacy first."
|
||||
/>
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://www.home-assistant.io/images/default-social.png"
|
||||
/>
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:site" content="@home_assistant" />
|
||||
|
||||
<meta name="twitter:title" content="Home Assistant" />
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Open source home automation that puts local control and privacy first."
|
||||
/>
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content="https://www.home-assistant.io/images/default-social.png"
|
||||
/>
|
||||
<title>Home Assistant Demo</title>
|
||||
<script src="./custom-elements-es5-adapter.js"></script>
|
||||
<script src="./compatibility.js"></script>
|
||||
<script src="./main.js" async></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: Roboto, Noto, sans-serif;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-weight: 400;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#ha-init-skeleton::before {
|
||||
display: block;
|
||||
content: "";
|
||||
height: 112px;
|
||||
background-color: #03a9f4;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ha-demo><div id="ha-init-skeleton"></div></ha-demo>
|
||||
<script>
|
||||
var _gaq = [["_setAccount", "UA-57927901-5"], ["_trackPageview"]];
|
||||
(function(d, t) {
|
||||
var g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
g.src =
|
||||
("https:" == location.protocol ? "//ssl" : "//www") +
|
||||
".google-analytics.com/ga.js";
|
||||
s.parentNode.insertBefore(g, s);
|
||||
})(document, "script");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
33
demo/public/manifest.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"background_color": "#FFFFFF",
|
||||
"description": "Open-source home automation platform running on Python 3.",
|
||||
"dir": "ltr",
|
||||
"display": "standalone",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/static/icons/favicon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/static/icons/favicon-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/static/icons/favicon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/static/icons/favicon-1024x1024.png",
|
||||
"sizes": "1024x1024",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"lang": "en-US",
|
||||
"name": "Home Assistant Demo",
|
||||
"short_name": "Demo",
|
||||
"start_url": "/?homescreen=1",
|
||||
"theme_color": "#03A9F4"
|
||||
}
|
19
demo/script/build_demo
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Build the demo
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
OUTPUT_DIR=dist
|
||||
|
||||
rm -rf $OUTPUT_DIR
|
||||
mkdir $OUTPUT_DIR
|
||||
node script/gen-icons.js
|
||||
|
||||
cd ..
|
||||
DEMO=1 ./node_modules/.bin/gulp build-translations gen-icons
|
||||
cd demo
|
||||
|
||||
NODE_ENV=production ../node_modules/.bin/webpack -p --config webpack.config.js
|
15
demo/script/develop_demo
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Develop the demo
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
node script/gen-icons.js
|
||||
|
||||
cd ..
|
||||
DEMO=1 ./node_modules/.bin/gulp build-translations gen-icons
|
||||
cd demo
|
||||
|
||||
../node_modules/.bin/webpack-dev-server
|
15
demo/script/gen-icons.js
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
const fs = require("fs");
|
||||
const {
|
||||
findIcons,
|
||||
generateIconset,
|
||||
genMDIIcons,
|
||||
} = require("../../gulp/tasks/gen-icons.js");
|
||||
|
||||
function genHademoIcons() {
|
||||
const iconNames = findIcons("./src", "hademo");
|
||||
fs.writeFileSync("./hademo-icons.html", generateIconset("hademo", iconNames));
|
||||
}
|
||||
|
||||
genMDIIcons();
|
||||
genHademoIcons();
|
7529
demo/src/configs/arsaboo/entities.ts
Normal file
13
demo/src/configs/arsaboo/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DemoConfig } from "../types";
|
||||
import { demoLovelaceArsaboo } from "./lovelace";
|
||||
import { demoEntitiesArsaboo } from "./entities";
|
||||
import { demoThemeArsaboo } from "./theme";
|
||||
|
||||
export const demoArsaboo: DemoConfig = {
|
||||
authorName: "Arsaboo",
|
||||
authorUrl: "https://github.com/arsaboo/homeassistant-config/",
|
||||
name: "ARS Home",
|
||||
lovelace: demoLovelaceArsaboo,
|
||||
entities: demoEntitiesArsaboo,
|
||||
theme: demoThemeArsaboo,
|
||||
};
|
2624
demo/src/configs/arsaboo/lovelace.ts
Normal file
1
demo/src/configs/arsaboo/theme.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const demoThemeArsaboo = () => ({});
|
31
demo/src/configs/demo-configs.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { MockHomeAssistant } from "../../../src/fake_data/provide_hass";
|
||||
import { Lovelace } from "../../../src/panels/lovelace/types";
|
||||
import { DemoConfig } from "./types";
|
||||
|
||||
export const demoConfigs: Array<() => Promise<DemoConfig>> = [
|
||||
() => import("./arsaboo").then((mod) => mod.demoArsaboo),
|
||||
() => import("./teachingbirds").then((mod) => mod.demoTeachingbirds),
|
||||
() => import("./kernehed").then((mod) => mod.demoKernehed),
|
||||
() => import("./jimpower").then((mod) => mod.demoJimpower),
|
||||
];
|
||||
|
||||
export let selectedDemoConfigIndex: number = 0;
|
||||
export let selectedDemoConfig: Promise<DemoConfig> = demoConfigs[
|
||||
selectedDemoConfigIndex
|
||||
]();
|
||||
|
||||
export const setDemoConfig = async (
|
||||
hass: MockHomeAssistant,
|
||||
lovelace: Lovelace,
|
||||
index: number
|
||||
) => {
|
||||
const confProm = demoConfigs[index]();
|
||||
const config = await confProm;
|
||||
|
||||
selectedDemoConfigIndex = index;
|
||||
selectedDemoConfig = confProm;
|
||||
|
||||
hass.addEntities(config.entities(), true);
|
||||
lovelace.saveConfig(config.lovelace());
|
||||
hass.mockTheme(config.theme());
|
||||
};
|
13271
demo/src/configs/jimpower/entities.ts
Normal file
13
demo/src/configs/jimpower/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DemoConfig } from "../types";
|
||||
import { demoLovelaceJimpower } from "./lovelace";
|
||||
import { demoEntitiesJimpower } from "./entities";
|
||||
import { demoThemeJimpower } from "./theme";
|
||||
|
||||
export const demoJimpower: DemoConfig = {
|
||||
authorName: "Jimpower",
|
||||
authorUrl: "https://github.com/JamesMcCarthy79/Home-Assistant-Config",
|
||||
name: "Kingia Castle",
|
||||
lovelace: demoLovelaceJimpower,
|
||||
entities: demoEntitiesJimpower,
|
||||
theme: demoThemeJimpower,
|
||||
};
|
1420
demo/src/configs/jimpower/lovelace.ts
Normal file
49
demo/src/configs/jimpower/theme.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
export const demoThemeJimpower = () => ({
|
||||
"text-primary-color": "var(--primary-text-color)",
|
||||
"paper-item-icon-color": "var(--primary-text-color)",
|
||||
"primary-color": "#5294E2",
|
||||
"label-badge-red": "var(--accent-color)",
|
||||
"paper-tabs-selection-bar-color": "green",
|
||||
"paper-slider-knob-color": "var(--accent-color)",
|
||||
"light-primary-color": "var(--accent-color)",
|
||||
"primary-background-color": "#383C45",
|
||||
"primary-text-color": "#FFFFFF",
|
||||
"paper-item-selected_-_background-color": "#434954",
|
||||
"paper-slider-active-color": "var(--accent-color)",
|
||||
"secondary-background-color": "#383C45",
|
||||
"paper-slider-container-color":
|
||||
"linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat",
|
||||
"paper-slider-disabled-active-color": "var(--disabled-text-color)",
|
||||
"disabled-text-color": "#7F848E",
|
||||
"paper-item-icon_-_color": "green",
|
||||
"paper-grey-200": "#414A59",
|
||||
"label-badge-background-color": "#2E333A",
|
||||
"paper-card-header-color": "var(--accent-color)",
|
||||
"sidebar-icon-color": "var(--paper-item-icon-color)",
|
||||
"paper-listbox-background-color": "#2E333A",
|
||||
"table-row-background-color": "#353840",
|
||||
"paper-grey-50": "var(--primary-text-color)",
|
||||
"paper-toggle-button-checked-button-color": "var(--accent-color)",
|
||||
"paper-dialog-background-color": "#434954",
|
||||
"secondary-text-color": "#5294E2",
|
||||
"google-red-500": "#E45E65",
|
||||
"divider-color": "rgba(0, 0, 0, .12)",
|
||||
"paper-toggle-button-unchecked-ink-color": "var(--disabled-text-color)",
|
||||
"google-green-500": "#39E949",
|
||||
"paper-toggle-button-unchecked-button-color": "var(--disabled-text-color)",
|
||||
"label-badge-border-color": "green",
|
||||
"paper-listbox-color": "var(--primary-color)",
|
||||
"paper-slider-disabled-secondary-color": "var(--disabled-text-color)",
|
||||
"paper-toggle-button-checked-ink-color": "var(--accent-color)",
|
||||
"paper-card-background-color": "#434954",
|
||||
"label-badge-text-color": "var(--primary-text-color)",
|
||||
"paper-slider-knob-start-color": "var(--accent-color)",
|
||||
"paper-toggle-button-unchecked-bar-color": "var(--disabled-text-color)",
|
||||
"dark-primary-color": "var(--accent-color)",
|
||||
"paper-slider-secondary-color": "var(--secondary-background-color)",
|
||||
"paper-slider-pin-color": "var(--accent-color)",
|
||||
"paper-item-icon-active-color": "#F9C536",
|
||||
"accent-color": "#E45E65",
|
||||
"paper-toggle-button-checked-bar-color": "var(--accent-color)",
|
||||
"table-row-alternative-background-color": "#3E424B",
|
||||
});
|
8759
demo/src/configs/kernehed/entities.ts
Normal file
13
demo/src/configs/kernehed/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DemoConfig } from "../types";
|
||||
import { demoLovelaceKernehed } from "./lovelace";
|
||||
import { demoEntitiesKernehed } from "./entities";
|
||||
import { demoThemeKernehed } from "./theme";
|
||||
|
||||
export const demoKernehed: DemoConfig = {
|
||||
authorName: "Kernehed",
|
||||
authorUrl: "https://github.com/kernehed",
|
||||
name: "Hem",
|
||||
lovelace: demoLovelaceKernehed,
|
||||
entities: demoEntitiesKernehed,
|
||||
theme: demoThemeKernehed,
|
||||
};
|
485
demo/src/configs/kernehed/lovelace.ts
Normal file
@@ -0,0 +1,485 @@
|
||||
import { LovelaceConfig } from "../../../../src/data/lovelace";
|
||||
|
||||
export const demoLovelaceKernehed: () => LovelaceConfig = () => ({
|
||||
name: "Hem",
|
||||
resources: [
|
||||
// {
|
||||
// url: "/local/custom-lovelace/monster-card.js",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/mini-media-player-bundle.js?v=0.9.8",
|
||||
// type: "module",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/slideshow-card.js?=1.1.0",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/fold-entity-row.js?v=3ae2c4",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/swipe-card/swipe-card.js?v=2.0.0",
|
||||
// type: "module",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/upcoming-media-card/upcoming-media-card.js",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/tracker-card.js?v=0.1.5",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/card-tools.js?v=6ce5d0",
|
||||
// type: "js",
|
||||
// },
|
||||
// {
|
||||
// url: "/local/custom-lovelace/krisinfo.js?=0.0.1",
|
||||
// type: "js",
|
||||
// },
|
||||
],
|
||||
views: [
|
||||
{
|
||||
cards: [
|
||||
{ type: "custom:ha-demo-card" },
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
image: "/assets/kernehed/oscar.jpg",
|
||||
elements: [
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "93%",
|
||||
left: "20%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.oskar_devices",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "93%",
|
||||
left: "90%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.battery_oskar",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "93%",
|
||||
left: "55%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.oskar_tid_till_hem",
|
||||
},
|
||||
],
|
||||
type: "picture-elements",
|
||||
},
|
||||
{
|
||||
image: "/assets/kernehed/bella.jpg",
|
||||
elements: [
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "92%",
|
||||
left: "20%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.bella_devices",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "92%",
|
||||
left: "90%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.battery_bella",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
color: "white",
|
||||
top: "92%",
|
||||
left: "55%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.bella_tid_till_hem",
|
||||
},
|
||||
],
|
||||
type: "picture-elements",
|
||||
},
|
||||
],
|
||||
type: "horizontal-stack",
|
||||
},
|
||||
],
|
||||
type: "vertical-stack",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"lock.polycontrol_danalock_v3_btze_locked",
|
||||
"sensor.zwave_battery_front_door",
|
||||
"alarm_control_panel.kernehed_manison",
|
||||
"binary_sensor.dorrklockan",
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Lock",
|
||||
},
|
||||
// {
|
||||
// filter: {
|
||||
// exclude: [
|
||||
// {
|
||||
// state: "not_home",
|
||||
// },
|
||||
// ],
|
||||
// include: [
|
||||
// {
|
||||
// entity_id: "device_tracker.annasiphone",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "device_tracker.iphone_2",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// type: "custom:monster-card",
|
||||
// card: {
|
||||
// show_header_toggle: false,
|
||||
// type: "entities",
|
||||
// title: "G\u00e4ster",
|
||||
// },
|
||||
// show_empty: false,
|
||||
// },
|
||||
// {
|
||||
// filter: {
|
||||
// exclude: [
|
||||
// {
|
||||
// state: "Inget",
|
||||
// },
|
||||
// {
|
||||
// state: "i.u.",
|
||||
// },
|
||||
// ],
|
||||
// include: [
|
||||
// {
|
||||
// entity_id: "sensor.pollen_al",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_alm",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_salg_vide",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_bjork",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_bok",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_ek",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_grabo",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_gras",
|
||||
// },
|
||||
// {
|
||||
// entity_id: "sensor.pollen_hassel",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// type: "custom:monster-card",
|
||||
// card: {
|
||||
// show_header_toggle: false,
|
||||
// type: "entities",
|
||||
// title: "Pollenniv\u00e5er",
|
||||
// },
|
||||
// show_empty: false,
|
||||
// },
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
entities: [
|
||||
"switch.rest_julbelysning",
|
||||
"binary_sensor.front_door_sensor",
|
||||
"binary_sensor.unifi_camera",
|
||||
"binary_sensor.back_door_sensor",
|
||||
],
|
||||
image: "/assets/kernehed/camera.entre.jpg",
|
||||
type: "picture-glance",
|
||||
title: "Entrance camera",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"input_select.christmas_pattern",
|
||||
"input_select.christmas_palette",
|
||||
],
|
||||
type: "entities",
|
||||
},
|
||||
],
|
||||
type: "vertical-stack",
|
||||
},
|
||||
// {
|
||||
// url: "https://embed.windy.com/embed2.html",
|
||||
// type: "iframe",
|
||||
// },
|
||||
{
|
||||
entities: [
|
||||
{
|
||||
name: "Laundry sensor",
|
||||
entity: "binary_sensor.tvattstugan_motion_sensor",
|
||||
},
|
||||
{
|
||||
name: "Pantry sensor",
|
||||
entity: "binary_sensor.skafferiet_motion_sensor",
|
||||
},
|
||||
{
|
||||
name: "Basement sensor",
|
||||
entity: "binary_sensor.kallaren_motion_sensor",
|
||||
},
|
||||
{
|
||||
name: "Stair sensor",
|
||||
entity: "binary_sensor.trapp_motion_sensor",
|
||||
},
|
||||
{
|
||||
name: "Bench sensor",
|
||||
entity: "binary_sensor.banksensor",
|
||||
},
|
||||
{
|
||||
name: "Porch sensor",
|
||||
entity: "binary_sensor.altan_motion_sensor",
|
||||
},
|
||||
{
|
||||
name: "Bathroom sensor",
|
||||
entity: "binary_sensor.badrumssensor",
|
||||
},
|
||||
],
|
||||
type: "glance",
|
||||
show_state: false,
|
||||
},
|
||||
{
|
||||
entities: ["sensor.oskar_bluetooth"],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Occupancy",
|
||||
},
|
||||
// {
|
||||
// filter: {
|
||||
// exclude: [
|
||||
// {
|
||||
// state: false,
|
||||
// },
|
||||
// ],
|
||||
// include: [
|
||||
// {
|
||||
// entity_id:
|
||||
// "binary_sensor.fibaro_system_unknown_type0c02_id1003_sensor_2",
|
||||
// },
|
||||
// {
|
||||
// entity_id:
|
||||
// "binary_sensor.fibaro_system_unknown_type0c02_id1003_sensor_3",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// type: "custom:monster-card",
|
||||
// card: {
|
||||
// show_header_toggle: false,
|
||||
// type: "entities",
|
||||
// title: "Brandvarnare",
|
||||
// },
|
||||
// show_empty: false,
|
||||
// },
|
||||
{
|
||||
type: "weather-forecast",
|
||||
entity: "weather.smhi_vader",
|
||||
},
|
||||
// {
|
||||
// cards: [
|
||||
// {
|
||||
// max: 50,
|
||||
// min: -50,
|
||||
// type: "gauge",
|
||||
// title: "\u00d6verv\u00e5ning",
|
||||
// entity:
|
||||
// "sensor.fibaro_system_unknown_type0c02_id1003_temperature",
|
||||
// },
|
||||
// {
|
||||
// max: 50,
|
||||
// min: -50,
|
||||
// type: "gauge",
|
||||
// title: "Entr\u00e9n",
|
||||
// entity:
|
||||
// "sensor.fibaro_system_unknown_type0c02_id1003_temperature_2",
|
||||
// },
|
||||
// {
|
||||
// max: 50,
|
||||
// min: -50,
|
||||
// type: "gauge",
|
||||
// title: "K\u00e4llaren",
|
||||
// entity:
|
||||
// "sensor.philio_technology_corporation_phpat02beu_multisensor_2in1_temperature",
|
||||
// },
|
||||
// ],
|
||||
// type: "custom:slideshow-card",
|
||||
// arrow_color: "var(--primary-text-color)",
|
||||
// arrow_opacity: 0.7,
|
||||
// },
|
||||
],
|
||||
title: "Home",
|
||||
path: "home",
|
||||
icon: "mdi:home",
|
||||
},
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
entities: [
|
||||
"sensor.processor_use",
|
||||
"sensor.memory_free",
|
||||
"sensor.disk_free_home",
|
||||
"sensor.last_boot",
|
||||
"sensor.db_size",
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "System",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
{
|
||||
entity: "sensor.pi_hole_dns_queries_today",
|
||||
name: "DNS Queries Today",
|
||||
},
|
||||
{
|
||||
entity: "sensor.pi_hole_ads_blocked_today",
|
||||
name: "Ads Blocked Today",
|
||||
},
|
||||
{
|
||||
entity: "sensor.pi_hole_dns_unique_clients",
|
||||
name: "DNS Unique Clients",
|
||||
},
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Pi-Hole",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"sensor.plex",
|
||||
"binary_sensor.gaming_pc",
|
||||
"binary_sensor.server_1",
|
||||
"binary_sensor.server_2",
|
||||
"binary_sensor.windows_server",
|
||||
"binary_sensor.teamspeak",
|
||||
"binary_sensor.harmony_hub",
|
||||
// {
|
||||
// style: {
|
||||
// height: "1px",
|
||||
// width: "85%",
|
||||
// "margin-left": "auto",
|
||||
// background: "#62717b",
|
||||
// "margin-right": "auto",
|
||||
// },
|
||||
// type: "divider",
|
||||
// },
|
||||
// {
|
||||
// items: ["sensor.uptime_router", "sensor.installerad_routeros"],
|
||||
// head: {
|
||||
// entity: "binary_sensor.router",
|
||||
// },
|
||||
// type: "custom:fold-entity-row",
|
||||
// group_config: {
|
||||
// icon: "mdi:router",
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// items: [
|
||||
// "sensor.uptime_router_server",
|
||||
// "sensor.installerad_routeros_server",
|
||||
// ],
|
||||
// head: {
|
||||
// entity: "binary_sensor.router_server",
|
||||
// },
|
||||
// type: "custom:fold-entity-row",
|
||||
// group_config: {
|
||||
// icon: "mdi:router",
|
||||
// },
|
||||
// },
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Network",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"binary_sensor.ubiquiti_controller",
|
||||
"binary_sensor.ubiquiti_switch",
|
||||
"binary_sensor.ubiquiti_nvr",
|
||||
"binary_sensor.entre_kamera",
|
||||
// {
|
||||
// items: ["sensor.uptime_ap_1"],
|
||||
// head: {
|
||||
// entity: "binary_sensor.accesspunkt_1",
|
||||
// },
|
||||
// type: "custom:fold-entity-row",
|
||||
// group_config: {
|
||||
// icon: "router-wireless",
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// items: ["sensor.uptime_ap_2"],
|
||||
// head: {
|
||||
// entity: "binary_sensor.accesspunkt_2",
|
||||
// },
|
||||
// type: "custom:fold-entity-row",
|
||||
// group_config: {
|
||||
// icon: "router-wireless",
|
||||
// },
|
||||
// },
|
||||
"sensor.total_clients_wireless",
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Ubiquiti",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"sensor.qbittorrent_up_speed",
|
||||
"sensor.qbittorrent_down_speed",
|
||||
"sensor.qbittorrent_status",
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Bittorrent",
|
||||
},
|
||||
{
|
||||
entities: [
|
||||
"sensor.speedtest_download",
|
||||
"sensor.speedtest_upload",
|
||||
"sensor.speedtest_ping",
|
||||
],
|
||||
show_header_toggle: false,
|
||||
type: "entities",
|
||||
title: "Bandbredd",
|
||||
},
|
||||
// {
|
||||
// title: "Updater",
|
||||
// type: "custom:tracker-card",
|
||||
// trackers: [
|
||||
// "sensor.custom_card_tracker",
|
||||
// "sensor.custom_component_tracker",
|
||||
// ],
|
||||
// },
|
||||
],
|
||||
title: "System & Network",
|
||||
path: "system_network",
|
||||
icon: "mdi:server-network",
|
||||
},
|
||||
],
|
||||
});
|
50
demo/src/configs/kernehed/theme.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
// https://community.home-assistant.io/t/slate-a-new-dark-theme/86410
|
||||
export const demoThemeKernehed = () => ({
|
||||
"text-primary-color": "var(--primary-text-color)",
|
||||
"paper-item-icon-color": "var(--primary-text-color)",
|
||||
"primary-color": "#2980b9",
|
||||
"label-badge-red": "var(--accent-color)",
|
||||
"paper-tabs-selection-bar-color": "green",
|
||||
"paper-slider-knob-color": "var(--accent-color)",
|
||||
"primary-text-color": "#FFFFFF",
|
||||
"light-primary-color": "var(--accent-color)",
|
||||
"primary-background-color": "#222222",
|
||||
"sidebar-icon-color": "#777777",
|
||||
"paper-item-selected_-_background-color": "#292929",
|
||||
"paper-slider-active-color": "var(--accent-color)",
|
||||
"secondary-background-color": "#222222",
|
||||
"paper-slider-container-color":
|
||||
"linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat",
|
||||
"paper-slider-disabled-active-color": "var(--disabled-text-color)",
|
||||
"disabled-text-color": "#777777",
|
||||
"paper-item-icon_-_color": "green",
|
||||
"paper-grey-200": "#222222",
|
||||
"label-badge-background-color": "#222222",
|
||||
"paper-card-header-color": "var(--accent-color)",
|
||||
"paper-listbox-background-color": "#141414",
|
||||
"table-row-background-color": "#292929",
|
||||
"paper-grey-50": "var(--primary-text-color)",
|
||||
"paper-toggle-button-checked-button-color": "var(--accent-color)",
|
||||
"paper-dialog-background-color": "#292929",
|
||||
"secondary-text-color": "#b58e31",
|
||||
"google-red-500": "#b58e31",
|
||||
"divider-color": "rgba(0, 0, 0, .12)",
|
||||
"paper-toggle-button-unchecked-ink-color": "var(--disabled-text-color)",
|
||||
"google-green-500": "#2980b9",
|
||||
"paper-toggle-button-unchecked-button-color": "var(--disabled-text-color)",
|
||||
"label-badge-border-color": "green",
|
||||
"paper-listbox-color": "#777777",
|
||||
"paper-slider-disabled-secondary-color": "var(--disabled-text-color)",
|
||||
"paper-toggle-button-checked-ink-color": "var(--accent-color)",
|
||||
"paper-card-background-color": "#292929",
|
||||
"label-badge-text-color": "var(--primary-text-color)",
|
||||
"paper-slider-knob-start-color": "var(--accent-color)",
|
||||
"paper-toggle-button-unchecked-bar-color": "var(--disabled-text-color)",
|
||||
"dark-primary-color": "var(--accent-color)",
|
||||
"paper-slider-secondary-color": "var(--secondary-background-color)",
|
||||
"paper-slider-pin-color": "var(--accent-color)",
|
||||
"paper-item-icon-active-color": "#b58e31",
|
||||
"accent-color": "#2980b9",
|
||||
"paper-toggle-button-checked-bar-color": "var(--accent-color)",
|
||||
"table-row-alternative-background-color": "#292929",
|
||||
});
|
12855
demo/src/configs/teachingbirds/entities.ts
Normal file
13
demo/src/configs/teachingbirds/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DemoConfig } from "../types";
|
||||
import { demoLovelaceTeachingbirds } from "./lovelace";
|
||||
import { demoEntitiesTeachingbirds } from "./entities";
|
||||
import { demoThemeTeachingbirds } from "./theme";
|
||||
|
||||
export const demoTeachingbirds: DemoConfig = {
|
||||
authorName: "Isabella Gross Alström",
|
||||
authorUrl: "https://github.com/isabellaalstrom/",
|
||||
name: "Isa's mobile friendly LL",
|
||||
lovelace: demoLovelaceTeachingbirds,
|
||||
entities: demoEntitiesTeachingbirds,
|
||||
theme: demoThemeTeachingbirds,
|
||||
};
|
1684
demo/src/configs/teachingbirds/lovelace.ts
Normal file
32
demo/src/configs/teachingbirds/theme.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export const demoThemeTeachingbirds = () => ({
|
||||
"paper-card-header-color": "var(--paper-item-icon-color)",
|
||||
"paper-slider-pin-color": "var(--primary-color)",
|
||||
"paper-listbox-background-color": "#202020",
|
||||
"paper-grey-50": "var(--primary-text-color)",
|
||||
"paper-item-icon-color": "#d3d3d3",
|
||||
"divider-color": "rgba(255, 255, 255, 0.12)",
|
||||
"primary-color": "#389638",
|
||||
"light-primary-color": "#6f956f",
|
||||
"label-badge-red": "var(--primary-color)",
|
||||
"paper-slider-secondary-color": "var(--light-primary-color)",
|
||||
"paper-slider-knob-color": "var(--primary-color)",
|
||||
"paper-listbox-color": "#FFFFFF",
|
||||
"paper-toggle-button-checked-bar-color": "var(--light-primary-color)",
|
||||
"paper-toggle-button-checked-ink-color": "var(--dark-primary-color)",
|
||||
"paper-toggle-button-unchecked-bar-color": "var(--primary-text-color)",
|
||||
"paper-card-background-color": "#4e4e4e",
|
||||
"label-badge-text-color": "var(--text-primary-color)",
|
||||
"primary-background-color": "#303030",
|
||||
"sidebar-icon-color": "var(--paper-item-icon-color)",
|
||||
"paper-slider-active-color": "#d8bf50",
|
||||
"secondary-background-color": "#2b2b2b",
|
||||
"paper-slider-knob-start-color": "var(--primary-color)",
|
||||
"paper-item-icon-active-color": "#d8bf50",
|
||||
"paper-toggle-button-checked-button-color": "var(--primary-color)",
|
||||
"secondary-text-color": "#389638",
|
||||
"disabled-text-color": "#545454",
|
||||
"paper-item-icon_-_color": "var(--primary-text-color)",
|
||||
"paper-grey-200": "#191919",
|
||||
"primary-text-color": "#cfcfcf",
|
||||
"label-badge-background-color": "var(--secondary-background-color)",
|
||||
});
|