Compare commits

..

276 Commits

Author SHA1 Message Date
Paulus Schoutsen
cf1b9e5067 Merge pull request #2661 from home-assistant/dev
20190202.0
2019-02-02 14:00:28 -08:00
Paulus Schoutsen
83aaf4699c Bumped version to 20190202.0 2019-02-02 13:49:31 -08:00
Paulus Schoutsen
72aa98fe5c Update translations 2019-02-02 13:49:25 -08:00
yosilevy
86b353e627 History+logbook positioning update + RTL fixes + label refactor (#2659) 2019-02-02 13:36:33 -08:00
Paulus Schoutsen
79183bb6ea Cleanups (#2658)
* Import voice dialog only when needed

* Import ha-sidebar when we have first painted the page.

* Add css on LitElement for custom cards

* Import polyfill on first update

* Cleanup of imports

* TS conversion more info mixin

* Migrate auth mixin to TS

* Lint
2019-02-02 13:23:48 -08:00
Paulus Schoutsen
4921686bdf Hash translation files (#2652)
* Hash translation files

* Fix rebuild while develop runs
2019-02-02 09:42:22 -08:00
yosilevy
a5bdf096dc Marked Arabic as RTL + added a bunch of lovelace menu entries to label files (#2650)
* Marked Arabic as RTL + added a bunch of lovelace menu entries to label files

* Refactor keys - added menus
2019-02-01 21:33:26 -08:00
Paulus Schoutsen
bfee69e7ff Merge pull request #2649 from home-assistant/dev
20190201.0
2019-02-01 12:26:33 -08:00
Paulus Schoutsen
db53d37493 Bumped version to 20190201.0 2019-02-01 12:25:39 -08:00
Paulus Schoutsen
c294124b8d Update translations 2019-02-01 12:25:27 -08:00
Paulus Schoutsen
2afc8607c6 Fix RTL issues (#2648)
* Convert home-assistant-main to Lit/TS

* different approach

* LRT RTL

* Lint

* RTL fix for generic entity row

* Remove fetching from selectedLanguage

* RTL the RTL languages in the picker

* Fix drawer adjust to RTL
2019-02-01 12:22:11 -08:00
yosilevy
e2ff51f425 RTL fixes for raw config editor and card editor -> card preview (#2532)
* RTL fixes for raw config editor and card editor -> card preview

* Fixed missing line break

* Fixed weird vscode line break problems

* Refactored to LitElement + addressed updating RTL only when needed

* Refactor

* Fixed forgotten import

* Reverted to HTMLElement + added RTL check in set hass

* Added conditional update
2019-02-01 09:53:08 -08:00
Paulus Schoutsen
25a579f7ed Fixes (#2643)
* Sort areas alphabetically in device card

* Fix background color of registry editors when using themes

* Fix area/entity reg dialog being disabled after deletion

* Better fix card background

* Warn user when system health component not loaded
2019-02-01 09:40:57 -08:00
yosilevy
ecd33fd93c RTL toast fix (#2646)
* RTL toast fix

* Removed reflectToAttribute
2019-02-01 09:40:45 -08:00
Paulus Schoutsen
960707b804 Merge pull request #2640 from home-assistant/dev
20190130.1
2019-01-30 16:48:28 -08:00
Paulus Schoutsen
4cd3b683a7 Minify images Arsaboo (#2641) 2019-01-30 16:39:32 -08:00
Paulus Schoutsen
d0b507561d Bump frontend to 20190130.1 2019-01-30 16:26:37 -08:00
Paulus Schoutsen
d8d3149558 Bumped version to 20190130.0 2019-01-30 16:19:05 -08:00
Paulus Schoutsen
41b086cd3c Update translations 2019-01-30 16:19:00 -08:00
yosilevy
6fc20450b4 Force LTR on conf validation message so errors are readable also in RTL language (#2570) 2019-01-30 16:14:56 -08:00
Paulus Schoutsen
c00930f45e Convert entity filter to TS (#2638)
* Convert entity filter to TS

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:14:09 -08:00
Paulus Schoutsen
77935b7c7a Convert ha-entity-toggle to Lit/TS (#2639)
* Convert ha-entity-toggle to Lit/TS

* Update src/components/entity/ha-entity-toggle.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:10:50 -08:00
Ian Richardson
03f7a23540 panel toggle for view UI Editor (#2628) 2019-01-30 16:10:10 -08:00
Paulus Schoutsen
f1f1623d2f Add Area Registry (#2631) 2019-01-30 14:08:04 -08:00
Paulus Schoutsen
b86bfa0395 Add an empty state card (#2637)
* Add an empty state card

* Remove dev code

* Fix import
2019-01-30 14:07:55 -08:00
Paulus Schoutsen
75235ec544 Convert generic row to LitElement/TS (#2636) 2019-01-30 13:14:33 -08:00
Paulus Schoutsen
7cb2b743fa Add code editor to YAML editor (#2609)
* Add code editor to YAML editor

* Add code editor to raw config editor

* Remove hui-yaml-editor

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Rename to hui-yaml-editor

* Lint and tab

* Fix empty editor

* Lint

* Use codemirror for comment and edit detection + some styling

* Add save action (ctrl+s/cmd+s) to card editor

* Move save to the instance

* Delete save for now

* Remove yaml-change event on init
2019-01-30 13:03:17 -08:00
Paulus Schoutsen
175693ba4e Allow editting entity registry (#2630)
* Allow editting entity registry

* Slight simplify

* Style fixes

* Correctly set submitting

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Fix invalid type

* Add config section to entity registry

* Trim

* Fix trimming
2019-01-30 13:02:41 -08:00
Bram Kragten
c7d1417f48 Remove yaml-change event on init 2019-01-30 21:09:38 +01:00
Bram Kragten
db92abad66 Delete save for now 2019-01-30 20:59:49 +01:00
David F. Mulcahey
e42e59871e Use demo icons instead of mdi (#2623)
* generate demo icons

* replace tab icons and update build file

* review comments

* review comments

* update ignores

* cleanup
2019-01-30 11:42:09 -08:00
Ian Richardson
f97b5c48d0 more-info for thermostat-card (#2598)
* more-info for thermostat-card

* soften icon
2019-01-30 11:35:41 -08:00
Paulus Schoutsen
f22510fd74 Add system health card (#2626) 2019-01-30 11:00:25 -08:00
Bram Kragten
e789380126 Move save to the instance 2019-01-30 20:00:13 +01:00
Bram Kragten
9086051608 Fix icon view demo jimpower (#2634) 2019-01-30 10:54:03 -08:00
Ian Richardson
a0f0d49f45 more-info icon for light-card (#2600)
* more-info icon for light-card

* soften icon
2019-01-30 10:02:12 -08:00
Thomas Lovén
bc87e05e2d Fix weird spaces in jimpowers demo (#2622) 2019-01-30 09:57:47 -08:00
Malte Franken
b0958f589b Support for geolocation trigger (#2617)
* initial working version of geolocation trigger

* removed unused code

* removed unused code and imports

* sources now localisable

* fixed source picker to not immediately show save button after loading automation

* labels

* removed unused code

* removed unused import

* transformed source dropdown to simple edit field
2019-01-30 09:56:39 -08:00
Bram Kragten
b37eee56c0 Move views (#2610)
* A start, still buggy...

* Tests and move with view

* Lint
2019-01-30 09:55:44 -08:00
Bram Kragten
2ad27f7400 Fix thermostat with radius 0 (#2633)
* Fix thermostat with radius 0

* remove afterNextRender
2019-01-30 09:19:49 -08:00
Bram Kragten
95e9d6164d Add save action (ctrl+s/cmd+s) to card editor 2019-01-30 12:50:57 +01:00
Bram Kragten
43bc9abb46 Use codemirror for comment and edit detection + some styling 2019-01-30 12:24:13 +01:00
Paulus Schoutsen
ab816ad529 Add system health card 2019-01-29 16:32:34 -08:00
Paulus Schoutsen
c964ea30e0 Refactor dev-info page (#2624)
* Refactor dev-info page

* What

* Fix custom UI check

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments

* TSC

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* TSC
2019-01-29 15:34:49 -08:00
Tommy Jonsson
73b500db64 html5 notifications add VAPID support (#2560)
* html5 notifications add VAPID support

* fix travis error

* replace httpapi with websocketapi
2019-01-29 14:49:41 -08:00
Bram Kragten
633fc1372f Lint 2019-01-29 18:46:40 +01:00
Bram Kragten
dedb36cecf Fix empty editor 2019-01-29 18:03:34 +01:00
Bram Kragten
13aa0568a6 Lint and tab 2019-01-29 17:59:42 +01:00
Paulus Schoutsen
a090b291aa Fix entity names in notification (#2612) 2019-01-28 19:36:11 -08:00
David F. Mulcahey
30ab056aa4 add help text for reconfigure node (#2616) 2019-01-28 19:33:22 -08:00
Paulus Schoutsen
5a797a6dec Fix localize lite mixin types (#2613) 2019-01-28 15:43:08 -08:00
Bram Kragten
d76ffd343e Rename to hui-yaml-editor 2019-01-28 20:41:09 +01:00
Paulus Schoutsen
20ecfffb9c Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:51 +01:00
Paulus Schoutsen
d2bfd5ce62 Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:23 +01:00
Zadkiel
0cdb96f917 Fix Google Assistant skill link (#2608) 2019-01-28 10:01:50 -08:00
yosilevy
fd4ede39ba RTL fix for obstructed notification drawer (#2584) 2019-01-28 09:57:58 -08:00
Paulus Schoutsen
fa3889b549 Fix call to localize in mixin 2019-01-28 09:29:45 -08:00
Paulus Schoutsen
d71d5aa855 Convert ha-sidebar to TS/Lit (#2605) 2019-01-28 09:27:16 -08:00
Bram Kragten
644af4d009 Remove hui-yaml-editor 2019-01-28 17:07:02 +01:00
Bram Kragten
9f4ae5d932 Add code editor to raw config editor 2019-01-28 16:35:55 +01:00
Bram Kragten
7a8c9d7c12 Add code editor to YAML editor 2019-01-28 16:03:21 +01:00
Paulus Schoutsen
89630a5c7f Convert ha-sidebar to TS/Lit 2019-01-27 23:23:07 -08:00
Paulus Schoutsen
13adee09da Fix demo routing (#2599) 2019-01-27 16:55:47 -08:00
Paulus Schoutsen
c3f473c3e7 Remove Lit localize mixin (#2597)
* Remove some localize mixins form Lit Elements

* Remove litLocalizeMixin

* Revert unwanted changes
2019-01-27 16:52:15 -08:00
Paulus Schoutsen
0a09eabce3 Simplify localize (#2593)
* Simplify localize

* Delete unused file
2019-01-27 15:19:59 -08:00
Bram Kragten
3e1c22edcd Revert ""skip" is confusing for a lot of users (#2589)" (#2595)
* Revert ""skip" is confusing for a lot of users (#2589)"

This reverts commit ccb12996f8.

* And the agreed name
2019-01-27 22:37:03 +01:00
Ian Richardson
ccb12996f8 "skip" is confusing for a lot of users (#2589)
Hopefully this will clear up the ambiguity for users.
2019-01-27 20:58:13 +01:00
Paulus Schoutsen
d6887758a9 Convert <home-assistant> to Lit/TS (#2586)
* Convert home-assistant element to Lit/TS

* Fix disconnect toast

* Lint
2019-01-27 10:41:35 -08:00
Paulus Schoutsen
9299d548ba Convert common dir to TS (#2580)
* Convert common dir to TS

* Lint

* Update setup-leaflet-map.ts
2019-01-27 10:40:46 -08:00
Alec Rust
7dda98f139 Improve "Full Log" button on Dev Info panel (#2590) 2019-01-27 10:14:38 -08:00
Paulus Schoutsen
6b8e90ce67 Convert ha-init-page to lit/ts (#2583) 2019-01-26 22:51:07 -08:00
Paulus Schoutsen
c20fae289c Update fecha (#2579) 2019-01-26 20:24:24 -08:00
Paulus Schoutsen
8db111c2fb Update lint tools (#2576)
* Update lint

* Prettier Hass.io

* Update prettier
2019-01-26 19:34:07 -08:00
Paulus Schoutsen
5a6d537d43 Generalize minifier (#2577) 2019-01-26 18:55:32 -08:00
Paulus Schoutsen
1ffeace8f9 Upgrade build tools (#2575)
* Upgrade webpack

* Upgrade babel

* Upgrade build tools

* Add missing dependency
2019-01-26 15:05:01 -08:00
Paulus Schoutsen
7bf8ea9d0a Upgrade MDI/svg (#2573)
* Upgrade MDI/svg

* Changed icon names
2019-01-26 15:04:33 -08:00
Paulus Schoutsen
85e900bf68 Update marked to 0.6.0 (#2574) 2019-01-26 15:04:21 -08:00
Paulus Schoutsen
6f9b7a1f60 Update lit-element to rc5 (#2572) 2019-01-26 15:02:50 -08:00
Bram Kragten
cad4fa408e it was right... (#2564) 2019-01-25 17:33:36 -08:00
Bram Kragten
dc334844ed add history-graph to generated mode (#2563) 2019-01-25 08:53:38 -08:00
Bram Kragten
4e86cf01b8 Add group to domains that can be toggled (#2555)
* Add group to domains that can be toggled

* Group should call homeassistant.turn_on/turn_off

* entity id is not a attribute

* Oops...
2019-01-25 07:39:33 -08:00
Paulus Schoutsen
2bfd7ff33b Use columns in edit card on wide screens (#2551) 2019-01-24 12:33:09 -08:00
Adrian Campos
b1d5517864 Fixed typo: "unsafed" -> "unsaved" (#2556) 2019-01-24 11:57:39 -08:00
David F. Mulcahey
334c4fe90f static styles (#2533) 2019-01-23 19:47:20 -08:00
Paulus Schoutsen
77f6016701 Merge pull request #2553 from home-assistant/dev
Some more demo fixes
2019-01-23 16:36:12 -08:00
Paulus Schoutsen
a2816800e8 Merge pull request #2552 from home-assistant/demo-fixess
Demo fixess
2019-01-23 16:35:37 -08:00
Paulus Schoutsen
e3d32c9dd0 Dont' jump media player on initial load 2019-01-23 16:05:36 -08:00
Paulus Schoutsen
37b2154638 Allow demo config to be tested from other device on network 2019-01-23 15:52:07 -08:00
Paulus Schoutsen
28d3f445f6 Align theme color 2019-01-23 15:51:56 -08:00
Bram Kragten
45e50ea948 correct patio cam (#2550) 2019-01-23 13:06:19 -08:00
Paulus Schoutsen
f3eaba4b23 Merge pull request #2548 from home-assistant/dev
Fix action editor (#2547)
2019-01-23 12:45:20 -08:00
Bram Kragten
96f7f842cd Fix action editor (#2547) 2019-01-23 12:39:58 -08:00
Paulus Schoutsen
bc6debc6c9 Merge pull request #2546 from home-assistant/dev
Update demo
2019-01-23 12:10:20 -08:00
Paulus Schoutsen
a9df5ea6a9 Do not show new service worker toast (#2545) 2019-01-23 12:09:45 -08:00
Paulus Schoutsen
c972d039bc Merge pull request #2544 from home-assistant/dev
Hopefully this will work (#2543)
2019-01-23 11:24:00 -08:00
Paulus Schoutsen
d130471a99 Fix ars padding 2019-01-23 11:22:30 -08:00
Paulus Schoutsen
52e31648bf Update git attr 2019-01-23 11:06:24 -08:00
Bram Kragten
40d12fa870 Hopefully this will work (#2543) 2019-01-23 19:56:29 +01:00
Paulus Schoutsen
d5728579e0 Merge pull request #2542 from home-assistant/dev
Demo update
2019-01-23 10:36:22 -08:00
Paulus Schoutsen
257ff7707b Fix app skeleton in demo color 2019-01-23 10:34:57 -08:00
Paulus Schoutsen
b8851a7f3e Add SW, GA, Fav Icon (#2541)
* Add SW, GA, Fav Icon

* Add skeleton"
2019-01-23 10:26:26 -08:00
Bram Kragten
a4680feb92 Add view and camera (#2540) 2019-01-23 10:26:19 -08:00
Paulus Schoutsen
ca02080cf1 Add missing style (#2538) 2019-01-23 07:40:02 -08:00
kernehed
08824b5796 Update entities.ts (#2537)
removed password and changed the domain name
2019-01-23 07:21:10 -08:00
Paulus Schoutsen
99ded45bb0 Merge pull request #2535 from home-assistant/dev
Demo update
2019-01-22 15:01:01 -08:00
Bram Kragten
bc8cc32445 Add Arsaboo demo (#2534)
* Add Arsaboo demo

* Resize images

* Fixes

* Mock more things

* Simplify
2019-01-22 14:59:56 -08:00
Paulus Schoutsen
5cc75c294e Fix names in demo Isa 2019-01-22 12:58:29 -08:00
Bram Kragten
035e6752eb Add lit-html plugin to vs code recommendations (#2531) 2019-01-22 08:02:06 -08:00
Paulus Schoutsen
c1913799f2 Merge pull request #2530 from home-assistant/dev
20190121.1
2019-01-21 21:19:44 -08:00
Paulus Schoutsen
ceb86df0fa Bumped version to 20190121.1 2019-01-21 21:19:27 -08:00
Paulus Schoutsen
24b0eb8ce4 More demo stubs (#2529)
* More demo stubs

* History stub actually generates mocks

* More tweaks

* Add more entities
2019-01-21 21:18:01 -08:00
Paulus Schoutsen
547f829f5b Fix panels with subpaths (#2528) 2019-01-21 21:16:34 -08:00
Paulus Schoutsen
16c9303ae9 Merge pull request #2527 from home-assistant/dev
20190121.0
2019-01-21 09:19:12 -08:00
Paulus Schoutsen
6d329bdd1f Bumped version to 20190121.0 2019-01-21 09:18:41 -08:00
Paulus Schoutsen
1c6f7d32cf Update translations 2019-01-21 09:18:36 -08:00
Bram Kragten
9a86b06092 No idea, but it seems to work? (#2526) 2019-01-21 09:17:51 -08:00
Paulus Schoutsen
0e1eaa18df Convert Panel Resolver to Lit/TS (#2520)
* TS Panel Resolver

* Clean ups
2019-01-21 00:24:20 -08:00
Paulus Schoutsen
ad98534195 Add plant status card (#2521) 2019-01-21 00:23:58 -08:00
Paulus Schoutsen
b261e779e5 More tweaks (#2519)
* More tweaks

* Update webpack.config.js
2019-01-20 23:57:43 -08:00
Paulus Schoutsen
f9e97c0577 Merge branch 'master' into dev 2019-01-20 20:19:22 -08:00
Paulus Schoutsen
5276db5d23 Add themes to demos (#2518) 2019-01-20 20:19:01 -08:00
Paulus Schoutsen
6bf954ccb2 Merge pull request #2517 from home-assistant/dev
20190120.0
2019-01-20 16:20:37 -08:00
Paulus Schoutsen
26dbef8d4c Bumped version to 20190120.0 2019-01-20 16:19:40 -08:00
Paulus Schoutsen
1d1e85e1d7 Update translations 2019-01-20 16:19:37 -08:00
Bram Kragten
755a3d5cf1 Edit dialogs for mobile (#2513)
* Edit dialogs for mobile

* unused
2019-01-20 16:18:00 -08:00
Bram Kragten
e9c5011a6d Remove ids from demo configs (#2515) 2019-01-20 16:16:29 -08:00
Paulus Schoutsen
871ee33229 Add teachingbirds demo (#2516)
* Add teachingbirds demo

* Remove some custom cards

* Lint
2019-01-20 16:15:53 -08:00
Paulus Schoutsen
3b66d58f91 Fix demo translations (#2511)
* Fix demo translations

* Comment out some more panels

* Fix reference
2019-01-20 11:24:39 -08:00
kernehed
69c10256ef Update entities.ts (#2510)
Forgot one translation.. Fixed now.
2019-01-20 10:38:15 -08:00
Bram Kragten
480b92c960 Make edit-dialog look ok on mobile (#2501)
* Make edit-dialog look ok on mobile

* Wide on wide screen

* Remove apply

* Remove variable, as it only used in one place...
2019-01-20 10:01:49 -08:00
kernehed
6098b433be Update entities.ts (#2508)
* Update entities.ts

Did some translations and change a few friendly names.

* Update entities.ts
2019-01-20 10:00:57 -08:00
kernehed
d91bf4c2a9 Update lovelace.ts (#2509)
Did some translations
2019-01-20 10:00:27 -08:00
Paulus Schoutsen
bad9369ce6 Update WC polyfills (#2505) 2019-01-20 09:59:59 -08:00
Paulus Schoutsen
3ba9189612 Upgrade Lit Element to RC3 (#2504) 2019-01-18 21:24:51 -08:00
Paulus Schoutsen
bb71fe0bec Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00
Tontze
65359aabe3 Update demo-hui-entity-button-card.ts (#2503)
Entity button change to correct format
2019-01-18 09:52:46 -08:00
yosilevy
233b646917 RTL fix for precipitation (#2495) 2019-01-17 11:07:46 -08:00
Bram Kragten
3263d84def Deep clone config (#2496) 2019-01-17 11:07:05 -08:00
Franck Nijhof
faee6a7163 🎨 Optmizes image assets (#2499) 2019-01-17 11:06:29 -08:00
Paulus Schoutsen
00ad91af9a Merge pull request #2493 from home-assistant/dev
20190116.0
2019-01-16 16:13:01 -08:00
Paulus Schoutsen
4081fea5f2 Merge remote-tracking branch 'origin/master' into dev 2019-01-16 16:11:15 -08:00
Paulus Schoutsen
97f7da198c Bumped version to 20190116.0 2019-01-16 16:10:15 -08:00
Paulus Schoutsen
f6be8153bb Update translations 2019-01-16 16:10:09 -08:00
Paulus Schoutsen
d67e035198 Position thermostat correctly (#2492) 2019-01-16 16:09:29 -08:00
Thomas Lovén
f7a67af71b Put geo_events on a map instead of an entities card. (#2489) 2019-01-16 14:01:49 -08:00
Thomas Lovén
41554ab14d Ignore weblinks that don't exist when converting groups to lovelace config (#2488)
* Ignore weblinks that don't exist when converting groups to lovelace config

* Simplify
2019-01-16 13:59:58 -08:00
Bram Kragten
1b2e052f05 Activate edit mode after taking control (#2486)
* Activate edit mode after taking control

* Move to take-control
2019-01-16 13:57:54 -08:00
Paulus Schoutsen
427f0f5e66 Update translations 2019-01-15 15:34:34 -08:00
Paulus Schoutsen
86502c5cd8 Bumped version to 20190115.0 2019-01-15 15:32:51 -08:00
Bram Kragten
edf7485578 Fix getCardSize iFrame (#2487) 2019-01-15 15:16:37 -08:00
Bram Kragten
01c5b64c63 Climate entity row for water-heater (#2485)
* Add entity row climate for water-heater

* Update create-row-element.ts
2019-01-15 14:17:33 -08:00
Adam Mills
690188b4a3 Split time_pattern triggers from time trigger (#2413)
* Split interval triggers from time trigger

* Default smaller interval units to zero

* Rename interval to schedule

* Rename schedule trigger to time_pattern
2019-01-15 09:33:46 -08:00
yosilevy
42e60beb0d paper-slider RTL fix (#2476)
* paper-slider RTL fix

* CSS enclosed in ``

* Removed attr reflection and fixed style (forgot RTL reference)
2019-01-15 09:32:23 -08:00
Thomas Lovén
0ddc82601a Fix ll-rebuild only keeps the card that should be deleted (#2481)
* Fix ll-rebuild only keeps the card that should be deleted

* Do the same thing for stack cards. (Untested. Leeeeroyyyyy Jenkins)

* Copy then replace instead of mutating

* Use map
2019-01-15 09:30:33 -08:00
Paulus Schoutsen
f943366ecd Honor group control hidden setting (#2478)
* Honor group control hidden setting

* Lint
2019-01-14 19:33:16 -08:00
Paulus Schoutsen
732237d4e1 Use static get styles to embed ha-style (#2479)
* Use static get styles

* Fix errors
2019-01-14 19:32:57 -08:00
Paulus Schoutsen
d8d77d0238 Convert label badge to use static get styles (#2480) 2019-01-14 19:32:33 -08:00
Tommy Jonsson
f98fff9ffd Skip opening url if an action was called (#2475) 2019-01-14 10:53:44 -08:00
Paulus Schoutsen
9565b5490b Update translations 2019-01-14 09:31:25 -08:00
Odin Hørthe Omdal
8b19ea8e87 Be specific on Danish-Norwegian translation name (#2468)
* Be specific on Danish-Norwegian translation name

* Update translationMetadata.json

* Alphabet
2019-01-14 09:31:06 -08:00
Paulus Schoutsen
2e6d79a60f Use right constant for alarm panel (#2471) 2019-01-14 07:46:09 -08:00
Paulus Schoutsen
07f624fd1c Used wrong config key and TS didn't raise (#2472) 2019-01-13 23:52:37 -08:00
Bram Kragten
3408392aea Style edit card button (#2466)
* Change style of edit card button

* remove margin 0
2019-01-13 14:53:33 -08:00
Bram Kragten
864f2619a2 Rebuild card instead of entire stack (#2467) 2019-01-13 14:49:11 -08:00
Paulus Schoutsen
bd2c57169b Bumped version to 20190113.0 2019-01-13 09:37:17 -08:00
Paulus Schoutsen
8f1c75c57b Update translations 2019-01-13 09:37:11 -08:00
Paulus Schoutsen
1c86fbd52c Set preferred panel right away (#2465) 2019-01-13 09:31:33 -08:00
Bram Kragten
937a939907 Make Lovelace default (#2414)
* Set Lovelace as default

* Remove template

* Make link follow OPT_IN_PANEL
2019-01-13 09:30:25 -08:00
Paulus Schoutsen
7173b16ef3 Fix long press directive (#2464) 2019-01-13 09:15:09 -08:00
Bram Kragten
d738f6e2f6 Rebuild just the card instead of entire view (#2452)
* Rebuild just the card instead of entire view

* Only rebuild card, not view
2019-01-12 23:34:03 -08:00
Paulus Schoutsen
b0d32b5674 upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen
0f53b7c832 migrate long press to paper ripple (#2457)
* migrate long press to paper ripple

* Add comment
2019-01-12 15:46:59 -08:00
Bram Kragten
668d4e82ba Fix gauge (#2456) 2019-01-12 14:44:34 -08:00
David F. Mulcahey
963bdcc53c address outstanding items (#2454) 2019-01-12 14:38:26 -08:00
Tommy Jonsson
d34dada9d8 Allow push notifications to suggest its device name (#2446)
* Allow push notifications to suggest its device name

* Lint
2019-01-11 20:35:10 -08:00
yosilevy
5ae599b1b2 RTL support for history timeline (#2444)
* RTL support in history timeline

* RTL support in history timeline
2019-01-11 14:53:23 -08:00
Bram Kragten
ebbd308be6 Thermostat: check if we are attached before getting clientWidth (#2447)
* We need to be attached to get the cleintWidth

* Use isConnected and set _loaded
2019-01-11 12:09:53 -08:00
David F. Mulcahey
6d43c9e86a Expand ZHA configuration panel (#2421)
* node panel

* cleanup

* add entities

* entities split into own element

* cleanup

* add clusters

* cleanup and attributes and commands

* start cluster attributes

* finish cluster attribute interaction

* cluster command panel

* scope cleanup

* fix parseInt

* guards and template cleanup

* cleanup

* cleanup

* fix missing button

* type info

* make names consistent

* cleanup - review comments

* split out fetch attributes command - review comment

* move _computeReadAttributeServiceData - review comment

* move readAttributeValue to zha.ts - review comment

* move fetchCommandsForCluster - review comment

* move fetchClustersForZhaNode - review comment

* move fetchEntitiesForZhaNode - review comment

* style changes - review comment

* cleanup - review comments

* fully sort imports

* use updated vs update - review comment

* remove unnecessary ids - review comment

* remove empty attributes - review comment

* fix read attribute value - review comment

* switch reconfigure to web socket command - review comment
2019-01-11 12:07:58 -08:00
Paulus Schoutsen
339a0f70e3 Bumped version to 20190109.1 2019-01-11 11:47:27 -08:00
Paulus Schoutsen
94df67a7cb Correctly wrap weblink entities (#2440) 2019-01-11 11:46:44 -08:00
yosilevy
1d4f74cda3 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-11 11:46:44 -08:00
Ian Richardson
07a4505f1e 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-11 11:46:44 -08:00
Paulus Schoutsen
e96c9daad6 Correctly wrap weblink entities (#2440) 2019-01-10 16:21:26 -08:00
yosilevy
08f3496818 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-10 15:39:41 -08:00
Tommy Jonsson
326931277e Add dismiss functionality to html5 notifications. (#2435)
* Add dismiss function to notifications.

* fix let -> const
2019-01-10 13:46:53 -08:00
Ian Richardson
a2ef8bbe70 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-10 13:33:34 -08:00
Paulus Schoutsen
4bcb51bf5a Merge branch 'master' into dev 2019-01-09 15:29:09 -08:00
Paulus Schoutsen
bda5c3a0c9 Fix version bump 2019-01-09 15:29:01 -08:00
Paulus Schoutsen
e228f60c39 Version bump to 20190109.0 2019-01-09 15:13:52 -08:00
Paulus Schoutsen
67c032c85a Merge pull request #2429 from home-assistant/dev
2019109.0
2019-01-09 14:39:11 -08:00
Paulus Schoutsen
417ffde3e8 Update translations 2019-01-09 14:37:32 -08:00
Paulus Schoutsen
f3064f0071 Bumped version to 2019109.0 2019-01-09 14:36:55 -08:00
Bram Kragten
e9d912cc87 Remove styleMap for base-unit (#2428) 2019-01-09 14:04:49 -08:00
yosilevy
2517e5ba60 Proper RTL support in weather forecast card (#2424)
* Proper RTL support in weather forecast card

* States panel force left to right since RTL is not usable

* Updated class names and switched div to span
2019-01-09 21:34:24 +01:00
Bram Kragten
64b405dd4d Set min height to thermostat card (#2416)
* Set min height

* Set min height on #root

* Add min-height on firstUpdated and remove after roundSlider is loaded

* Move back to #thermostat
2019-01-08 11:27:01 -08:00
Bram Kragten
ddb050d1fd Change title to name (#2425) 2019-01-08 08:18:44 -06:00
hulkhaugen
3f6a8cac80 Removed excessive bracket in css (#2411)
* Removed excessive bracket in css code

* lint
2019-01-07 10:40:12 +01:00
Bram Kragten
ad113367e6 🛠️ Small fixes to sensor editor (#2415)
* Small fixes to sensor editor

* any -> string | number
2019-01-06 20:06:59 -06:00
David F. Mulcahey
f4f08ab0d1 Config panel for ZHA (#2389)
* zha config panel

* implement issue cluster command

* update layout

* read zigbee attribute service

* set attribute and manufacturer code override

* cleanup

* adjust style and documentation wording

* html cleanup

* ha-call-ws-api-button

* use call-ws-api-button

* fix deprecated syntax - travis error

* emulate new z-wave node info functionality

* start converting to lit

* fix style includes

* fix help toggle

* remove old panel

* cleanup

* cleanup

* convert to lit / ts

* import styles

* types - review comment
2019-01-04 19:11:08 -06:00
John Arild Berentsen
c2a57099d3 Allow for removal of broadcast node in UI (#2390)
* allow for removal of broadcast

* prettier

* prettier
2019-01-03 23:31:30 +01:00
Emil Stjerneman
adf0c6d891 Lovelace alarm panel respects the code_format attribute on the alarm entity (#2379) 2019-01-03 23:09:07 +01:00
Milan V
38a2627227 Fix climate control rounding error (#2375)
* Fix climate rounding error

* Update ha-climate-control.js
2019-01-03 23:07:37 +01:00
Ian Richardson
5a90edc893 thermostat card: follow same step logic as more-info (#2369)
* Follow same step logic as more-info

* Address review comments

* Address review comments

* Address review comments and cleanup
2019-01-03 22:53:55 +01:00
Ian Richardson
88473581c2 UI Editor for entity-button card (#2393) 2019-01-03 22:53:10 +01:00
Bram Kragten
88d23eb9dd Check config on save (#2346)
* Check config on save

Untested...

* views is list of objects, resources not required

* Lint

* Only warn on "# " to prevent warnings on colors

Could miss some comments...

* Improve # check

Warn on # at the start of a line or when followed by white space

* Faster

* Multiline

* Check if # is added

* Also handle paste and just show the warning on every #
2019-01-03 22:46:57 +01:00
Andrey
25c788871f Allow empty name (#2388) 2019-01-03 22:46:14 +01:00
Xus Badia
f272801253 Update favicon-apple-180x180.png (#2385) 2018-12-28 18:22:40 +01:00
Ian Richardson
2e750dc1e2 UI Editor for map card (#2287)
*  UI Editor for `map` card

* Address review comments

* Revert change properly

* Address review comments

* Note to change to interface after LL conversion

* Remove config options if empty

Should apply to other editors

* entitites is required

* cleanup

* cleanup

* Fix for number values

* Name chunk

* Remove zoom default
2018-12-21 13:53:26 +01:00
Paulus Schoutsen
3c5fb6d1ad Update translations 2018-12-19 14:43:12 +01:00
Paulus Schoutsen
32cd683b8a Bumped version to 20181219.0 2018-12-19 14:42:39 +01:00
Paulus Schoutsen
6c029b39e0 Merge branch 'master' into dev 2018-12-19 14:03:44 +01:00
Zack Arnett
79b71ed753 Update UI and Add Move Card to a Dialogue (#2282)
* Update UI

* REmove useless import

* Add Notification if saved is done

* Move Register Dialog

* Updates from suggestions

* Updates box shadow on card options

* Update color and viewselection

* Add pointer

* Update Cursor

* Update check next to save

* Comment Updates

* Text area
2018-12-19 13:08:17 +01:00
Paulus Schoutsen
49fa74cc07 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:05:39 +01:00
Ian Richardson
0a2eaec884 Cleanup of picture card editor (#2364)
* Cleanup of `picture` card editor

* Fix `action-editor`
2018-12-18 20:40:51 +01:00
Ian Richardson
4c5d3138c1 UI Editor for picture card (#2240)
* UI Editor for `picture` card

This is a WIP.
* How should I handle service data? It's kind of freeform and I don't really have a good idea on what I should do.
* in action-editor I have two issues for `_navigation_path` and `_service` have TS errors saying the property doesn't exist on `ToggleActionConfig`. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?

* Remove `id`

* Cleanup. Service-data still WIP

* Could use some help on service_data

* Perhaps a better/more structured method?

* Revert "Perhaps a better/more structured method?"

This reverts commit 1e1a1e44c16a18c5ffc380347cffd01e7fad52f9.

* Just playing around

* MVP doesn't include service data

* Address review comments

* Address review comments

* Name chunk and remove when unused

* Remove `more-info` action option

* Address review comments
2018-12-18 17:25:56 +01:00
Paulus Schoutsen
5e1cd389b3 Name all chunks (#2363) 2018-12-18 17:14:33 +01:00
Ian Richardson
7ced08a899 UI Editor for weather-forecast card (#2285)
*  UI Editor for `weather-forecast` card

* Missed name

* Fix typo

* Address review comments

* Remove unused optional configs with no defaults

* cleanup

* Name chunk
2018-12-18 14:26:34 +01:00
Malte Franken
603cf7ba0f two new geo location map demo cards (#2349) 2018-12-18 11:29:12 +01:00
Ian Richardson
c47ba65c3b 🧹 remove unused configs when empty (#2347)
* Remove unused configs when empty

* Handle unused numbers & fix glance entities

* Sneak in the chunk names
2018-12-18 11:15:32 +01:00
Ian Richardson
849ed80e78 🚫 render error-entity-row when state not available (#2352) 2018-12-18 11:14:55 +01:00
quthla
b78c48ecec Fix android external auth (#2319)
* Fix android external auth

* Update external_auth.ts

* Update external_auth.ts

* Update external_auth.ts
2018-12-17 20:37:10 +01:00
Paulus Schoutsen
8d2da9c5a6 Merge branch 'master' into dev 2018-12-17 10:51:19 +01:00
Ian Richardson
9664e8258c UI Editor for plant-status card (#2286)
*  UI Editor for `plant-status` card

* Address review comments

* Require entity

* Cleanup

* Cleanup

* Address review comments

* Update hui-plant-status-card-editor.ts
2018-12-17 10:45:23 +01:00
Paulus Schoutsen
64714c64c7 Fix notifications drawer (#2344) 2018-12-17 10:08:23 +01:00
Ian Richardson
b7c34c483a 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:07:59 +01:00
Paulus Schoutsen
e5bf842801 Fix service button element (#2343) 2018-12-17 09:36:55 +01:00
Ian Richardson
d1a56d6acc UI Editor for media-control card (#2336)
*  UI Editor for `media-control` card

* Address review comments

* Note on LL interface
2018-12-17 09:31:58 +01:00
Malte Franken
cac7f8d1ab Extended map to support geo location entities (#2337)
* initial version of geo location map

* configuring entities not required but source is

* extending existing map instead of adding a new one

* renamed source to geo_location_source; clearer handling of geo location entities vs defined entities

* geo location sources must now be an array

* code cleanup
2018-12-17 09:04:58 +01:00
Ian Richardson
9d2b37c9f2 Remove unnecessary editor types (#2342) 2018-12-17 07:50:27 +01:00
Paulus Schoutsen
e20a02c52c Fix undefined on plant/weather card (#2339) 2018-12-16 13:52:13 -05:00
Zack Arnett
c46d04eaa6 Alarm Card Conversion (#2259)
* Alarm Card COnversion

* Map buttons

* Reducing margin under alarm code

* Update src/panels/lovelace/cards/hui-alarm-panel-card.ts

Co-Authored-By: zsarnett <arnett.zackary@gmail.com>

* Comment Updates

* Review updates

* Reorder css

* Update actions

* TSlint

* TS LINT

* Idk whats going on here

* Fix import
2018-12-14 11:16:43 +01:00
Zack Arnett
2ec8b97378 remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-13 21:45:21 -05:00
Paulus Schoutsen
b3b9ca9c3f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-13 23:36:01 +01:00
Paulus Schoutsen
71ed83ef07 Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-13 21:46:57 +01:00
Paulus Schoutsen
47635055d0 Clear view cache edit mode (#2291)
* Clear view cache when canceling edit mode

* Fix enabling edit mode on not first view
2018-12-13 21:46:50 +01:00
Paulus Schoutsen
0dfca2f33b Call super updated (#2293) 2018-12-13 09:26:23 -05:00
Ian Richardson
18de427145 🧹 domain-filter as attribute as it does not change (#2271)
* 🔨 `domain-filter` as attribute as it does not change

* Address review comments
2018-12-13 09:40:57 +01:00
Bram Kragten
118f28285e 📷 Add camera card on generate (#2279) 2018-12-12 08:00:00 -06:00
Paulus Schoutsen
6a9cfbfa1c TS create element functions (#2276)
* TS create element functions

* Name chunk
2018-12-12 14:21:34 +01:00
Bram Kragten
8c61624a9c Change edit mode + add edit lovelace (#2277)
* Change edit mode + add edit lovelace

* Comments

* Fix (yes it was used :-)

* Raw edit header changed
2018-12-12 13:59:19 +01:00
Paulus Schoutsen
d277571735 Generalize errors (#2275) 2018-12-12 09:47:32 +01:00
Paulus Schoutsen
a6f3684846 Fix gauge (#2274) 2018-12-12 09:29:46 +01:00
Paulus Schoutsen
edef4ba2f5 Speed things up (#2270)
* Speed things up

* Fixes
2018-12-12 08:51:59 +01:00
Matthias Dötsch
7cd6619a79 Added some missing translate tags for cards (#2188)
* Added some missing translate tags for cards

more-info of:
 - sun
 - script
 - updater

* Added some missing translate tags for cards

* Added some missing translate tags for cards
2018-12-12 08:27:56 +01:00
Ian Richardson
2059e36dd6 🔨 Update value attributes to properties (#2269) 2018-12-12 08:12:57 +01:00
Ian Richardson
4a455e9147 🔧 Organize editor imports (#2272) 2018-12-12 08:09:23 +01:00
Ian Richardson
fe0b131480 UI Editor for iframe card (#2230)
* UI Editor for `iframe` card

* Remove `id`

* Address review comments

* Cleaned up some inconsistencies
2018-12-11 17:05:01 -06:00
Paulus Schoutsen
b1b78c2bb7 Fix stack trace in badge 2018-12-11 21:43:43 +01:00
Paulus Schoutsen
99395360c7 Convert HA-STATE-LABEL-BADGE to lit (#2268) 2018-12-11 21:41:38 +01:00
Ian Richardson
bd46e3b8e0 UI Editor for sensor card (#2267) 2018-12-11 21:39:18 +01:00
Paulus Schoutsen
80dd15306e Convert ha-label-badge to lit (#2266)
* Convert ha-label-badge to lit

* Add class to TypeScript map
2018-12-11 21:23:19 +01:00
Ian Richardson
88f0ebf75d UI editor for shopping-list card (#2227)
* Add UI editor for `shopping-list` card

* Cleanup

* Export config

* Remove `id`
2018-12-11 21:23:10 +01:00
Ian Richardson
8679f10f10 UI Editor for light card (#2232)
* UI Editor for `light` card

* Remove `id`
2018-12-11 21:22:21 +01:00
Ian Richardson
db4c1e45f5 UI Editor for gauge card (#2229)
* UI editor for `gauge` card

Need to develop a severity input method still

* Config works well but no preview showing

* Add `sensor` domain filter

* Remove `id`
2018-12-11 21:22:08 +01:00
Paulus Schoutsen
65cf2feb7a UI Editor for markdown card (#2231)
* UI Editor for `markdown` card

* Remove `id`
2018-12-11 21:21:38 +01:00
Ian Richardson
97da26eba7 UI Editor for alarm-panel card (#2257)
* UI Editor for `alarm-panel` card

* Adding of states

Can't get the last available state to be recognized as being a selection change

* Ability to remove states

* Clean up

* Clean up

* Remove id
2018-12-11 21:15:29 +01:00
Ian Richardson
8e7d7c5188 UI Editor for thermostat card (#2258) 2018-12-11 21:15:18 +01:00
Paulus Schoutsen
767307ef47 Convert hui-view to Lit (#2265)
* Convert hui-view to Lit

* Add super call to updated

* Update src/panels/lovelace/hui-view.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments"

* Fix things
2018-12-11 19:47:19 +01:00
Paulus Schoutsen
ccc6262026 Convert HUI-ROOT to Lit Element (#2264)
* Convert HUI-ROOT to Lit Element

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments
2018-12-11 19:39:40 +01:00
Bram Kragten
2cdb542112 Add move card to view (#2262)
* Add move card to view

* Fix style

* Fix style and tests

* last style change

* update tests
2018-12-11 19:38:57 +01:00
Paulus Schoutsen
4e232e58ce Address comments 2018-12-11 19:26:26 +01:00
Ian Richardson
27bb175624 Apply suggestions from code review
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:05:01 +01:00
Ian Richardson
5a5a7dad1e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:58 +01:00
Ian Richardson
2d1cf421ef Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:48 +01:00
Ian Richardson
8be25f2020 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:33 +01:00
Ian Richardson
0a8f853a8e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:01 +01:00
Ian Richardson
a46f5e3d4e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:44 +01:00
Ian Richardson
5de36f9579 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:32 +01:00
Ian Richardson
9b5e79f42a Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:18 +01:00
Ian Richardson
a824599a37 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:07 +01:00
Ian Richardson
884b24da0e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:01:32 +01:00
Ian Richardson
76325a384c Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:00:57 +01:00
Paulus Schoutsen
e2218f1e6e Extract component for editing out of hui-view (#2263) 2018-12-11 17:17:59 +01:00
Paulus Schoutsen
758b686684 Convert HUI-ROOT to Lit Element 2018-12-11 17:06:05 +01:00
Ian Richardson
0319fd23c5 Remove id 2018-12-10 23:13:26 -06:00
Ian Richardson
d7e5993501 UI Editor for markdown card 2018-12-10 23:12:22 -06:00
519 changed files with 70144 additions and 8850 deletions

View File

@@ -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
View File

@@ -9,3 +9,5 @@
*.png binary
*.zip binary
*.mp3 binary
demo/public/api/camera_proxy_stream/* binary

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@ npm-debug.log
hass_frontend/*
hass_frontend_es5/*
.reify-cache
demo/hademo-icons.html
# Python stuff
*.py[cod]

View File

@@ -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
View File

@@ -0,0 +1,7 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": 0,
"global-require": 0
}
}

29
config/minimizer.js Normal file
View 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,
},
{}
),
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

112
demo/public/index.html Normal file
View 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
View 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
View 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
View 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
View 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();

File diff suppressed because it is too large Load Diff

View 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,
};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
export const demoThemeArsaboo = () => ({});

View 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());
};

File diff suppressed because it is too large Load Diff

View 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,
};

File diff suppressed because it is too large Load Diff

View 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",
});

File diff suppressed because it is too large Load Diff

View 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,
};

View 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",
},
],
});

View 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",
});

File diff suppressed because it is too large Load Diff

View 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,
};

File diff suppressed because it is too large Load Diff

View 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)",
});

Some files were not shown because too many files have changed in this diff Show More