Compare commits

...

692 Commits

Author SHA1 Message Date
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
Paulus Schoutsen
7efad04e42 Merge pull request #2367 from home-assistant/20181211-2
20181211.2
2018-12-19 14:02:48 +01:00
Paulus Schoutsen
b6f7781a87 Bumped version to 20181211.2 2018-12-19 13:59:16 +01:00
Paulus Schoutsen
16a147f389 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:59:10 +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
5f5bf17df0 Merge pull request #2345 from home-assistant/20181211-1
20181211 1
2018-12-17 10:20:35 +01:00
Paulus Schoutsen
ca7674cd15 Bumped version to 20181211.1 2018-12-17 10:17:32 +01:00
Paulus Schoutsen
3f5f5bb1ee Fix service button element (#2343) 2018-12-17 10:17:18 +01:00
Paulus Schoutsen
e7ee9c7054 Fix undefined on plant/weather card (#2339) 2018-12-17 10:17:18 +01:00
Ian Richardson
4f6ecf5c21 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:17:17 +01:00
Zack Arnett
87eac4cdee remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-17 10:17:16 +01:00
Paulus Schoutsen
d267196bff Call super updated (#2293) 2018-12-17 10:16:50 +01:00
Paulus Schoutsen
f683337cbe Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-17 10:13:19 +01:00
Paulus Schoutsen
1a6226270f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-17 10:13:19 +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
Paulus Schoutsen
3a50d47dd2 Merge pull request #2261 from home-assistant/dev
20181211.0
2018-12-11 10:29:13 +01:00
Paulus Schoutsen
b4d4591273 Bumped version to 20181211.0 2018-12-11 10:28:16 +01:00
Paulus Schoutsen
432fdd628c Update translations 2018-12-11 10:28:12 +01:00
Paulus Schoutsen
bc23dd37be Handle webhook component not loaded (#2255)
* Handle webhook component not loaded

* Fix text
2018-12-11 10:25:16 +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
Paulus Schoutsen
46a9b90ed0 Add webhook trigger to automation editor (#2252) 2018-12-10 19:45:48 +01:00
Bram Kragten
b0c68e58c5 Small fixes (#2248)
* Small fixes

* remove returning on undefined in statename

* 16px -> 4px

* Styling
2018-12-10 19:44:34 +01:00
Paulus Schoutsen
7063ced7fd Merge pull request #2247 from home-assistant/dev
20181210.1
2018-12-10 12:49:26 +01:00
Paulus Schoutsen
7d2444868d Bumped version to 20181210.1 2018-12-10 12:48:37 +01:00
Paulus Schoutsen
0899d42967 Add raw config editor for storage mode (#2246)
* Add raw config editor for storage mode

* Lint

* Allow inserting spaces by pressing tab
2018-12-10 12:48:05 +01:00
Bram Kragten
d57bcc2701 Disable edit in yaml mode (#2244) 2018-12-10 11:40:34 +01:00
Paulus Schoutsen
d9d92c8766 Simplify Lovelace mode (#2243) 2018-12-10 11:38:18 +01:00
Paulus Schoutsen
7a16ed5400 Merge pull request #2242 from home-assistant/dev
20181210.0
2018-12-10 09:51:55 +01:00
Paulus Schoutsen
07e35ff81a Update translations 2018-12-10 09:50:25 +01:00
Paulus Schoutsen
0398944cab Bumped version to 20181210.0 2018-12-10 09:49:42 +01:00
Paulus Schoutsen
a33ff7479a Allow moving cards (#2241) 2018-12-10 09:48:59 +01:00
Paulus Schoutsen
f9182e5453 Revert lovelace as default (#2237)
* Revert lovelace as default

* Better text
2018-12-10 08:57:51 +01:00
Bram Kragten
4f0a965573 Changes for new storage (#2228)
* Changes for new storage

* Fix lint

* Use indexes for editing

* Use lovelace object

* Use lovelace object

* Lit conversion panel lovelace

* Lovelace obj

* Fix edit cards

* Fix some bugs

* Fix last bugs

* Lint

* Don't drop view content

* Move file

* Add skip button to card picker

* Correctly set lovelace mode
2018-12-10 08:57:29 +01:00
Paulus Schoutsen
2a23487163 Fix long press in FF (#2226)
* Fix long press in FF

* Better fix
2018-12-09 10:09:34 +01:00
Ian Richardson
6b9ba7367d Remove alarm-panel UI editor (#2235)
Remove the editor that I inadvertidently committed to dev so that we can give it a proper review before merging.
2018-12-09 10:09:10 +01:00
Paulus Schoutsen
a17ae5546f Lint 2018-12-08 10:54:00 +01:00
Ian Richardson
47de0e9156 UI Editor for alarm-panel card
Still need to get states sorted out
2018-12-07 22:54:18 -06:00
Bram Kragten
baeda622de Save columns as string (#2214)
* save columns as string

* set type to number to convert to number before save
2018-12-07 14:14:29 +01:00
Bram Kragten
48220b67ed Fix edit view and layout (#2213)
* Fix edit view and layout

* Colors
2018-12-07 13:20:24 +01:00
Ian Richardson
9ba232249b grammer tweaks (#2209) 2018-12-07 11:44:55 +01:00
Bram Kragten
b0580e70d2 Fix horizontal stack (#2210) 2018-12-07 11:43:49 +01:00
Paulus Schoutsen
6c5b274792 Merge branch 'dev' 2018-12-07 07:11:43 +01:00
Paulus Schoutsen
3094b08c5f Bumped version to 20181207.0 2018-12-07 07:11:30 +01:00
Paulus Schoutsen
181539baac Merge pull request #2208 from home-assistant/dev
20181207.0
2018-12-07 07:10:32 +01:00
Bram Kragten
2289773e36 Force refresh on manual refresh (#2200) 2018-12-07 07:09:13 +01:00
Thomas Lovén
1ecb138ec5 Better display of sensor values. E.g. with units. (#2205) 2018-12-07 07:05:15 +01:00
Ian Richardson
3d67d9eba3 Update gallery demos (#2206)
* Update gallery demos

* Update demo-hui-glance-card.ts
2018-12-07 07:04:02 +01:00
Zack Arnett
0fd3c03764 UI Design Update (#2207) 2018-12-07 07:02:17 +01:00
Zack Arnett
6aca1d0d54 fix (#2204) 2018-12-06 20:22:16 +01:00
Zack Arnett
601bbfd88e Light Tap/Hold Action fix (#2191)
* Light action fix

* oops copy pasta
2018-12-06 19:17:41 +01:00
Zack Arnett
f600b0522c Add id = 0 handling (#2201)
* Add id = 0 handling

* Add check in view creation
2018-12-06 19:16:06 +01:00
Ian Richardson
647a33ea61 Fix picture-element card elements (#2202) 2018-12-06 19:15:03 +01:00
Paulus Schoutsen
64d59fedc8 Fix Lovelace weather card (#2199) 2018-12-06 17:59:36 +01:00
Bram Kragten
51d592ba0d Fix no or just 1 view (#2194) 2018-12-06 14:38:16 +01:00
Paulus Schoutsen
eaaf841a87 Code split edit dialog (#2198)
* Code split edit dialog

* Code split edit view dialog
2018-12-06 14:12:00 +01:00
Paulus Schoutsen
c6542e383c Code split jQuery roundslider (#2197) 2018-12-06 14:10:37 +01:00
Paulus Schoutsen
6e3c2bfd6a Code split Leaflet (#2196) 2018-12-06 13:30:05 +01:00
Paulus Schoutsen
be3bfc7aa4 Add script to show stats (#2195) 2018-12-06 12:43:43 +01:00
Bram Kragten
bbe90c1683 Fix view without badges (#2192) 2018-12-06 11:49:33 +01:00
Ian Richardson
2fe1d04eb0 Action tooltips (#2193)
* Fix tooltips for tap actions and add hold actions

* Cleanup logic
2018-12-06 11:49:19 +01:00
Paulus Schoutsen
f5022f4e1e Merge pull request #2190 from home-assistant/dev
20181205.0
2018-12-05 22:40:18 +01:00
Paulus Schoutsen
fdbb06de19 Merge remote-tracking branch 'origin/master' into dev 2018-12-05 22:08:30 +01:00
Paulus Schoutsen
0cd4980f44 Bumped version to 20181205.0 2018-12-05 22:07:41 +01:00
Paulus Schoutsen
2d0f14d078 Update translations 2018-12-05 22:07:34 +01:00
Thomas Lovén
9711068f8b Handle mouse events on touchscreens. Fix #2085 (#2170)
* Handle mouse events on touchscreens. Fix #2085

* Some more fixes. Makes listeners non-passive!

* Only prevent preventable events.

* Different approach

* Some travis fixes

* Try to avoid clicking while scrolling
2018-12-05 22:05:51 +01:00
Ian Richardson
fb180c7b9b Align picture card tap/hold actions (#2186)
Also removed unneccessary `navigation_path` config from `picture-entity`
2018-12-05 22:00:52 +01:00
Ian Richardson
5947bd6d74 Align picture-glance card tap/hold actions (#2187)
Removed unneccessary `force_dialog` config.
Updated `handleClick` to use `entity` or `camera_image` for `more-info` dialog
2018-12-05 22:00:04 +01:00
Paulus Schoutsen
7e584402ea Add gallery demo for Long Press directive (#2189)
* Convert gallery to TS

* Add long press demo
2018-12-05 20:32:36 +01:00
Bram Kragten
3f113da056 Fix: View should have cards (#2184)
* View should have cards

* Don't need CardConfig yet
2018-12-05 17:25:43 +01:00
Bram Kragten
bfef3a96c8 Catch errors in preview and fix entity picker (#2183)
* Catch errors in preview and fix entity picker

* Replace add button with entity-picker
2018-12-05 16:42:22 +01:00
Zack Arnett
de3a467697 Update Hold/Tap Actions to Objects (#2182)
* Update Action to Object for entity-button

* Update Actions to Object for Glance Card

* Update to use HandleClick function

* Add navigation

* Updating to use navigation path from Action Config

* Type handle events in glance

* Update Service checks

* Update Picture elements

* oops

* Adding nav back until we convert picture

* Extend typing
2018-12-05 14:27:22 +01:00
Bram Kragten
0f895fd3a1 Make Lovelace the default! (#2181)
* Make Lovelace the default!

* Move states panel to panels
2018-12-05 14:14:53 +01:00
Bram Kragten
16cc3adcff Add badges to view editor (#2176)
* Badges

* Fix entity picker

* Make editor own element
2018-12-05 12:39:04 +01:00
Zack Arnett
e2e002b9a9 Fixes Color not being overwritten by themes for cards (#2179) 2018-12-05 12:31:54 +01:00
Zack Arnett
8274284294 Theme Addition (#2178) 2018-12-04 19:49:46 +01:00
Bram Kragten
1d7f574b9b Fix process entity (#2177) 2018-12-04 12:43:03 -05:00
Bram Kragten
f680832f78 Add edit/add/delete view (#2172)
* Add edit/add/delete view

* Add delete

* Comments

* Lint

* Fix delete with numeric ids

* fix translations

* add translations
2018-12-04 16:49:12 +01:00
Ian Richardson
77711ea711 Stop MouseEvent from reach parent element (#2174) 2018-12-04 12:57:43 +01:00
Ian Richardson
f1a6122699 Convert hui-unused-entities to TypeScript/LitElement (#2173) 2018-12-04 12:57:15 +01:00
Ian Richardson
5fec881c39 Convert hui-picture-entity-card to TypeScript/LitElement (#2168)
* Convert hui-picture-entity-card to TypeScript/LitElement

click/hold are not working on my Chrome dev env

* typo

* Address review comments

Still having issues with clicks/holds on lots of cards on my system

* Add explicit navigate option

* Fixed after testing with touchevents

* Simplify
2018-12-04 10:04:59 +01:00
Ian Richardson
5dc05129ef Convert process-config-entities to TypeScript (#2113)
* Convert process-config-entities to TypeScript

* Address review comments but have issues

* Resolve merge conflicts

* Address review comments

Still a typing error which seems like it shouldn't exist

* Hack to bypass type assertion
2018-12-04 10:01:13 +01:00
Bram Kragten
f461ad6d31 Add card functionality (#2160)
* MVP add card

* WIP

* Added stub config

* Little bit of cleanup

* Add all card

* At least it works now...

* clean up and bug fixes

* Fix for switching editor
2018-12-03 14:11:46 +01:00
Ronen Hayun
57b5db4f43 Move computeRTL to a separate file and add RTL support in state-info (#2165)
* RTL support (POC)

* restore yarn.lock

* Move computeRTL to a separate file and add RTL support in state-info

* Move import to top after failed CI

* Replace var to const

* Change HassEntity to HomeAssistant object

* Support RTL in state info and state card display

* Support for RTL in more-info-controls:

* Update src/common/util/compute_rtl.ts

Co-Authored-By: rhayun <ronen.hayun@gmail.com>

* remove default from export

* prefix all computeRTL with underscroe for privately uses
2018-12-03 10:54:29 +01:00
Ian Richardson
d015fe5160 Remove .ts extensions (#2169) 2018-12-02 20:35:05 -06:00
Otto Winter
f7e3f4a828 Hass.io: Show ANSI color codes in logs (#2155)
* Hass.io: Show ANSI color codes in logs

* Use innerHTML and color classes

* Refactor ANSI function

* Readability

* Make green text black in supervisor logs

* Use assigning while loop
2018-12-02 10:26:32 +01:00
Aephir
f3b8d66f4f Update demo-hui-glance-card.js (#2157)
* Update demo-hui-glance-card.js

Fixed updated syntax

* Update gallery/src/demos/demo-hui-glance-card.js

Co-Authored-By: Aephir <waldenb@gmail.com>
2018-12-01 09:41:52 +01:00
Zack Arnett
8ae03dd1ff Convert Sensor Card to Typescript (#2140)
* Sensor Convert

* Types

* Forgot to check stateobj

* Review updates

* lint

* Update for hass and add error handling

* Review Updates

* Graph only shown if graph: line - Breaking Change

* Only rendering when updated

* Date.Now()

* Forgot to reset the date

* Lint

* Review updates

* Forgot to take this out

* Bram the god

* Update to render right things

* Check if line is being drawn

* Make graph if's more readable
2018-11-30 22:50:21 -05:00
Bram Kragten
0e6f6ddbda Add own types + add config validation to glances (#2150)
* Add own types + add config validation to glances

* Cleanup
2018-11-30 13:35:55 -05:00
Ian Richardson
882c503fa9 Extract Supported features into own funciton (#2151)
* External function to check if entity supports a feature

* Typo

* Update hass-media-player-model.js
2018-11-30 16:37:44 +01:00
Paulus Schoutsen
22eb6c6a8d Remove special char 2018-11-30 16:24:13 +01:00
Ian Richardson
8e9ff46bab Extract media-player constants to src/data (#2149) 2018-11-30 14:17:52 +01:00
Paulus Schoutsen
023d8ad893 Upgrade deps (#2156)
* Update TypeScript

* Update webcomponentsjs and shadycss

* Upgrade vaadin
2018-11-30 13:45:50 +01:00
Ian Richardson
6b730b7c40 Allow for state_image and camera_image in picture-elements card (#2143)
* Allow for state_image and camera_image in picture-elements card

* Address review comments

* Remove unneccesary div
2018-11-29 16:44:39 +01:00
Bram Kragten
90cea56a1e Check if config is compatible with UI editor (#2137)
* Check config on loading UI editor

* Clean up

* Add theme and reload editor on reopen

* Reload config element on card type change

* Clean

* Clean

* Add superstruct for config validation

* Take content logic out off return edit-card

* Reverse  logic to prevent unnecessary yaml load
2018-11-29 15:00:30 +01:00
Ian Richardson
5e43d9b6b7 Convert hui-media-player-entity-row to TypeScript/LitElement (#2136)
* Convert hui-media-player-entity-row to TypeScript/LitElement

* Add types

* Address review comments
2018-11-29 11:57:29 +01:00
Ian Richardson
e4cac86690 Convert shopping-list clear to WebSockets (#2141) 2018-11-29 11:53:30 +01:00
Jan Castermans
a249289211 Display alert entity row as a toggle (#2138)
* Update create-row-element.js

In the default UI alerts where displayed as toggles, this change makes this also the default behaviour in Lovelace

* Change the order to keep the alphabetic order
2018-11-29 11:53:04 +01:00
Ian Richardson
8ecfd9780f Convert hui-entities-toggle to TypeScript/LitElement (#2144)
* Convert hui-entities-toggle to TypeScript/LitElement

* Assign types to _callService
2018-11-29 11:52:22 +01:00
Paulus Schoutsen
913cd2b3d4 Automatically detect plants (#2146) 2018-11-29 11:24:30 +01:00
Ian Richardson
c02b7a33fe Resolve warning (#2142) 2018-11-28 21:59:14 -05:00
Bram Kragten
7a0b2060d4 Add delete card func (#2116)
* Add delete card button

* Add delete card button

* fix the non-sense

* lovelace data was moved
2018-11-28 12:34:53 +01:00
Ian Richardson
afe9056725 Combine edit and complete shopping-list calls (#2135) 2018-11-28 10:14:45 +01:00
Zack Arnett
49be2ad013 Unit PAtch (#2134) 2018-11-27 20:49:22 -06:00
Zack Arnett
230ec51de5 Fixes: #2084 : Fix for extra padding (#2133)
* Fix for extra padding

* Easy fix
2018-11-27 21:35:41 +01:00
Zack Arnett
b37ea482d3 Add name variable - Weather Card (#2131)
* Add name variable

* Update to state name
2018-11-27 15:06:51 -05:00
Zack Arnett
bf69c8ce46 Title to Name (#2127) 2018-11-27 20:30:22 +01:00
Zack Arnett
d2741af24b Add name to config (#2128) 2018-11-27 20:26:56 +01:00
Zack Arnett
f04f58ac88 Change Title to Name (#2129) 2018-11-27 20:25:52 +01:00
Zack Arnett
8757dbb664 Plant add name (#2130) 2018-11-27 20:22:53 +01:00
Zack Arnett
ffc7f9706d Update Aspect Ratio on Map card (#2126)
* Update Aspect Ratio

* Update Card Size
2018-11-27 11:48:41 -05:00
Zack Arnett
4487c3dc1a Removes Height, Light Width and Line Color from Sensor (#2122)
* Sensor fix

* SVG prettified - Use Accent Color only - Dont Calc height

* Prettier
2018-11-27 17:17:59 +01:00
Bram Kragten
97f5d8e7e2 Move lovelace data to /src/data/lovelace.ts (#2119)
* move lovelace data

* move types

* change imports from cards
2018-11-27 10:05:33 +01:00
cdce8p
1cc6e09953 Add html to LitElement.prototype (#2120) 2018-11-26 23:27:00 +01:00
Zack Arnett
3752530f96 Update UI in the config Elements (#2117)
* UpdateUI

* Updating continues

* Update name of file
2018-11-26 21:01:07 +01:00
Ian Richardson
21be35bc46 Conert shopping-list update to WebSockets (#2114) 2018-11-26 14:46:40 +01:00
Paulus Schoutsen
bb8ec4b2ef Bumped version to 20181126.0 2018-11-26 14:39:06 +01:00
Paulus Schoutsen
278ea184cc Update translations 2018-11-26 14:39:01 +01:00
Paulus Schoutsen
0b17a85c3b Bumped version to 20181121.1 2018-11-26 14:11:11 +01:00
Paulus Schoutsen
0be0e9792f Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:11:02 +01:00
Paulus Schoutsen
14409ff5b7 Use overrideIcon via data binding (#2078) 2018-11-26 14:11:01 +01:00
Bram Kragten
d24bc3c07c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-26 14:11:00 +01:00
Paulus Schoutsen
5ab419534c Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:10:01 +01:00
Paulus Schoutsen
07b65f37db Add Cloud Webhook management (#2102)
* Add Cloud Webhook support

* Lint

* Tweak text

* Rename it to cloudhook

* Fix final type

* fix type

* Catch null
2018-11-26 14:09:27 +01:00
Paulus Schoutsen
8ad5280501 Document types in fireEvent (#2108)
* Document types in fireEvent

* Fix more types for fireEvent

* Adjust new code to new fireEvent
2018-11-25 20:47:29 +01:00
Bram Kragten
69df6179bb Add dialog to save config (#2100)
* Add dialog to save config

* Change types

* Helper funcs for register dialog

* Clean up

* Migrate config after save

* Clean up

* Unused imports

* Comments

* Missed half...

* cardConfig cant be undefined
2018-11-25 20:09:32 +01:00
Paulus Schoutsen
b939ae6ab4 Fix wrong import (#2106) 2018-11-25 15:18:41 +01:00
Bram Kragten
101a364a83 Type LovelaceConfig -> LovelaceCardConfig (#2103)
* LovelaceConfig -> LovelaceCardConfig

* Typo
2018-11-24 14:03:54 +01:00
Paulus Schoutsen
412b7595d2 Handle non existing states (#2098) 2018-11-23 20:42:41 +01:00
Paulus Schoutsen
a7ab652dd3 Add support for timestamp device class (#2087) 2018-11-23 19:38:28 +01:00
Paulus Schoutsen
d41a4cf78b Generate Lovelace config on the fly (#2091)
* Generate Lovelace config on the fly

* Disable editing

* Fix domain name title rendering
2018-11-23 17:39:50 +01:00
Simon Holzmayer
785ed6f9db add "for" input field to numeric_state in trigger editor (#2081) 2018-11-23 11:52:48 +01:00
Ian Richardson
6885abd234 Convert shopping-list add item call to websockets (#2080) 2018-11-23 08:56:35 +01:00
Ian Richardson
3497cb892e Convert toggle functions to TypeScript (#2082)
* Convert toggle functions to TypeScript

* Update hui-picture-glance-card.ts

* Update hui-picture-glance-card.ts
2018-11-22 12:48:12 +01:00
Bram Kragten
a82561355c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-21 22:15:22 -05:00
Paulus Schoutsen
f054cdc9ef Use overrideIcon via data binding (#2078) 2018-11-21 21:11:00 +01:00
Paulus Schoutsen
463c7eae54 Merge pull request #2077 from home-assistant/dev
20181121.0
2018-11-21 20:14:51 +01:00
Paulus Schoutsen
cbb703e5c1 Bumped version to 20181121.0 2018-11-21 20:04:19 +01:00
Paulus Schoutsen
e4dc1884f8 Update translations 2018-11-21 20:04:10 +01:00
Paulus Schoutsen
f72a2b7ef8 Merge remote-tracking branch 'origin/master' into dev 2018-11-21 20:02:56 +01:00
Bram Kragten
39819c5c58 Hassio: Fix download snapshot (#2071)
* Fix download snapshot

* async + helper

* pretty

* move catch

* fix

* Update data.ts
2018-11-21 19:28:48 +01:00
Zack Arnett
49542c49fa Entities Card UI Editor (#2072)
* Entity Card ui + extras

* Travis Fix

* Bram already has this in  another PR
2018-11-21 09:29:06 +01:00
Ian Richardson
86e501f0aa Convert retrieval of items in shopping-list to websockets (#2041)
* Convert shopping-list to websockets

* Update shopping-list.ts

* Scale back to just retrieval of items to WS
2018-11-21 09:25:30 +01:00
Paulus Schoutsen
2ca3a784e2 Allow Google unlocking locks (#2073)
* Allow Google unlocking locks

* Fix missing type
2018-11-20 23:23:12 +01:00
Paulus Schoutsen
c01bd57ba5 Fix compression hassio build 2018-11-20 17:07:26 +01:00
Paulus Schoutsen
ba5d224080 Gen MDI icons during hassio build 2018-11-20 16:16:54 +01:00
Ronen Hayun
5da16db81b RTL support (POC) (#2014)
* RTL support (POC)

* restore yarn.lock
2018-11-20 13:10:40 +01:00
Ian Richardson
a9704b110d Convert hui-input-select-entity-row to TypeScript/LitElement (#2048)
* Convert hui-input-select-entity-row to TypeScript/LitElement

* Address Travis issues

* Address review comments

* Return callService promise

* Remove _selected
2018-11-20 13:09:52 +01:00
Ian Richardson
b8f048d96a Convert hui-input-text-entity-row to TypeScript/LitElement (#2050)
* Convert hui-input-text-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments

Does anyone know why line 74 seemingly doesn't fire when the value hasn't changed? I think we should blur regardless if the value changed or not on "enter" but only seems to work when setValue is called

* Return promise from call service
2018-11-20 13:09:45 +01:00
Paulus Schoutsen
c20a285003 Pin Lit-HTML and Lit-Element (#2070) 2018-11-20 13:01:21 +01:00
Karl Kihlström
07cf1141c5 Improve sensor graph algorithm (#2069) 2018-11-20 12:41:47 +01:00
Zack Arnett
ef2aa2ea6f Picture Glance Conversion to TS (#2029)
* First Commit

* Convert to TS

* Extract entity render to own function

* Making it one function like not an idiot

* Addressing Reviews
2018-11-20 12:24:30 +01:00
Pascal Vizeli
2058e0d3fb Fix gz build 2018-11-20 11:36:45 +01:00
Bram Kragten
773711a2d5 Update Hassio with security options (#2067)
* new security options

* Add more info modal

Added more info modal and moved the security components.

* fixes

* show apparmor only if not default

* add colors to apparmor
2018-11-20 10:14:46 +01:00
Bram Kragten
0bb85bc895 Added migrate dialog when card has no ID (#2008)
* Added migrate dialog when card has no ID

* typos

* Fix error messages

* cardId should be a string

* Add translation

* Only load yaml in yaml editor

* revert name change

* Combine migrate and edit in one dialog

* lint

* fixes + inlude and secret yaml

* resize after toggle preview -> value>config

* add loading spinners

* only create preview when type changes

* loader on yaml editor

* Fixed loading spinner not disappearing

* moved dialog

* disable toggle if not avail

* address comments

* cleanup showDialog
2018-11-19 22:19:50 +01:00
Petro31
9a9986cf17 Flatline fix for Sensor Cards (#2064)
* Update hui-sensor-card.js

This fixes issues where the first history item was repeated many times at the start of the graph resulting in a flat line that does not represent the data.

Also, the graph now has the ability to reach a 1 to 1 history graph to sensor graph point representation.  Before 2 to 1 was the highest resolution possible.  This was due to using history.length - 1 as the denominator in cases where the user set the accuracy larger than the total number of points in the history.

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js
2018-11-19 16:47:30 +01:00
Jack Wilsdon
1bb62bfc05 Only add a separating colon if there is a valid prefix and suffix (#2060)
This commit changes the media player entity row to only add a colon
separator to the status line when there is both a prefix and a suffix.
2018-11-19 11:59:10 +01:00
Ian Richardson
f92f89e8e8 Convert compute functions to TypeScript (#2055)
* Convert compute functions to TypeScript

* Address review comment

* Address Travis complaint

* Attempt to not be dumb :)
2018-11-18 14:50:21 +01:00
Paulus Schoutsen
b1a50aa0e0 Fix hassio develop script 2018-11-18 12:25:16 +01:00
Jack Wilsdon
8c2a2fc043 Remove extra > (#2062) 2018-11-17 12:08:52 -05:00
callifo
adb39fd820 Update Lovelace Thermostat Card to include all supported thermostat m… (#2039)
* Update Lovelace Thermostat Card to include all supported thermostat modes

* Update hui-thermostat-card.ts

* Update en.json to include

* Update en.json

* Revert "Update en.json"

This reverts commit a71ed49b78.

* Revert "Update en.json to include"

This reverts commit 68b95ca456.

* Removed manual mode, covered in PR #2036

* Update dry colour to #efbd07
2018-11-14 10:16:53 -05:00
TomMini
8a9762dd93 Add icon for manual mode (#2036)
* Add icon for manual mode

* Added state.climate.manual to translations

* Added manual color blue
2018-11-13 22:32:50 -05:00
Paulus Schoutsen
4407da9364 Remove extra > 2018-11-13 17:04:15 +01:00
Paulus Schoutsen
b533e4d093 Bumped version to 20181112.0 2018-11-12 10:17:51 +01:00
Ian Richardson
239ec5fb53 Ability to add items to shopping-list-card (#2035)
* Ability to add items to shopping-list-card

* Address review comments
2018-11-12 10:17:19 +01:00
Thomas Lovén
d974d5dc52 Fix hold_action not working on chrome for android (#2011) 2018-11-12 10:17:18 +01:00
Zack Arnett
2076949289 Glance fix (#2040) 2018-11-12 08:05:05 +01:00
Paulus Schoutsen
65bd7fd64f Update translations 2018-11-11 22:54:04 +01:00
Paulus Schoutsen
1f0c7297ce Upgrade Lit (#2032) 2018-11-10 20:36:25 +01:00
Ian Richardson
efbd97f9a4 Add clearing of checked items to shopping-list-card (#2034) 2018-11-10 20:34:31 +01:00
Paulus Schoutsen
2ccfccc23f Bumped version to 20181103.3 2018-11-09 15:39:07 +01:00
Paulus Schoutsen
acbcb6bd45 Fix int in ha-form (#2033) 2018-11-09 15:38:56 +01:00
Paulus Schoutsen
e580dbe7f2 Fix int in ha-form (#2033) 2018-11-09 15:38:30 +01:00
Nikolay Vasilchuk
9f55678cb3 Timezone support for displaying header with date in logbook (#2026)
* Fixed display header with date in logbook

* prettier fix
2018-11-09 10:59:03 +01:00
Ian Richardson
9c2b85dd6e Add checked item section to shopping-list-card (#2005)
* Add checked item section to shopping-list-card

* Not getting value back from `this.localize`? at line 109

* Alignment of label

* Address review comment

* Address review comments

* Address review comment and fix Travis errors

* Address review comments

* Hide checked label when empty

* Address review comment
2018-11-09 10:13:44 +01:00
Ian Richardson
cb640c2e71 Convert hui-picture-card to TypeScript/LitElement (#2030) 2018-11-09 10:10:17 +01:00
Paulus Schoutsen
56bdb6e352 Fix fetching sub 2018-11-08 19:32:58 +01:00
Paulus Schoutsen
81e1e5be8f Fix link color in persistent notification (#2023) 2018-11-08 10:31:49 -05:00
Ian Richardson
6c44a92e2c Convert hui-group-entity-row to TypeScript/LitElement (#2015)
* Convert hui-group-entity-row to TypeScript/LitElement

* Address review comment and Travis errors
2018-11-08 09:41:46 +01:00
Ian Richardson
9596f737e8 Convert hui-text-entity-row to TypeScript/LitElement (#2017)
* Convert hui-text-entity-row to TypeScript/LitElement

* Address review comments

* Fix Travis errors
2018-11-08 09:41:25 +01:00
Ian Richardson
ad5f815273 Convert hui-scene-entity-row to TypeScript/LitElement (#2021)
* Convert hui-scene-entity-row to TypeScript/LitElement

script-entity-row and this could probably extend a common base class. The only thing that differs them is the domain used in the callService and the button text.

* Stop more-info
2018-11-08 09:39:02 +01:00
Ian Richardson
4a893d96a0 Convert hui-script-entity-row to TypeScript/LitElement (#2020)
* Convert hui-script-entity-row to TypeScript/LitElement

* Stop more-info
2018-11-08 09:37:22 +01:00
Ian Richardson
59a681fcb7 Convert hui-lock-entity-row to TypeScript/LitElement (#2022) 2018-11-08 09:35:55 +01:00
Paulus Schoutsen
787ea885cc Add text color to error row (#2007)
Fixes #2002
2018-11-07 11:37:04 -05:00
Paulus Schoutsen
a26a37233b Use non-forked version of fecha 2018-11-07 10:48:49 +01:00
Paulus Schoutsen
c1e3259b08 Bumped version to 20181107.0 2018-11-07 10:31:22 +01:00
Paulus Schoutsen
9c735bb088 Merge branch 'master' into dev 2018-11-07 10:28:10 +01:00
Paulus Schoutsen
10092dcadf Bumped version to 2018117.0 2018-11-07 10:27:07 +01:00
Paulus Schoutsen
d31cea70bc Update translations 2018-11-07 10:26:19 +01:00
Paulus Schoutsen
b04ab6faa1 Bumped version to 20181103.2 2018-11-07 10:11:47 +01:00
Ian Richardson
23163b3095 Fix iframe aspect_ratio (#2004) 2018-11-07 10:11:35 +01:00
Thomas Lovén
849d7d2d95 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-07 10:11:35 +01:00
Paulus Schoutsen
a58a324073 Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Ian Richardson
7c2135f444 Fix iframe aspect_ratio (#2004) 2018-11-07 09:42:46 +01:00
Ian Richardson
f9719957b0 Convert call-service to TypeScript (#1985)
* Convert call-service to TypeScript

* Address Travis error

* Address review comments
2018-11-07 09:31:01 +01:00
Ian Richardson
9ce74e2da1 Convert hui-toggle-entity-row to TypeScript/LitElement (#1939)
* Convert hui-toggle-entity-row to TypeScript/LitElement

* Properly set generic-entity properties

* Addressed review comments

* Address review comments
2018-11-07 09:30:05 +01:00
Paulus Schoutsen
14b959b91b Fix cover showing error 2018-11-06 15:17:01 +01:00
Paulus Schoutsen
e2b9893b17 Expose entities for Google/Alexa (#680)
* Add entity filter

* Show exposed entities on cloud panel

* Fix tests

* Revert some testing changes

* Cursor: pointer

* Fix

* Update tests to TS
2018-11-06 14:22:59 +01:00
Thomas Lovén
54e43758d3 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-06 12:39:00 +01:00
Paulus Schoutsen
92af45d7fd Lint 2018-11-06 11:51:33 +01:00
Michael Scherer
5891a6ee7d Fix for thermostats without current temperature (#1979)
* fix for thermostats without current temperature

* make linter happy

* always render value, uom only when there is a value

* Update hui-thermostat-card.ts
2018-11-06 11:25:25 +01:00
Ian Richardson
c10e409634 Convert cover-row to TypeScript/LitElement (#1933)
* Convert cover-row to TypeScript/LitElement

* Extract `supports` methods from cover model

* Address review comments

* Revert line endings mixup

I suck at vs code apparently...

* Address review comments

* Address review comments: error-row not working
2018-11-06 11:07:15 +01:00
Ian Richardson
6432207bf1 New Card: Shopping List (#1970)
* New Card: Shopping List

Following features:
- Add item
- Edit item
- Complete item
- Clear items

* Address Travis complaint

* Addressed review comments

* Update translation variable name

* Line up input row text

* Taking MVP to heart

Addressed review comments and scaled this back to just get a simple shopping list card out there and we can discuss/debate how best to add the additional pieces with smaller PRs

* Remove calling connected in set hass
2018-11-06 10:47:24 +01:00
Zack Arnett
935639e5e0 Add getElementConfig to Glance + Add Form UI for updating YAML (#1944)
* Working version

* Working kind of

* Some more changes

* More review changes

* Progress

* Review updates

* Adding new changes

* Remove un-needed code

* Adding Types

* Updating UI Editor a bit

* Updating from missed reviews

* Updates from Reviews

* Yaml is not update each time. Instead stored as LovelaceConfig.

* Update to not pull config from preview but store it each time it changed

* Updating from Reviews

* Try catch fix

* Update hui-dialog-edit-card.ts
2018-11-06 10:09:28 +01:00
Paulus Schoutsen
cdb2093ea6 Ts all the tests (#1998)
* Convert tests to TypeScript

* Add types for tests

* Rename files to TS

* Fix up test imports

* Fix TSC errors

* Liiiint

* Add types to util method signatures

* Some more types
2018-11-06 10:09:09 +01:00
Karl Kihlström
856ef34964 <path> error fix & literals (#1993) 2018-11-05 19:46:41 +01:00
Karl Kihlström
cf19ceb193 Filter out non number states instead of assigning them 0 (#1987) 2018-11-05 16:28:36 +01:00
Paulus Schoutsen
e5fe2950af Split up cloud card (#1983)
* Split up cloud card

* Fix quotes
2018-11-05 09:59:19 +01:00
Paulus Schoutsen
1ca242405b Convert auth to TS (#1976)
* Convert auth to TS

* Lint

* Update HA-JS-WS to 3.2.0

* Migrate ws collections to TS

* Upgrade to latest HAWS

* Bump HAWS

* Lint

* Add types to WS calls
2018-11-04 10:01:33 +01:00
Michael Scherer
bcbf0ba75a add vscode extension recommondations (#1978) 2018-11-03 22:57:45 +01:00
Michael Scherer
4810042373 Hide state if its unknown e.g. the climate entity does not have one (#1977)
* Hide state if its unknown e.g. the climate entity does not have one

* state can not be null

* better comparsion

* use double quotes
2018-11-03 21:51:55 +01:00
Paulus Schoutsen
e1c90d74e3 Bumped version to 20181103.1 2018-11-03 19:17:48 +01:00
Zack Arnett
984570c55b Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:16:55 +01:00
Zack Arnett
f489d88be4 Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:15:51 +01:00
Paulus Schoutsen
6a84395303 Merge pull request #1974 from home-assistant/dev
20181103.0
2018-11-03 13:40:00 +01:00
Paulus Schoutsen
a3847ddd2a Merge remote-tracking branch 'origin/master' into dev 2018-11-03 13:26:48 +01:00
Paulus Schoutsen
dc0f023754 Version bump to 20181103.0 2018-11-03 13:24:36 +01:00
Paulus Schoutsen
89677577ef Update translations 2018-11-03 13:24:20 +01:00
Ronen Hayun
0922314134 POC for RTL support (#1966)
* POC for RTL support

* POC for RTL support

* POC for RTL support
2018-11-03 13:21:58 +01:00
Paulus Schoutsen
c68604d1fe Mark edit as alpha (#1973) 2018-11-03 13:19:44 +01:00
Zack Arnett
372cfdecf4 Light, Thermostat, and Gauge - Theme Addition (#1947)
* Update to have theme options

* Make ShouldUpdate into a help function

* Adding types to changed function
2018-11-02 20:59:14 +01:00
Paulus Schoutsen
ef40a0ceea Update frontend to 20181026.4 2018-11-02 20:08:01 +01:00
Paulus Schoutsen
343d18241b Update translations 2018-11-02 20:07:46 +01:00
Paulus Schoutsen
2ecb6e0f9e pic 2018-11-02 20:07:32 +01:00
Paulus Schoutsen
38b8e5e7b7 Update translations 2018-11-02 20:07:06 +01:00
Zack Arnett
058f8d178e Adding div arround each row to deal with spacing 2018-11-02 19:48:13 +01:00
Paulus Schoutsen
fbc1a722bd Normalize all line endings 2018-11-02 16:00:25 +01:00
Paulus Schoutsen
727cfe92e3 Force correct line endings 2018-11-02 15:59:48 +01:00
Paulus Schoutsen
4bcb13486e Version bump to 20181026.3 2018-11-02 14:06:02 +01:00
Paulus Schoutsen
4aa8603ebf Stop release if TypeScript throws 2018-11-02 14:05:49 +01:00
Paulus Schoutsen
ba33c8a456 Fix broken shit 2018-11-02 14:05:36 +01:00
Paulus Schoutsen
6f4cd88988 Merge branch 'master' into dev 2018-11-02 12:44:44 +01:00
Paulus Schoutsen
1f2deff6f0 Version bump to 20181026.2 2018-11-02 12:29:51 +01:00
Paulus Schoutsen
575882be5a Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-11-02 12:27:56 +01:00
Paulus Schoutsen
d591c45e4d Propagate hass correctly (#1918) 2018-11-02 12:27:55 +01:00
Paulus Schoutsen
f9b06adc9f Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-11-02 12:27:55 +01:00
Ian Richardson
6cc67dc790 New warning row for non-existent entities (#1946)
* New warning row for non-existent entities

* Update src/panels/lovelace/entity-rows/hui-error-entity-row.ts

* Address my own comments
2018-11-02 12:26:20 +01:00
Ian Richardson
c0c7c0f41a Remove .js from imports (#1948)
* Remove .js from lovelace

Also cleaned up some trailing whitespace

* Go big or go home

* More removals

* Revert changes to gallery webpack

* Revert changes to webpack.config.js
2018-11-02 12:26:03 +01:00
Paulus Schoutsen
eb505d4bd7 don't compress for CI runs (#1949) 2018-11-02 12:15:45 +01:00
Zack Arnett
aebd1a1be1 Remove side effects of render and Add types - Button/Glance (#1919)
* Remove side effects of render and Add types

* Addressing changes

* Updating when to apply theme

* Review Updates

* Fixing last reviews

* Updates from travis
2018-11-02 10:13:49 +01:00
Bram Kragten
447c06d817 Fix overlapping device cards (#1940) 2018-11-01 09:18:12 +01:00
Ian Richardson
ce78131258 Remove unused mixin (#1934) 2018-10-31 09:49:11 +01:00
Ian Richardson
acab465c96 Move click and tooltip function to LL folder (#1935) 2018-10-31 09:45:38 +01:00
Zack Arnett
4ea83b8bd5 Fixes: #1902 - Thermostat/Light Background (#1931)
* Thermostat theme fixes

* Might as well put the light card in there
2018-10-31 09:38:56 +01:00
Zack Arnett
094eb632f2 Update Types for various cards (#1920)
* Update Types

* Travis fix

* Travis change

* Add HTMLElementTagNameMap for gauge

* Review Changes

* Formatting values as string to be accepted into format temp
2018-10-31 09:34:12 +01:00
Paulus Schoutsen
03b1e40593 Add preview to edit LL card (#1929) 2018-10-30 20:31:56 +01:00
Bram Kragten
2164b629cf catch translation errors (#1928) 2018-10-30 19:16:20 +01:00
Thomas Lovén
a081047008 Fix calculation of glance card size (#1930) 2018-10-30 15:57:08 +01:00
Paulus Schoutsen
2e395c1b0d Update version to 20181030.0 2018-10-30 11:33:37 +01:00
Paulus Schoutsen
520e03a612 Update translations 2018-10-30 11:33:20 +01:00
Paulus Schoutsen
a771a44557 Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-10-30 11:30:57 +01:00
Ian Richardson
38bfe8c8de Convert hui-call-service-row to TypeScript/LitElement (#1894)
* Convert hui-call-service-row to TypeScript/LitElement

* Update on _config change

* Addressed review comments

* Made `service_data` optional and verified that `callService` does use `entity` if it is available in the passed config.
* Removed check in `entities-card` for `service-data` and will remove the full config check once other PRs have been applied to avoid merge conflicts
* Will create a docs PR to update the docs

* Addressed review comments

* Removed entity config check in entities-card
* Made `icon` optional. Default now `remote`
* Made `action_name` optional. Default now 'Run'

* `.icon`
2018-10-30 11:15:12 +01:00
Zack Arnett
7ca2ef4c4c Addition to Edit Love Lace Cards (#1885)
* Initial Commit

* Removing old code

* Switching to litlement and ts

* remove .ts from extension

* Addressing a few reviews

* Added ShowDialog Still no whammy

* Fix some things

* Extract one more data method

* Add more types

* Clean up imports

* Call super

* Finishing touches

* Fix typescript check
2018-10-30 11:15:02 +01:00
Paulus Schoutsen
de5f02d706 Update TypeScript to latest (#1924) 2018-10-30 11:05:56 +01:00
Paulus Schoutsen
6f7ddef4a4 Update mdi icons (#1922) 2018-10-30 11:04:25 +01:00
Paulus Schoutsen
d78b5fac73 Update vaadin components (#1923) 2018-10-30 11:04:17 +01:00
Paulus Schoutsen
7cf65ba066 Update testing tools (#1925) 2018-10-30 11:04:06 +01:00
Paulus Schoutsen
91966f676a Update polymer (#1921) 2018-10-30 09:25:04 +01:00
Paulus Schoutsen
5a1ca3855b Propagate hass correctly (#1918) 2018-10-30 08:38:27 +01:00
Zack Arnett
226203143b Merge pull request #1874 from zsarnett/light-card
LoveLace Light Card
2018-10-29 23:39:12 -04:00
Zack Arnett
a5304115f0 UPdate Type for color 2018-10-29 22:24:23 -04:00
Zack Arnett
f7458b8d41 Add Hs_color to types 2018-10-29 20:12:20 -04:00
Zack Arnett
410b66d40f Adding more types 2018-10-29 18:15:35 -04:00
Zack Arnett
1fcf510278 Adding Type to Returns 2018-10-29 18:11:34 -04:00
Zack Arnett
bb4ce278b0 Fixing Gallery and updating timeout type 2018-10-29 18:07:57 -04:00
Zack Arnett
6dac48e5b8 Merge pull request #1913 from home-assistant/entities-padding-fix
Fixes #1910 - Entities Margin correction
2018-10-29 15:45:15 -04:00
Zack Arnett
7178d208d3 Light Card addition 2018-10-29 14:33:38 -04:00
Zack Arnett
00935c86d0 Add themes to entities (#1909) 2018-10-29 19:29:27 +01:00
Zack Arnett
3dde78cadf Adding div arround each row to deal with spacing 2018-10-29 13:54:10 -04:00
Zack Arnett
630214ddb9 Merge pull request #1911 from home-assistant/add-bypass
add arm_custom_bypass
2018-10-29 13:25:56 -04:00
Zack Arnett
b3f8781646 Merge pull request #1912 from home-assistant/prettier-fix
Fixes errors in PRs based on dev
2018-10-29 11:54:36 -04:00
Zack Arnett
b717402d26 Fixes errors in PRs based on dev 2018-10-29 11:37:23 -04:00
Zack Arnett
0d339e0cba add arm_custom_bypass 2018-10-29 11:33:01 -04:00
Ian Richardson
1d014bf6e3 Convert hui-section-row to TypeScript/LitElement (#1897)
* Convert hui-section-row to TypeScript/LitElement

* Address review comments
2018-10-29 10:53:17 +01:00
Zack Arnett
5ab15dc27f add arm night (#1908) 2018-10-29 08:59:33 +01:00
Timmo
c347be6f35 Lovelace - Weather Card: Adjust margins and move text (#1880)
* Thermostat fix (#1867)

* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator

* Add version bump script

* Fix hass setting on stack (#1868)

* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint

* Bumped version to 20181026.1

* 🔨 move not text to header and name to secondary text

* 🔨 reduce some other margins
2018-10-29 08:30:56 +01:00
Paulus Schoutsen
d47c2a6fe0 Merge remote-tracking branch 'origin/master' into dev 2018-10-29 08:29:44 +01:00
Ian Richardson
82eb33a7d4 Convert hui-climate-entity-row to TypeScript/LitElement (#1899)
* Convert hui-climate-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments
2018-10-28 21:09:41 +01:00
Ian Richardson
4f6bae193d Convert hui-weblink-row to TypeScript/LitElement (#1898)
* Convert hui-weblink-row to TypeScript/LitElement

* Addressed review comments

* Made name and icon fields optional. Will create a corresponding PR to the docs to update them as Optional
* Updated entities-card to not check weblink config as that is the job of the element (entities-card should be updated to not check service-call config either as that is the job of the row element as well)

* Addressed review comments

That's cool!
2018-10-28 21:08:58 +01:00
Ian Richardson
b8752c4158 Convert hui-divider-row to TypeScript/LitElement (#1896)
* Convert hui-divider-row to TypeScript/LitElement

* Add return types

* Fixed style issues

* Address review comments
2018-10-28 21:07:30 +01:00
Zack Arnett
b6d0d777bf Gauge convert and fix issues (#1886)
* Gauge convert and fix issues

* Fixing Unit_of_Measurement

* Addressing Reviews

* Updating typing
2018-10-28 20:47:21 +01:00
Ian Richardson
8c155d4d0e Convert hui-state-badge-element to TypeScript/LitElement (#1892)
* Convert hui-state-badge-element to TypeScript/LitElement

The state image is not updating. This is true with the image-element as well. There's probably something simple between them both that I'm missing in my syntax for defining them

* Added htmlmap interface

* Addressed review comments
2018-10-28 20:36:53 +01:00
Ian Richardson
bdf5d0f5c6 Convert hui-state-icon-element to TypeScript/LitElement (#1891)
* Convert hui-state-icon-element to TypeScript/LitElement

The icon is not currently dispalying and therefor cannot determine if changing as well. Everything else is working. Should probably create a base class for all these elements to extend for simple things like checking for the entity and setting hass correctly once I get that sorted out.

* Fixed setting of properties

* Remove ! on this._config

* Addressed review comments

* Moved event handlers to private functions to avoid arrow function creation on each render
* Check for `hass` before looking for state
* Movevd absolute import above relative imports
2018-10-28 20:35:48 +01:00
Ian Richardson
4959b861bd Convert hui-image-element to TypeScript/LitElement (#1890)
* Convert hui-image-element to TypeScript/LitElement

WIP
Some of the state portions passed down to ha-image are not updating the view.

* Fixed setting of properties

* Add tagnamemap interface

* Address review comments
2018-10-28 20:25:12 +01:00
Paulus Schoutsen
a4fa0ae64b Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-10-28 20:07:05 +01:00
Ian Richardson
7cd5f36c7a Convert hui-service-button-element to TypeScript/LitElement (#1888)
* Convert hui-service-button-element to TypeScript/LitElement

Will need to rebase once hui-icon-element PR is merged

* Added return types

* Convert ha-call-service-button attributes to properties

* Re-order imports
2018-10-28 13:57:52 +01:00
Ian Richardson
ecfdb16957 Convert hui-state-label-element to TypeScript/LitElement (#1893) 2018-10-28 09:09:43 +01:00
Ian Richardson
d31195fc87 Add to HTML tag name map (#1900) 2018-10-28 09:00:37 +01:00
eyager1
f3ef4cef74 Change icon to set operation_mode to "off" (#1883)
The choice of the "fan-off" icon to set the climate operation_mode to off should be changed . Many HVAC thermostats have a manual fan control.   The use of the fan icon in this card would imply that it would change or toggle the fan_mode of a climate component, not the operation_mode.  If setting the fan_mode of a climate component via this card were to be implemented in the future the use of "fan" and "fan-off" icons would be the most logical choices for icons.   I propose changing the icon that would set the operation_mode to off to generic power icon such as "power", or "power-off" to avoid confusion and to reserve the "fan" and "fan-off" icons for future use to change the the state of fan_mode.
2018-10-28 08:57:54 +01:00
Ian Richardson
ec6db9c8ca Merge pull request #1895 from iantrich/row-types
Make hass optional within EntityRow as it may not be defined
2018-10-27 21:17:45 -05:00
Ian Richardson
bb483c9d72 Make hass optional within EntityRow as it may not be defined 2018-10-27 21:00:06 -05:00
Zack Arnett
414448137a Merge pull request #1871 from iantrich/typescript-icon-element
Convert hui-icon-element to TypeScript/LitElement
2018-10-27 21:50:09 -04:00
Ian Richardson
d0acef3ecb Add return types 2018-10-27 18:01:07 -05:00
Ian Richardson
5617416932 cleaned up elementconfig type order 2018-10-27 16:54:27 -05:00
Ian Richardson
bf0eb798d9 Implemented navigate function
Fix linting error
2018-10-27 16:51:44 -05:00
Ian Richardson
8afc3812b7 Remove element-click refactor
Was unable to get computeTooltip to work for non-converted elements. There are not many elements that use this so will just remove this mixin once conversion of all to TS has been completed.
2018-10-27 16:40:43 -05:00
Ian Richardson
5a7841e6bf Pass correct node to handleClick 2018-10-27 15:51:34 -05:00
Ian Richardson
2758e86fab Convert hui-icon-element to TypeScript/LitElement and extract ElementClick mixin functions 2018-10-27 15:51:34 -05:00
Paulus Schoutsen
d9935a714e Bumped version to 20181026.1 2018-10-27 12:05:14 +02:00
Paulus Schoutsen
d6a9d6829b Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:05:06 +02:00
Paulus Schoutsen
8b02371786 Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:00:40 +02:00
Paulus Schoutsen
9a5b692204 Add version bump script 2018-10-27 11:40:52 +02:00
Zack Arnett
0b504c7df2 Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 11:16:10 +02:00
Zack Arnett
6cab3bbc8e Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 10:59:33 +02:00
Paulus Schoutsen
35194cf345 Extract navigate mixin (#1865)
* Extract navigate to function

* Remove eventsmixin properly and side effects
2018-10-27 10:56:03 +02:00
Paulus Schoutsen
13c5724d7c Fix version extract (#1866) 2018-10-26 23:22:45 +02:00
Zack Arnett
156ea62ffa Merge pull request #1863 from home-assistant/states-sensor-badges
States Sensor badges Padding fix
2018-10-26 15:24:10 -04:00
Zack Arnett
22693bcbcc Updating to meet Material Design standards 2018-10-26 14:11:11 -04:00
Zack Arnett
ba70220659 Prettier fixes (#1864) 2018-10-26 19:40:53 +02:00
Gabriel Oliveira
fc96d33d6a 1813 - Improve Hass.io System cards UI (#1862)
* 1813 - Improve Hass.io System cards UI

* 1813 - Move margin to proper card file
2018-10-26 19:38:02 +02:00
Zack Arnett
685915e13c Fix States Badges Padding 2018-10-26 12:39:40 -04:00
Paulus Schoutsen
c39b17f12c Version bump to 20181026.0 2018-10-26 10:10:27 +02:00
Paulus Schoutsen
110d9a4cc1 update translations 2018-10-26 10:07:24 +02:00
Piotr Dobrowolski
8902328b30 Allow custom UI on "card" entities (#1824)
This will always render entities with `custom_ui_state_card` attribute
set in `entities` state card. Fixes custom UI on `media_player` objects.
2018-10-26 10:06:17 +02:00
Ian Richardson
7ff9211dfc Convert hui-picture-elements-card to TypeScript/LitElement (#1853)
* Convert hui-picture-elements-card to TypeScript/LitElement

Elements are not showing currently

* Address review comments

* Update demo
2018-10-26 10:04:04 +02:00
Paulus Schoutsen
17b4f873e7 Enforce prettier for TypeScript (#1860) 2018-10-26 09:37:47 +02:00
Zack Arnett
741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Ian Richardson
c42d9385d1 Convert hui-horizontal-stack-card to TypeScript/LitElement (#1851)
* Convert horizontal-stack to TypeScript/LitElement

Base stack-card class for horizontal and vertical stack cards to extend as their code overlaps a lot. Not sure if it should be in `common` or not

* rename locale hass variable

* Address review comments

* Abstract getCardSize
2018-10-26 09:27:57 +02:00
Thomas Lovén
8cbd667286 Lovelace - Long Press for everything (#1848)
* Long-press controller and lit-directive

* Enable long-press for glance card

* Enable long-press for entity-button

* Use new long-press for picture-elements

* Enable long-press for picture-entity card
2018-10-26 09:27:39 +02:00
Paulus Schoutsen
8bf60d502a Allow mocking websocket commands in the gallery (#1859)
* Allow mocking rest/websocket commands in the gallery

* typo
2018-10-26 09:27:10 +02:00
Zack Arnett
9f60499a3f Fix for input slider on states ui (#1861) 2018-10-25 20:15:31 -04:00
Paulus Schoutsen
56a9ff2b35 Gallery: fix notifs, fake config/services, glance demo (#1857)
* Gallery: fix notifs, fake config/services, glance demo

* Fix missing glance states

* Fill in more missing entities

* Add controller to entity filter card
2018-10-25 14:05:22 +02:00
Paulus Schoutsen
8c7b62509b Fix stack card getSize (#1856) 2018-10-25 12:29:05 +02:00
Ian Richardson
5e61065b64 Convert hui-error-card to TypeScript/LitElement (#1852) 2018-10-25 09:28:15 +02:00
Zack Arnett
39dd0524f8 Merge pull request #1792 from zsarnett/entities-card-lit
Updating Entities Card to TS+lit
2018-10-24 21:12:08 -04:00
Zack Arnett
25c6a4d3a6 Switching to new version of localize 2018-10-24 16:34:20 -04:00
Zack Arnett
0b9a4c56a9 Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett
faa08f9e1f Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett
7fbe0937df Review updates 2018-10-24 16:34:20 -04:00
Zack Arnett
66f5e34d52 Removing log console 2018-10-24 16:34:19 -04:00
Zack Arnett
ddf59c8d5c Readding Homeasistant call in types 2018-10-24 16:34:19 -04:00
Zack Arnett
0856073e85 Changing element to unknown 2018-10-24 16:34:19 -04:00
Zack Arnett
06aef18d0c addressiing reviews 2018-10-24 16:34:19 -04:00
Zack Arnett
be63648238 Review Update 2018-10-24 16:34:19 -04:00
Zack Arnett
56e01e66fb Review fix 2018-10-24 16:34:18 -04:00
Zack Arnett
772153e58a Update entities 2018-10-24 16:34:18 -04:00
Zack Arnett
3882a5aa89 Fix for Click Event 2018-10-24 16:34:18 -04:00
Zack Arnett
edf8027bf4 Updating repeat array 2018-10-24 16:34:18 -04:00
Zack Arnett
2fd459381d Updating from Reviews 2018-10-24 16:34:17 -04:00
Zack Arnett
76e67d27e7 Update to Togglable entities 2018-10-24 16:34:17 -04:00
Zack Arnett
18be134ad8 Updating Entities Card to TS+lit 2018-10-24 16:34:17 -04:00
Paulus Schoutsen
1feb9f6a27 Bump version to 20181024.0 2018-10-24 22:14:06 +02:00
Paulus Schoutsen
337a760e73 Update translations 2018-10-24 22:13:49 +02:00
Thomas Lovén
54cd412107 Fix for some dev pages crashing on iOS. (#1850)
This should probably be reverted when the fixes in
https://bugs.webkit.org/show_bug.cgi?id=174629 has been rolled out.
2018-10-24 22:04:27 +02:00
Ian Richardson
cf2171ece1 Convert hui-vertical-stack-card to TypeScript/LitElement (#1846)
Failed to rebase previous branch and am taking my working changes and applying to a new branch based off of current master.

Updated tslint.json to allow for prefixed `_` to variable names
2018-10-24 12:11:09 +02:00
Paulus Schoutsen
47fb8a5513 Fix mixin names (#1849) 2018-10-24 12:10:58 +02:00
Ian Richardson
06bf134bd4 Remove extending of HassLocalizeMixin as it is not needed (#1847) 2018-10-24 11:42:09 +02:00
Timmo
cf8899fcbe ↕️ fix sorting of addons (#1845) 2018-10-24 09:58:44 +02:00
Charles Garwood
c05b77961e Reduces device registry card height to only show 4 entities before scrolling (#1844) 2018-10-23 17:40:31 +02:00
Paulus Schoutsen
19c365cd12 Update version to 20181023.0 2018-10-23 14:01:51 +02:00
Paulus Schoutsen
29f032087e Update translations 2018-10-23 14:01:22 +02:00
Paulus Schoutsen
d0cb7b9724 TS history data (#1839)
* Convert history data to TS

* Lint

* Extract cached history

* Move around
2018-10-23 13:54:52 +02:00
Thomas Lovén
ad162677a6 Introduce typescript to hui-conditional-card (#1831) 2018-10-23 12:11:06 +02:00
Thomas Lovén
fbbbe7d17d Add HomeAssistant object hass to LovelaceCard interface (#1843) 2018-10-23 10:53:42 +02:00
Ian Richardson
ef0d11c042 connection is being populated for HomeAssistant type, not conn (#1841) 2018-10-23 09:33:04 +02:00
Ian Richardson
fc2608980f Generate icons from `.ts. files (#1842) 2018-10-23 09:32:27 +02:00
Tom Raithel
cc97e82a78 Improve size of device cards and add max-width for entities (#1838)
fixes #1751
2018-10-23 00:12:39 +02:00
Paulus Schoutsen
54e3191de6 Reinstate first call true 2018-10-22 21:40:35 +02:00
Paulus Schoutsen
4f8c8762c7 Fix second visit to history panel (#1835) 2018-10-22 21:37:21 +02:00
Zack Arnett
c190f1986e Merge pull request #1834 from home-assistant/fix-chart-tooltip
Fix chart tooltip
2018-10-22 15:13:25 -04:00
Paulus Schoutsen
b418048bc9 Fix chart tooltip 2018-10-22 21:07:31 +02:00
Paulus Schoutsen
0fdd1c74f2 Always define localize func (#1830) 2018-10-22 20:31:43 +02:00
Thomas Lovén
3b1b2b95e7 Add option to pick number of columns for glance card (#1832) 2018-10-22 20:10:48 +02:00
Paulus Schoutsen
3bb5484b7f Bump version to 20181021.0 2018-10-21 20:32:05 +02:00
Paulus Schoutsen
d93c09b27b Fix reference to this.language (#1825) 2018-10-21 20:31:41 +02:00
Paulus Schoutsen
e7ec18d270 Fix lint 2018-10-21 20:31:24 +02:00
Paulus Schoutsen
3ebe21e135 Update translations 2018-10-21 20:16:09 +02:00
Ian Richardson
aca1ecf1ee Convert hui-markdown-card to TypeScript/LitElement (#1808)
* Convert hui-markdown-card to TypeScript/LitElement

* Addressed review comments

* Addressed review comments

* Addressed review comments
2018-10-21 20:09:11 +02:00
Charles Garwood
e8ef2fdc2c this.language -> this.hass.language (#1816) 2018-10-21 15:12:28 +02:00
Paulus Schoutsen
b129d5fb08 Refresh cloud status if paying sub info comes in (#1822) 2018-10-21 12:28:16 +02:00
Zack Arnett
11f4564465 Merge pull request #1807 from home-assistant/safer-icon-brightness
Safer brightness calculation for icons
2018-10-19 20:58:46 -04:00
Thomas Lovén
c9d140281b fix typo in variable name 2018-10-19 16:35:52 +02:00
PhracturedBlue
fa637a37d5 Fix mailbox issues with this.fire() and this.language undefined (#1809)
* Fix bug with this.fire and this.language

* Proper language variable
2018-10-19 16:15:31 +02:00
Thomas Lovén
1589c3fc51 Better error message 2018-10-19 15:29:05 +02:00
Thomas Lovén
bdc2b31202 Complain and ignore instead of fixing 2018-10-19 12:07:33 +02:00
Thomas Lovén
0970e1e33c Fix overflow of image elements. (#1811)
* Fix overflow of image elements.

* Positioning safeguards
2018-10-19 10:41:08 +02:00
Timmo
028003dffc Set attributes in input form controls (#1805)
* 🔨 add autocapitalize, autocomplete, autocorrect and spellcheck attributes

* 🔨 switch autocapitalize to none

* 🔨 add attributes to dev-state

* 🔨 add attributes to entity-picker
2018-10-19 09:13:45 +02:00
Thomas Lovén
1eb4ac7f34 Safer brightness calculation for icons 2018-10-19 00:01:23 +02:00
Zack Arnett
d97e356376 Merge pull request #1794 from zsarnett/glance-unavailable
Glance Card update to show when entity is unavailable
2018-10-18 11:21:08 -04:00
Zack Arnett
d36352af16 Removing Repeat 2018-10-18 10:26:42 -04:00
Zack Arnett
05ae92d5f8 Merge pull request #1786 from zsarnett/glance-column-change
Changing Glance Column Width default to fill card
2018-10-18 09:52:16 -04:00
Paulus Schoutsen
dce612f944 Trim whitespace 2018-10-18 15:40:37 +02:00
Ian Richardson
3a196203c3 Convert hui-iframe-card to LitElement/TypeScript (#1801)
* Convert hui-iframe-card to LitElement/TypeScript

* style cleanup

* Address review comments

* Addressed review comments
2018-10-18 15:37:01 +02:00
Zack Arnett
33578a6289 Updating from reviews 2018-10-18 09:28:49 -04:00
Zack Arnett
4c3db2119b Update to show when entity is unavailable 2018-10-18 09:14:32 -04:00
Zack Arnett
4a7ff3cd94 Removing Column width variable in interface 2018-10-18 09:06:29 -04:00
Paulus Schoutsen
5578580d78 Verison bump to 20181018.0 2018-10-18 13:39:45 +02:00
Paulus Schoutsen
dc1d8366a5 Fix automation editor (#1804) 2018-10-18 13:39:18 +02:00
Paulus Schoutsen
252f0692c8 Add hass on badge (#1802)
* Add hass on badge

* Add more hass everywhere
2018-10-18 13:21:06 +02:00
Thomas Lovén
9d13925280 Show currently selected language in profile settings. Resolves #1797 (#1800) 2018-10-18 09:55:28 +02:00
Thomas Lovén
5462a71f52 Use this.hass.language since this.language is removed from localize mixin. (#1799) 2018-10-18 09:54:01 +02:00
Josh McCarty
42953a0b62 Use title case for all configuration pages (#1793)
Localize translations will need to be updated separately.
2018-10-18 09:25:35 +02:00
Thomas Lovén
f146a1d80f Lovelace: Allow press-and-hold on picture-elements elements. (#1745)
* Allow press-and-hold on picture-elements elements.
2018-10-17 22:16:17 +02:00
Zack Arnett
a113c71de7 Merge branch 'master' into glance-column-change 2018-10-17 15:06:29 -04:00
Zack Arnett
1f642f436a Adding Theme option to Glance and Button Cards (#1783)
* Adding Theme option to Glance and Button Cards

* Updateing Theme default to `default`

* Prettier Update
2018-10-17 20:20:05 +02:00
Zack Arnett
62d27a17d5 Takes out column width variable 2018-10-17 13:06:57 -04:00
Zack Arnett
35941a58a5 Prettier Fixes 2018-10-17 11:11:29 -04:00
Paulus Schoutsen
2ace2165e0 version bump to 20181017.0 2018-10-17 14:06:59 +02:00
Paulus Schoutsen
1cfcacfa9a Update translations 2018-10-17 14:06:20 +02:00
Paulus Schoutsen
e020fd1154 👋 decorators (#1790) 2018-10-17 13:58:24 +02:00
Paulus Schoutsen
1dcc645fec Guard cloud info being null (#1788) 2018-10-17 13:48:31 +02:00
Thomas Lovén
87fba75860 Fix margins in vertical-stack (#1789) 2018-10-17 13:48:04 +02:00
Paulus Schoutsen
294360d35a Fix babel config 2018-10-17 09:20:41 +02:00
Paulus Schoutsen
a7684d7206 Add some decorators (#1784)
* Add some decorators

* Disable sort keys

* Add babel plugins

* Update typescript to 7.1
2018-10-16 23:30:13 +02:00
Paulus Schoutsen
af81ede100 Fix showing sub info (#1785) 2018-10-16 23:29:40 +02:00
Zack Arnett
698beedaa2 Changing Clance Column width default to fill card 2018-10-16 16:20:28 -04:00
Paulus Schoutsen
a6b4cce7f3 Upgrade MDI icons (#1781) 2018-10-16 20:02:09 +02:00
ehendrix23
ba66ff840f Added domain icon for homekit (#1782)
Added domain icon home-automation for domain homekit. With PR home-assistant/pull/17180 the homekit component will create entries within logbook. This PR is to set the icon displayed then for those logbook entries to be the home-automation icon.
2018-10-16 19:06:19 +02:00
Zack Arnett
c296f33ba1 Update Button Card to TS + Lit (#1778)
* Updating from Reviews - Reset commits and force pushing

* Removing Redundant check on config

* Checking Entity before setting config
2018-10-16 19:04:29 +02:00
Paulus Schoutsen
e7a49192bd Type check as part of lint (#1780)
* Type check as part of lint

* Lint

* Validate service exist for call-service action

* Fix for of
2018-10-16 17:21:05 +02:00
Thomas Lovén
5774d913af Lovelace: Add a label entity row (#1779)
* Add a label entity row

* Style fixes

* Allow blank label text

* Rename to section
2018-10-16 16:50:40 +02:00
Charles Garwood
b068db3f7a Hide Z-Wave "Remove/Replace Failed Node" Buttons unless nodes are failed (#1777)
* Hide failed node buttons if node isn't failed

* Cleanup
2018-10-16 09:05:15 +02:00
Paulus Schoutsen
8e49241e7c Add types to hass object (#1776) 2018-10-16 09:04:10 +02:00
Tom Raithel
b8cee5cc9c Fix Icon spacing in Logbook list (#1774) 2018-10-15 21:02:32 +02:00
Zack Arnett
794808d3a7 Button Card - Lovelace Addition (#1766)
* Initial Commit - Button Card

* Fixing Coloring Review

* Resolving Reviews

* Updating last Reviews
2018-10-15 20:07:13 +02:00
Zack Arnett
48f6d1dfec Adding Alarm Panel to Lovelace (#1758)
* Adding Alarm Panel

* Updating error in Lint

* Review Changes

* Using label-badge for upper right icon

* Resolving Reviews

* Prettier Fixes

* Updating style to fix overlapping state badge

* Adding Alarm Card back to create element

* Resolving reviews and reposition of Icon

* Updating to Localize Labels
2018-10-15 19:14:43 +02:00
Paulus Schoutsen
97e1aae9c0 Introduce TypeScript (#1773) 2018-10-15 19:07:08 +02:00
Paulus Schoutsen
e2511c5ed3 Remove default export fire event (#1772)
* Remove default export fire event

* Update provide_hass.js
2018-10-15 06:17:33 +02:00
Paulus Schoutsen
74bdfc8c2d Use style.setProperty instead of updateStyles 2018-10-14 22:53:33 +02:00
Paulus Schoutsen
fbccf23d36 Clean up localize mixin (#1771) 2018-10-14 22:40:43 +02:00
Paulus Schoutsen
906aaa15a3 20181014.0 2018-10-14 19:05:46 +02:00
Paulus Schoutsen
0ae1f9c754 Update Translations 2018-10-14 19:05:45 +02:00
Adam Mills
f1bd89fd02 Fix checking for syntax if for doesn't exist (#1769) 2018-10-14 19:04:51 +02:00
Paulus Schoutsen
3949b47e51 Introduce object rest spread (#1763) 2018-10-14 19:03:25 +02:00
Bram Kragten
2f6595bca7 add min-width to childeren of horizontal stack (#1761)
See https://css-tricks.com/flexbox-truncated-text/
2018-10-13 16:02:47 +02:00
Paulus Schoutsen
3bcd0ddc46 Migrate Babel 6 -> 7 (#1762)
* Migrate Babel 6 -> 7

* Update babel-eslint
2018-10-13 11:25:03 +02:00
Paulus Schoutsen
ca93c2cfcd Convert glance card to lit (#1760)
* Convert glance card to lit

* Guard for hass before config

* Lint

* better click listening

* Move config check

* Format HTML
2018-10-12 22:18:38 -07:00
Paulus Schoutsen
a633e3c553 version bump to 20181012.0 2018-10-12 14:49:33 +02:00
Paulus Schoutsen
bef2731207 Update translations 2018-10-12 14:49:15 +02:00
Paulus Schoutsen
ee53ee4077 Missing localize (#1757) 2018-10-12 12:50:58 +02:00
Paulus Schoutsen
34bfc12647 Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Nikolay Vasilchuk
3b425c3e14 Logbook: filter by entity and period (#1728)
* Filter logbook by entity_id

* Filter logbook by period

* Filter logbook styles

* CI Fix

* Review

* Review

* CI Fix
2018-10-11 11:46:16 +02:00
Zack Arnett
69eb007ea2 Adding Gauge Card to Lovelace (#1742)
* Commiting Only needed Files. Adds Gallery Entry

* Adding Attribute current_temperature to gallery entry config

* Fixing code from review and updating gallery

* Updating Gallery to show errors

* Resolving Reviews and updating gallery

* Deleting unused line

* Minor changes

* Address my own comments.
2018-10-11 10:30:56 +02:00
Jerad Meisner
90c3350d40 Fix error when only one state history entry. (#1750) 2018-10-09 11:12:04 +02:00
John Arild Berentsen
a7ddbd72b3 Fix non-working zwave log andriod PWA (#1714)
* Fix non-working andriod PWA

* Forgot clearing dialog setInterval

* Correctly identify pwa or browser interval clearing

* Move isPwa to common

* Stab at making imorted dialog

* Redone refresh

* Remove unused property
2018-10-09 11:10:32 +02:00
988 changed files with 109099 additions and 31081 deletions

View File

@@ -1,5 +1,5 @@
{
"extends": "airbnb-base",
"extends": ["airbnb-base", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
@@ -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,
@@ -67,13 +69,11 @@
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/jsx-no-comment-textnodes": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"no-restricted-syntax": [0, "ForOfStatement"]
"no-restricted-syntax": [0, "ForOfStatement"],
"prettier/prettier": "error"
},
"plugins": [
"react"
]
"plugins": ["react", "prettier"]
}

13
.gitattributes vendored Normal file
View File

@@ -0,0 +1,13 @@
# Ensure Docker script files uses LF to support Docker for Windows.
# Ensure "git config --global core.autocrlf input" before you clone
* text eol=lf
*.ts whitespace=error
*.js whitespace=error
*.ico binary
*.jpg binary
*.png binary
*.zip binary
*.mp3 binary
demo/public/api/camera_proxy_stream/* binary

4
.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]
@@ -22,7 +23,8 @@ bin
dist
# vscode
.vscode
.vscode/*
!.vscode/extensions.json
# Secrets
.lokalise_token

8
.vscode/extensions.json vendored Executable file
View File

@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"eg2.tslint",
"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
}
}

35
config/babel.js Normal file
View File

@@ -0,0 +1,35 @@
module.exports.babelLoaderConfig = ({ latestBuild }) => {
if (latestBuild === undefined) {
throw Error("latestBuild not defined for babel loader config");
}
return {
test: /\.m?js$|\.ts$/,
use: {
loader: "babel-loader",
options: {
presets: [
!latestBuild && [
require("@babel/preset-env").default,
{ modules: false },
],
require("@babel/preset-typescript").default,
].filter(Boolean),
plugins: [
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
[
"@babel/plugin-proposal-object-rest-spread",
{ loose: true, useBuiltIns: true },
],
// Only support the syntax, Webpack will handle it.
"@babel/syntax-dynamic-import",
[
"@babel/transform-react-jsx",
{
pragma: "h",
},
],
],
},
},
};
};

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

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