12643 Commits

Author SHA1 Message Date
Boyi C
b6ad4edd32 Fix missing arguments in history-data. (#880) 2018-02-10 10:08:04 +02:00
Boyi C
c6030e6edc Replace Google Charts with Chart.js (#429)
* chartjs test

* [WIP] Modified for Chart.js

* Tweaking styles ( tooltips and lines )

* Almost done
TODO:
Change tooltips to HTML tag
Improve color function

* More work on Tooltips

* Improve update logic
Fix linting

* resolve conflict

* [WIP]
Create new tooltip mode hack.
Add axis padding to top and botton to prevent axis cutoff

* TODO: cleanup

* FIXME: tooltip in history graph not working correctly
reorganize some code

* fix build problem

* Fix color and tooltip issue
Fix label max width for timeline chart

* update dep

* Fix strange color after build due to `uglify` bug with reference the minified version.
Make line chart behavior more similar to Google Charts.
Make the chart honor to `unknown` and other state by manually calculate point value.

* fix bugs

* Remove label for only one data in timeline chart.
Fix bug for infinite loop in some cases

* Add HTML legend to chart.

* Fix isSingleDevice bug due to calculation.
Add isSingleDevice property support.

* fix for lint

* Replace innerHTML code with polymer node.

* Replace tooltip with HTML code

* fix tooltip style

* move default tooltip mode to plugin

* LINTING

* fix
Move localize history data to Timeline Chart.
Fix timeline static color.
Rework on chart resize.

* Bug fix:
Chart may disappear on some case.
Timeline chart calculation issue.
Change timeline chart hidden logic.

* fix tooltip
rework for resize event

* lint

* element

* Replace `var` to `let`.
Move import and ChartJs injection code to `ha-chart-scripts.html`.

* lint: convert more let to const

* fix font
fix undef

* update bower.json

* move

* Load chart code on demand
2018-02-09 22:39:15 -08:00
Paulus Schoutsen
500edbad0d Version bump to 20180209.0 2018-02-09 14:32:17 -08:00
Abílio Costa
3701e022bc Badge sorting (#844)
* sort badges correctly in user-defined group

* rename sorting list that is used for badges and groups

* remove trailing space

* better array iteration

* Revert "better array iteration"

This reverts commit 0a87b3350cf2bd60450e3d2985c7449efe73c18d.

* simplify sorting of badges
2018-02-09 14:30:35 -08:00
Paulus Schoutsen
be3f35c8cd Update translations 2018-02-09 14:28:21 -08:00
c727
81c49628e4
Hass.io card design for dashboard updateinfo (#877)
* Hass.io card design for dashboard updateinfo

* Remove test stuff
2018-02-09 22:49:17 +01:00
c727
ac628787ac
Hass.io improve store (#875)
* Hass.io improve store

* Improve code
2018-02-09 22:48:58 +01:00
c727
6ce72444ae
Hass.io improved snapshot view (#872)
* HASSIO Improved snapshot view

* HASSIO Improved snapshot view2

* Update main

* Feedback

* Travis

* Travis 2
2018-02-08 22:16:13 +01:00
c727
710c2f1094
Hass.io improved add-on view (#874)
* Rename

* Improvements

* Travis

* Feedback

* Typo
2018-02-08 22:15:51 +01:00
Steltek
1f703fbdda Make the password field autofocus on the login screen. (#862)
* Author:    Michel Meyers <debian@tcnnet.com>
Committer: Michel Meyers <debian@tcnnet.com>

Make the password field autofocus on the login screen.

* Update login-form.html
2018-02-07 16:39:50 -08:00
Marius
76153d1e17 Fixing #775 (#854) 2018-02-07 15:21:07 -08:00
Marius
ec930d2c56 HASSIO Improved addon view (#869)
* Improved addon view
Moved files to avoid conflicts with @c727
Modified data to addons
Removed unused properties
Removed blank line and unused class
Added link to polymer-element
Redone grouping

* Changes based on feedback

* Revert flex box

Maybe someone else can help to center the icon and text

* Display timestamp in new line

* Update hassio-card-content.html
2018-02-07 22:57:43 +01:00
cdce8p
9e09d5b095 ZWave Node Management - Show hidden nodes (#864) 2018-02-07 20:41:45 +02:00
Victor Cerutti
6ad0c254b5 Fix resizeObserver loop #12192 (#867)
When the slider width is updated, resizeObserver prevent for firing the function another time.
Exemple: https://jsfiddle.net/ba1ad26e/11/
Compete doc: https://wicg.github.io/ResizeObserver/#html-event-loop
Solution: Observe the width change of the card instead of the slider. If the state value is hidden/displayed, it won't change again the slider width and so it will prevent the msg in the log
Drawback: the function cannot use the width sent by the resizeObserver anymore as it's no longer the slider width but the card width
2018-02-05 22:31:00 -08:00
c727
a6340fb856 Fix themes for Hass.io Panel (#860)
* Fix themes for Hass.io Panel

* Link hass-util
2018-02-02 17:20:31 -08:00
Andrey
21ee9b297d Switch to babel env preset (#859) 2018-02-01 16:18:47 -08:00
Andrey
da807dc508 Add Object.values polyfill (#858) 2018-02-01 16:16:53 -08:00
Daniel Høyer Iversen
384d5fc8a9 Remove duplicate call to getDataArray (#853) 2018-01-31 20:14:19 +02:00
Paulus Schoutsen
fcea1fa57d Version bump to 20180130.0 2018-01-29 15:42:21 -08:00
Paulus Schoutsen
4f99bd6811 Update translations 2018-01-29 15:41:25 -08:00
Andrey
0256f73404 Pass language to charts and fix JS error (#847) 2018-01-29 00:28:03 -08:00
Andrey
a1b578f81e Report JS errors to backend (#842) 2018-01-27 11:50:13 -08:00
Andrey
13f8fa7e11 Add version to JS (#839)
* Add version to JS

* Throw if version wasn't found
2018-01-26 23:27:11 -08:00
Fabien Piuzzi
c11a525a2d Added support for humidity display in the climate state (#838) 2018-01-26 10:54:14 -08:00
covrig
d21c1bc615 Add input_text mode:password (#837) 2018-01-26 10:47:53 -08:00
Paulus Schoutsen
42d11c5a3f Version bump to 20180126.0 2018-01-25 23:25:09 -08:00
Paulus Schoutsen
41fe6e8021 Update translations 2018-01-25 23:24:13 -08:00
c727
c3e35a27ba Get language from languages[] first, detect CN (#830) 2018-01-22 23:24:27 -08:00
c727
89464c16ff Fix play/pause icon (#825)
* Fix play/pause icon

* Fix hidden
2018-01-21 19:50:12 -08:00
Paulus Schoutsen
9c2f6e591d
Run Hass.io panel in an iframe (#678)
* Run Hass.io in an iframe

* Update hass.io build script

* Lint

* Lint

* Fix build script

* Lint
2018-01-21 00:39:56 -08:00
Andrey
3c95559f33 Extract climate state into a separate component (#820) 2018-01-20 22:09:45 -08:00
Matthias Dötsch
50ed7678a1 Add translate tags to "cards" (#818)
* Add translate tags to "cards"

affected cards:
 - camera card
 - persistent notification
 - weather

* Add translate tags to "cards"

code style

* Add translate tags to "cards"

changes from code review
2018-01-20 22:08:47 -08:00
Adam Mills
8649c5352b Core config translations (#821)
* Config dashboard translations

* Simplify config pages

* Core/Core/Validation

* Core/Core/Reloading

* Core/Core/Server_Management

* Core/Push_Notifications

* Core/Translation

* Core/Themes

* Initial hassbian config translations

* Switch to sentence cases
2018-01-20 22:08:22 -08:00
PeteBa
31bc099cef Aligning the front-end card with latest Plant component changes (#633)
* Aligning with latest backend plant component changes

* Address review comments and plant component alignment

* Revert PR636 to reinstate card

* Add plant domain icon
2018-01-20 21:48:24 -08:00
Victor Cerutti
447dd6640f feature : display input number next to slider (#808)
* feature : display input number next to slider

* Improvements for Box mode of input number

Add unit when available and align the value to the right

* fix for small width cards

hide state if slider width<100px

* add a space between if and (

* Fix value display after a window resize

State value is now hiding or showing correctly after a window resize, using iron-resize component

* fixes eslint validator

* Fix a typo in state-card

* Improvement : Apply all properties altogether

As suggered by @andrey-git, I made use of setProperties

* Watch for mode update of input_number

If a mode is updated and the box switches from "box" to "slider", it now also update the visibility of the state value depending on the slider width

* Update width showing state value

* Use ResizeObserver when available

* Fix conditionnal mistake

Related @andrey-git review here https://github.com/home-assistant/home-assistant-polymer/pull/808#pullrequestreview-90048982
2018-01-20 21:47:15 -08:00
Andrey
31d2b6ffe1 Disconnect dom in invisible tabs (#790)
* Clear dom in invisible tabs

* Disconnect DOM of inactive tabs
2018-01-20 21:47:04 -08:00
Andrey
aced689207 History improvements (#817) 2018-01-20 21:45:53 -08:00
Paulus Schoutsen
3736d45318 Version bump to 20180119.0 2018-01-19 09:53:18 -08:00
Paulus Schoutsen
5749e2f07c Update translations 2018-01-19 09:53:07 -08:00
Paulus Schoutsen
783f356679
Add timer card and badge (#810)
* Add timer card and badge

* Disable interval on disconnect

* Tests!

* One more test case

* Remove padStart

* Remove state from timer state card
2018-01-19 09:26:06 -08:00
c727
85d58ba134 Always show locationName in Title (#602)
* Always show locationName in Title

* Handle if no name set

* Fix lint

* Feedback

* Readd L66-L68

* Feedback and fix for default_view

* Fix c&p

* Change default name for default_view to "Default view"

* Make everyone happy

* Make everyone happy2

* Fix CP

* Handle no homeassistant.name in config
2018-01-18 22:10:04 -08:00
Andrey
8b8ba5875f Fix for browsers without SW (#805)
* Fix for browsers without SW

* Improve check
2018-01-17 17:10:15 -08:00
Paulus Schoutsen
9131a7c7e3
Add LastPass workaround (#811) 2018-01-17 10:07:08 -08:00
Marius
3e0193c704 Bug fix for #761 and color enhance when temperature in flux (#772)
* Correct triggering temperature when min is reached and user clicks extra #761

* Fixed build problems from lint

* Fixed as per feedback from @c727

* Updated based on PR feedback from @andrey-git

* Improved defect based on better solution from @andrey-git

* Updated vars to const based on feedback

* Updated control to support better changing values regardless of step based on feedback
2018-01-16 17:02:55 +02:00
Fabian Affolter
40731152e9
Enable probot move (#807) 2018-01-16 09:26:08 +01:00
Victor Cerutti
811e9e2a0e fix slider showed in box mode (#802)
fixes https://github.com/home-assistant/home-assistant/issues/11094
2018-01-16 10:14:41 +02:00
Alok Saboo
4029508b3f Fix icon for device_class occupancy (#801) 2018-01-15 14:39:36 -08:00
Andrey
6fd8ad52b0 Move horizontal padding from state-cards to containing entity-card (#799) 2018-01-14 20:48:37 -08:00
Andrey
fbe44598ac Cleanup of partial-cards (#798) 2018-01-12 13:31:39 -08:00
Andrey
58b2a28fe5 Make sure climate more-info dropdowns are upto date (#797) 2018-01-11 22:50:47 -08:00