9049 Commits

Author SHA1 Message Date
c727
7d86f30a6b remove script from HIDE_MORE_INFO (#466) 2017-10-19 23:18:29 -07:00
Adam Mills
9c0845d595 Convert card elements to ES6 classes (#465)
* Convert cards to ES6 classes

* Bonus bugfix debugging card functionality

* Properly scope UPDATE_INTERVAL

* Condense simple property declarations
2017-10-16 22:09:55 -07:00
dersger
de64c766f6 Update media player progress bar (#458)
* Show progress during paused state
* Hide progress if there's no media_duration
* Only periodically update when playing and showing progress
2017-10-15 23:30:07 -07:00
Tentoe
2222944137 computeFiltersArray was supposed to return an array but return value was implicitly converted to a string (#442) (#457) 2017-10-15 23:28:08 -07:00
Sebastian Muszynski
cef0d64f08 Sensor attributes added to the more-info-fan panel. (#455) 2017-10-15 23:22:45 -07:00
R1chardTM
fa061a2603 Fix input number box step/min/max and accept decimals (#451) 2017-10-15 23:22:12 -07:00
moose51789
0bd330c76b correct input_number slider (#449)
the nested div was unnecessary for the hidden attribute, placing directly on the paper-slider works fine. this behavior caused the slider to overflow the screen at specific points.
2017-10-15 23:20:59 -07:00
Andrey
bc0d44ca81 Upgrade eslint to 4.8.0 (#445)
* Upgrade eslint

* Fix post-merge errors
2017-10-08 21:08:06 -07:00
Paulus Schoutsen
121c0d0879 Remove Safari toggle hack (#447) 2017-10-08 21:06:00 -07:00
Abílio Costa
3c30e65756 Fix group order inside defined views (#443)
* fix group ordering inside views

* fix order for when default_view is specified

* improve for loop and fix lint

* Revert "improve for loop and fix lint"

This reverts commit 3fffbcff3999f729e30993113bd39eb858221aa2.

* Revert "fix order for when default_view is specified"

This reverts commit f2c5614da1b225ee87d0e6fcc8d6414b130a78b6.

* Revert "fix group ordering inside views"

This reverts commit 470fa2e907c3bdde899b09be1baa23fd24ba2ef0.

* only request group sorting for default view

* fix lint

* sort groups based on view-defined order

* optimize group sorting

* fix typo
2017-10-08 08:11:33 -07:00
Andrey
29acf77eb5 Upgrade packages (#444) 2017-10-05 21:22:41 -07:00
Andrey
b0791abb9a Add support for history_graph component (#432)
* Add support for history_graph component

* Change dev 3s to intended 60s

* Address comments

* Make card header consistent
2017-10-05 09:15:17 -07:00
BioSehnsucht
890dbc6ad7 Rename input_slider to input_number and add numeric text box option (#431)
* * Rename input_slider to input_number
* Update input_number to Polymer 2.0
* Update input_number to optionally display slider, input box, or both

* input_number support either input box or slider mode, but not both

* input_number : change service from select_value to set_value
2017-10-03 21:34:43 +02:00
Sebastian Muszynski
91c8b4eb23 State on (active) color added for device class "fan". (#437) 2017-09-30 13:07:22 -05:00
Andrey
acf853f713 Change color of state-badge icon according to rgb or brightness (#436)
* Change color of state-badge icon according to rgb or brightness

* Remove unneeded edit

* Set minimum brightness at 15%. Clear previous timeout
2017-09-26 22:48:12 -07:00
Jan Almeroth
b1c83a8491 media_player: Don't switch to first input source, if we actually know better. (#433)
* doubleCheck: Don't switch to zero, if we actually know better.

https://github.com/home-assistant/home-assistant/issues/9517

* Fix linting

* Reverting changes, introducing sourceIndexOld
2017-09-23 17:08:30 -07:00
Andrey
a46e6b4cfa Switch ha-label-badge to Polymer2 class and add two css variables (#430) 2017-09-21 15:58:21 -07:00
Andrey
73289bca6d Fix customize config panel on FF (#425) 2017-09-11 20:12:40 -07:00
Paulus Schoutsen
4c96240ff6 Finish cloud login flow (#420)
* Finish cloud login flow

* Address comments

* Fix cache travis
2017-09-09 19:47:07 -07:00
Adam Mills
3912347f3d Convert home-assistant-main to ES6 class (#424)
* Convert home-assistant-main to ES6 class

* Add arrow functions to ensure this is bound

* Add missed parameter

* Picky linter
2017-09-09 19:45:48 -07:00
BioSehnsucht
19187ce518 Add input_text component (#408)
* Add input_text component

* Update input_text to Polymer 2

* input_text : changes suggested in home-assistant/home-assistant-polymer#408

* input_text : removing disabled option per home-assistant/home-assistant-polymer#408

* Fix file permissions

* UI tweaks + cleanup
2017-09-08 23:06:40 -07:00
Andrey
047c0005d9 Customize config improvements (#417)
* Switch customize panel to dom-if

* Customize config improvements
2017-09-04 07:55:04 -07:00
John Mihalic
010851b0df Modify camera image error text (#416) 2017-08-29 19:56:21 -07:00
Andrey
5bdbc49dc2 Improvements for customize config panel (#415)
* Don't save empty json values. Allow per-domain attributes.

* Fix typo
2017-08-29 09:44:05 -07:00
Andrey
206f624fb6 No longer fetch customui element (#414) 2017-08-29 00:07:56 -07:00
Andrey
0508a6bf2e Add customization config panel (#413) 2017-08-28 08:04:21 -07:00
Paulus Schoutsen
632f2bdaa7 Update dependencies (#412) 2017-08-27 14:09:02 -07:00
Paulus Schoutsen
b3995e63be Add initial cloud login (#411) 2017-08-27 13:08:20 -07:00
Adam Mills
894a84ba77 Fire helper update (#410)
* Use deduping mixin and ES6 arrow

* Update to Polymer legacy implementation of events

* Remove Ha prefix
2017-08-27 10:17:13 -07:00
Adam Mills
81f00db0c1 ES6 class upgrade ha-sidebar and home-assistant (#409)
* ES6 class upgrade ha-sidebar and home-assistant

* Remove unused imports

* Fix linter errors

* Added event fire mixin

* By some miracle that still worked

* Ignore class-methods-use-this

* Add mixin annotation
2017-08-26 16:52:06 -07:00
Boyi C
c289f6c925 History data not updating (#385)
* History data not updating

Fix history data not updating. History chart data will cache for 3 minutes. To reload, change the period dropdown to another value and change back.

* remove history cache
2017-08-18 08:38:30 -07:00
Paulus Schoutsen
faf576d43d Add script editor (#393)
* Add script editor

* Cleanup
2017-08-15 22:09:43 -07:00
Paulus Schoutsen
34e45427ea Fix login button (#391) 2017-08-13 14:08:02 -07:00
Paulus Schoutsen
f5781a9906 Add work around for Safari paper-toggle-button update issue (#387)
* Add work around for Safari paper-toggle-button bug

* Lint
2017-08-13 11:46:28 -07:00
Eugenio Panadero
9426cfd5ca fix weblinks opening two windows when clicking the text link (#389) 2017-08-13 11:46:04 -07:00
Adam Mills
688a984bac Configurator updates (#386)
* Hide configurator button if no caption configured

* Put configurator links on new line
2017-08-12 17:55:54 -07:00
PhracturedBlue
58e2781412 Add Initial Mailbox panel and sensor (#319)
* Add Initial Mailbox panel

* Use sha rather than index to lookup mp3 file

* Popups for audio and delete-confirmation.  Don't load all MP3s on page load

* Show duration of message

* Reload messages on change

* eslint fixes

* Wrap transcription text.  Use 2nd-row per entry for transcription.  Table consumes 100% of window height

* Update to support mailbox component

* Use mailbox component state instead of sensor state.  Fix a bug in delete

* Display mailbox entity

* Use events to trigger mailbox updates

* Support multiple mailbox platforms

* Use REST API for mailbox deletion

* Fix linting issues

* Make dialogs reactive

* Replace vaadin-grid with paper-items

* 1st attempt at truncating lines to two columns

* Apply requested changes from review

* Clean up + Lint
2017-08-08 20:58:37 -07:00
Boyi C
2e1d3e1fa7 Weatherpanel (#375)
* temporary save

* revert table to chart
add templow and condition support to the chart

* fix missing emoji

* fix linting

* commit, try to migrate table to div

* Change the table to div

* fix lint
2017-08-08 08:24:34 -07:00
Paulus Schoutsen
e81326cb65 Fix build 2017-08-06 10:55:46 -07:00
Andrey
4755b0438c Make sure graphs extend till the intended end time (#378) 2017-08-06 09:31:07 -07:00
Eugenio Panadero
478f6eb3b1 Add new service clean_spot to vacuums as command in the toolbar (#379)
- Add it with the 'broom' icon between the stop and the locate commands.
- Fix an error in the supportsCommandBar function
2017-08-06 09:29:50 -07:00
Paulus Schoutsen
b34c2a6f92 Consolidate config (#377)
* Move automation panel to config

* Hide Hass menu button from error screen

* No longer store undefined in local storage

* Move Z-Wave panel into config panel

* Move Z-Wave node options from core to Z-Wave config

* Remove panel entries in polymer.json

* Lint
2017-08-06 09:22:15 -07:00
Andrey
f57e2334c8 Polymer2 fixes (#376)
* Set all attributes together.

* Revert "Set all attributes together."

This reverts commit 00fe75ce4b78c17481bac45db0536169695f1f91.

* Set all attributes together.

* Workaround for justified on Polymer2
2017-08-05 14:02:49 -07:00
Andrey
ebc0c776e2 Add theme-choosing UI to config panel (#363)
* Add theme-choosing UI to config panel

* Add Backend-selected option

* Use Object.assign to change hass

* Fix #368 - support theme-color update.
2017-08-04 23:09:25 -07:00
Paulus Schoutsen
17519cce30 Small Polymer 2 tweaks 2017-08-02 23:32:02 -07:00
Paulus Schoutsen
512b07963b Add build using polymer-build (#344)
* Add build using polymer-build

* Use bundle strategies to tweak stripExcludes

* Only vulcanize hass.io panel

* Rename hassio panel generate script

* Remove hydrolysis

* Get it all somewhat working

* Fixes

* Allow ES2015 + fix minify JS

* Clarify we need to fix service worker minify

* Move service worker template out of tasks folder

* Fix broken CSS

* Wrap it up

* Fix maps
2017-08-02 21:31:04 -07:00
Bram Kragten
deb4f9e63f Set overflow to auto (#364)
(for the people without a mac ;-)
2017-08-01 12:01:05 -07:00
Paulus Schoutsen
f5117e67d1 Add border radius to paper-dialoggs 2017-07-31 23:11:08 -07:00
AHS
4af688a226 Variable colours (cards, backgrounds, sidebar, ...) (#361)
* Update partial-cards.html

* Update ha-card.html

* Update ha-card.html

* Update ha-style.html

* Update partial-cards.html

* Update ha-sidebar.html

* Update ha-panel-dev-service.html

* Update ha-media_player-card.html

* Update ha-media_player-card.html

* Update partial-cards.html

* Update ha-style.html

* Update ha-style.html

* Update ha-state-label-badge.html

* Update ha-style.html

* Update ha-panel-dev-service.html

* Update ha-media_player-card.html

* Update ha-state-label-badge.html

* Update ha-card.html

* Update ha-style.html

* Update ha-style.html

* Update partial-cards.html

* Update ha-style.html

* Update ha-style.html

* Update ha-panel-dev-service.html

* Update ha-panel-dev-state.html

* Update state-badge.html

* Update ha-label-badge.html

* Update home-assistant-main.html

* Update ha-style.html

* Update ha-label-badge.html

* Update ha-label-badge.html

* Update ha-style.html

* Update ha-panel-dev-state.html
2017-07-31 23:09:06 -07:00
Eugenio Panadero
347ef95d39 state card for vacuum component with toolbar in more-info-card (#359)
* state card for vacuum component with toolbar in more-info-card

* Basic functionality:

- main switch for turn_on / turn_off.
- Show secondary line with optional status, fanspeed and battery status.
- Show toolbar with play_plause, stop, locate and return_home service calls in the more-info card.
- Use support flags for all extra services (not for turn_on/turn_off).
- Filter specific (vacuum) keys in the state attributes table.

* lint fix

* remove the more-info card, use speed steps with input select

- No need for `more-info-vacuum.html` (using `hidden$='{{inDialog}}'` to separate views).
- Added an input select for the `vacuum_fanspeed_list` property, to set fanspeeds within the more-info view.

This way the controls appear above the history chart, and any extra attribute attached in the platform shows in the normal table below.

* change `start_pause` service

* remove state-card and add more-info card

- No need to make a state-card, as no extra line is allowed in the state-card
- No need to add attrs keys to `LOGIC_STATE_ATTRIBUTES`, using the `extra-filters=` parameter.
- New more-info card with the vacuum controls and the extra state attrs table.

* change state attrs names

* one more change state attrs names

* fix justification

* fix vertical space

* fix hide fan_speed when not supported
2017-07-31 22:58:03 -07:00