9059 Commits

Author SHA1 Message Date
Paulus Schoutsen
3ba15cb7b5
Fix error when creating new automation (#683)
* Import correct computeStateDomain

* ha-service-picker to not crash when no hass

* Fix routing be less active

* Fix combo box value sync
2017-11-25 21:43:52 -08:00
Paulus Schoutsen
0707528bd7
Entity dropdown improvement (#674)
* Ignore hass changes while dropdown is open

* Upgrade vaadin-combo-box

* Fix styling on dev-service panel

* Fix styling for ha-entity-dropdown

* Fix height vaadin-combo-box dropdown

* Rename ha-entity-dropdown to ha-entity-picker

* More entity improvement (#675)

* Update script and automation editor to use entity picker

* Add entity and service picker to service dev panel

* Lint
2017-11-25 16:00:43 -08:00
Paulus Schoutsen
c330b87506
Shopping List: Allow adding items (#647)
* Shopping List: Allow adding items

* Remove unused parts
2017-11-24 21:27:55 -08:00
Klaas Hoekema
6c2cd420f5 Set 'heating' graph series only for climate graphs (#665)
PR #617 added a steppedArea series to climate graphs to show when the
thermostat is calling for heat. It also accidentally converted the second
series in every graph to steppedArea. This moves the option specification
into the `if (domain === 'thermostat' || domain === 'climate')` block so
it will only be applied when it's relevant (and gets it closer to the
series it's configuring).

It also calculates the series index by counting the number of columns
immediately after the target one is added. Which still isn't elegant,
but seems solidly better than hard-coding the index as `1`.
2017-11-23 12:27:31 -08:00
c727
95288f8c3d Add Latvian to languages (#669) 2017-11-23 12:26:41 -08:00
Paulus Schoutsen
713117d4d9
Add an entity picker (#666)
* Add an entity picker

* Lint
2017-11-22 14:37:25 -08:00
linvinus
db630677a4 fix for #667 (#668)
* fix #667

* fix travis errors
2017-11-22 14:35:58 +02:00
Paulus Schoutsen
3a100bff23
Make ha-markdown use no polymer (#662) 2017-11-21 21:15:04 -08:00
Paulus Schoutsen
3d90d1d016
Tweak index.html (#657) 2017-11-20 21:52:35 -08:00
Adam Mills
3412edb843 Compute state display tests (#643)
* Move computeDomain and format functions to js

* Add tests for computeStateDisplay

* Always recalculate state display

* Remove LANGUAGE from hassUtils object

* Move AppLocalizeBehavior import to mixins

* Import mixins to state-card-display

* Safety check on computeStateDisplay

* Don't store computed domains on stateObj

* Integration tests for state-card-display

* Include extractDomain code in polymer repo

* Remove util function null checking

* Dont render test element without hass and stateObj

* Revert "Don't store computed domains on stateObj"

This reverts commit e3509d71823ff5e42a4dcf4849a98c5bb6cb391c.

* Revert "Always recalculate state display"

This reverts commit 27c24e2694ee6f7c147782532268b3a67998d49b.
2017-11-20 21:46:36 -08:00
Alok Saboo
7e77a7c32c Add presence device_class for binary_sensor (#659)
* Add presence device_class

* Added translations

* Update en.json
2017-11-20 21:45:08 -08:00
Paulus Schoutsen
cb5c9b3f3f
Convert configurator to markdown (#644)
* Convert configurator to markdown

* Lint

* Change order
2017-11-20 21:41:53 -08:00
Adam Mills
8d790e9601 Add icons for input_datetime (#661) 2017-11-20 21:23:19 -08:00
c727
e5974ab71b Add Korean and Bosnian (#650) 2017-11-19 13:35:47 -08:00
Andrey
5a65fd7526 Add missig style (#653) 2017-11-19 10:41:39 -08:00
Adam Mills
fbc9755796 Keep language/resources on login (#646) 2017-11-18 20:04:40 -08:00
Andrey
415b0b127f Don't put functions in global scope (#640) 2017-11-17 10:27:56 -08:00
Paulus Schoutsen
6074de356c
Disable plant card (#636) 2017-11-16 21:52:07 -08:00
c727
1af77e682d Add pt-BR to languages (#625) 2017-11-16 21:20:23 -08:00
Andrey
ef5155984f Use keys in state_badge::alarm_control_panel (#631) 2017-11-16 21:15:05 -08:00
PeteBa
8f0ebcb69d WIP: Ha-card for plant component (#583)
* Ha-card for plant component

* Feedback updates and grid css

* Revert grid css
2017-11-15 23:29:55 -08:00
Adam Mills
70c082716f MVP tests for hass-util.html (#629)
* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
2017-11-15 21:42:54 -08:00
Andrey
41e97a6f83 Clone app-header-layout (#632)
* Fix group more-info not updating

* Remove old observer

* Upgrade translate(0) hack
2017-11-15 17:12:09 -08:00
Klaas Hoekema
de87c5b19b Add shaded area to show when calling for heat (#617)
Adds a series to the climate graph to shade the area under the current
temperature line red when the thermostat is calling for heat.

Uses the current temperature because it's guaranteed to be in the right
temperature range for the graph and it should minimize overlap since by
definition when the thermostat is calling for heat the current temp would
be below the target temp.

Uses `steppedArea` because most other series types don't handle
intermittent (i.e. with sections of `null` throughout) data very well.
2017-11-14 20:44:24 -08:00
Andrey
675a7a3b86 Fix group more-info not updating (#622)
* Fix group more-info not updating

* Remove old observer
2017-11-13 08:29:47 -08:00
Andrey
a4bcf062d5 Add missed mixin to ha-call-api-button (#620) 2017-11-13 08:28:28 -08:00
Adam Mills
056e9e0d74 Translations for core states (#575)
* Fix deeper nested translations build

* Make fallback to message optional

* Use translated state names

* Remove unused switch cases

* Use src en.json as fallback instead of downloaded

* Use separate translations for badge states

* Eliminate unnecessary StatesMixin

* Remove now unused localize fallback parameter

* Fix capitalization to match material guidelines

* Move media player text generation back to model

* Make localize args object

* Change Mixin to use computed function

* Revert to normal args spread for haLocalize

* Rename to computeHaLocalize

* Allow state to default for badge and media player

* Denormalize en.json with Lokalise placeholders

* Fix cleanups missed after master merge

* Split zwave query stage states to separate keys

* Throw error to fail gulp build

* Fix zwave template and regression on general state
2017-11-12 17:48:42 -08:00
c727
1314caba97 Add new languages to metadata (#591)
* Add new languages to metadata

* Update translationMetadata.json

* Add et

* Add ca (twitter request)

* Add en-US

* Remove en-US

* Add es-419

* Add ta
2017-11-12 14:14:33 +02:00
Adam Mills
1ab551116e
Fix login form with translations (#612)
* Revert "Fix not showing login form (#564)"

This reverts commit d2faeaffe7a578d86d04394af6590e94e42f0e09.

* Don't lose translation resources on logout

* Fix lint
2017-11-11 18:16:15 -05:00
c727
f106767eae Don't add more-info-card if hidden (#549)
* Don't add more-info-card if hidden

* Fix c&p

* Use itemForElement

* Fix travis

* Update ha-entities-card.html

* Update ha-entities-card.html

* Remove brackets
2017-11-11 13:19:04 -08:00
Andrey
583abedd34 Support serving ES6 JS to clients (#596)
* Support serving ES6 JS to clients

* Make es6 default dir and es5 a special dir

* Fix package building

* Fix build_frontend script
2017-11-10 09:05:37 -08:00
Adam Mills
11f4f3b3c9
Update zwave to use new state values (#584)
* Update zwave to use new state values

* Support for zwave initializing state

* Show query stage on card for zwave entities

* Move logic to compteStateState
2017-11-07 10:14:01 -05:00
c727
f600a8e7f4 Add new requested languages (#579)
* Add new requested languages

* Add Hindi, Telugu, Bengali

* Correct order
2017-11-06 11:14:14 -05:00
c727
d1325da6e6 Fix Capitalization in English translation (#571)
* Fix Capitalization in English translation

https://material.io/guidelines/style/writing.html#writing-capitalization-punctuation

* Add Spanish
2017-11-05 17:45:08 -08:00
Paulus Schoutsen
95031fdd79 Fix import 2017-11-05 12:46:53 -08:00
Paulus Schoutsen
fe439723ee
Fix more event mixin missing (#570) 2017-11-05 12:37:57 -08:00
Simon
ba5f401890 Introduced a new device class "plug" for the binary sensor. (#558)
* Introduced a new device class "plug" for the binary sensor.

See https://github.com/home-assistant/home-assistant-polymer/issues/550

* removed plug as domain
2017-11-05 10:23:57 -08:00
Paulus Schoutsen
d2faeaffe7
Fix not showing login form (#564) 2017-11-04 12:47:28 -07:00
Adam Mills
6959b1849f Store language native names in git (#556)
* Don't delete the gitignore file

* Store translation native names in git
2017-11-03 21:31:22 -07:00
Andrey
c3a6495eb1 Don't load mdi icons with JS - it doesn't do anything. (#546) 2017-11-03 20:36:00 -07:00
Adam Mills
fdf2fa3d3f Migrate to Lokalise for managing translations (#555) 2017-11-03 20:34:47 -07:00
Andrey
d2e9918f88 Allow passive events (#551) 2017-11-02 20:54:41 -07:00
Paulus Schoutsen
da5ae33bb3 Remove introduction card (#543)
* Remove introduction card

* Extract ha-markdown component

* Limit image width

* Links in persistent notification should be blue
2017-11-01 10:52:39 +01:00
Andrey
3e86ba1222 Use dynamic-align on all dropdowns (#542)
* Use dynamic-align on all dropdowns

* Replace tab with spaces
2017-10-30 17:48:30 -07:00
Andrey
7479aeceee
Merge pull request #532 from andrey-git/translations
Make translation utils properly handle null selected language.
2017-10-30 19:24:05 +02:00
andrey-git
386193ee44 Fall back to english on missing fingerprint. 2017-10-30 19:03:38 +02:00
Paulus Schoutsen
33eb4172b3 Fix async is not a method 2017-10-29 22:15:37 -07:00
Adam Mills
fb0b1286d2 Convert remaining elements to ES6 classes (#538)
* Convert remaining elements to ES6 classes

* Use native DOM methods for tests

* Fix Polymer 2 debounce call
2017-10-29 21:47:03 -07:00
andrey-git
e9d84d2a69 Only parse JSON once 2017-10-28 11:55:30 +03:00
Andrey
17402a1976 Turn ha-cards.html into ES6 class (#533) 2017-10-27 22:05:08 -07:00