Commit Graph

46 Commits

Author SHA1 Message Date
Dan Smith
ae41787f5f Adjust the binary_sensor icon according to sensor_class
This makes us call stateIcon() from computeIcon() instead of domainIcon(),
and breaks out the actual icon determination logic into a separate function.

I tested with a sensor in a card and a badge and it looks good.
2016-02-18 12:25:00 -08:00
Paulus Schoutsen
f3399c2c3a Add support for assumed_state 2016-02-15 01:00:12 -08:00
Paulus Schoutsen
0d59490ebc Add support for garage doors 2016-02-11 21:51:25 -08:00
Paulus Schoutsen
de22de9a08 Fix: entity pictures are circular again 2016-02-07 11:31:41 -08:00
Paulus Schoutsen
4d3c0e6a4c Update packages 2016-02-07 00:13:39 -08:00
Paulus Schoutsen
8c3fc533b1 state label badge will render unknown state as dash 2016-02-06 22:40:23 -08:00
Ben Thomas
89eee944c6 Update state-badge.html
adding a background-color to the icon-image in this element fixes the issue where images and icons overlap but allows a fallback if an image is not defined.  The only situation that this doesn't cover is if an icon is specified and the link is broken (i.e. a 404 on the image), then there will just be a white block. I decided this was actually more useful since then its obvious that there should be an image there.
2016-01-14 09:33:26 -07:00
Paulus Schoutsen
cdc1437944 Update eslint 2016-01-13 23:47:28 -08:00
Paulus Schoutsen
b9631fac6e click -> tap 2016-01-13 00:31:38 -08:00
Paulus Schoutsen
1ab2eb356e Prevent tapping to go through overlay 2016-01-12 23:39:08 -08:00
Bart274
989845aa4b Update state-badge.html
Color the badge of a binary sensor on or off depending on the state
2016-01-12 14:25:52 +01:00
Paulus Schoutsen
4da3ecaad4 Remove CSS workaround for fixed bug in paper-toggle 2016-01-02 12:49:16 -08:00
Paulus Schoutsen
f3d3724df7 Upgrade bower dependencies 2015-12-17 19:25:46 -08:00
Paulus Schoutsen
f4d80f4977 Upgrade to babel 6 2015-12-13 23:53:35 -08:00
Paulus Schoutsen
300f3582a6 Add support for locks 2015-11-29 22:48:55 -08:00
Fabian Affolter
717a3699b2 Combined with script 2015-11-20 15:23:24 +01:00
Fabian Affolter
c39daa6a59 Update color and computeIcon for binary sensor and updater 2015-11-18 22:29:35 +01:00
Fabian Affolter
0269527fdb Add binary sensor 2015-11-17 23:05:09 +01:00
Ryan Kraus
d9ac419639 Style fixes and compile error fix to updater badge
1) Added two missing semicolons.
2) Added missing more-info js file for updater badge.
2015-11-15 05:54:49 -05:00
Ryan Kraus
7d1c40db2e Added updater badge 2015-11-15 05:33:56 -05:00
Paulus Schoutsen
f2d9a4f071 Do not color icon if too white 2015-11-15 00:36:35 -08:00
Paulus Schoutsen
e550b0cec2 Remove ha-state-domain-icon 2015-11-15 00:36:15 -08:00
Paulus Schoutsen
0b04e1e20f Fix entity-toggle forceStateChange 2015-11-14 23:19:49 -08:00
Paulus Schoutsen
5ea83557bb Migrate light to use RGB instead of XY color 2015-11-07 00:55:00 -08:00
Paulus Schoutsen
d7f3391617 Improve alarm control panel badge 2015-11-04 22:36:13 -08:00
Paulus Schoutsen
16b19369e6 Workaround for toggle buttons having extra white space
See https://github.com/PolymerElements/paper-toggle-button/issues/64
2015-11-04 22:35:42 -08:00
Paulus Schoutsen
9a5079c15b Upgrade to material design icons 2015-11-03 00:17:24 -08:00
Paulus Schoutsen
56935cbc8a Add a state badge with support for icon attribute 2015-11-01 23:43:30 -08:00
Paulus Schoutsen
f9f968b7c4 Always show sensor value inside badge 2015-11-01 23:43:30 -08:00
Paulus Schoutsen
5973dd4171 Scenes can can no longer be toggled 2015-10-12 23:38:29 -07:00
Paulus Schoutsen
d8d693d72e Remove unused import 2015-09-25 13:43:10 -07:00
Paulus Schoutsen
78cf25f605 Entity badges show entity_picture 2015-09-25 07:43:53 -07:00
Paulus Schoutsen
431680a012 Map marker show abbreviated name 2015-09-25 07:43:35 -07:00
Paulus Schoutsen
7aadd6da9c Add pointer cursor to toggle button 2015-09-23 23:29:51 -07:00
Paulus Schoutsen
f2def04044 Allow toggling groups 2015-09-23 23:17:23 -07:00
Paulus Schoutsen
4e797599b6 Fix linting 2015-09-21 22:23:00 -07:00
Paulus Schoutsen
f354b72a8d Add map section 2015-09-20 23:12:58 -07:00
Paulus Schoutsen
63e039a221 Merge branch 'pr/6'
Conflicts:
	src/components/entity/ha-state-label-badge.js
2015-09-16 08:58:28 -07:00
Per Sandström
58535ab323 change to badge and remove keypad 2015-09-15 20:17:43 +02:00
Paulus Schoutsen
d069489d09 Update state label badge for device tracker 2015-09-09 23:06:37 -07:00
Paulus Schoutsen
9d415b272d Fix more info dialog open issues 2015-08-29 12:32:07 -07:00
Paulus Schoutsen
3567fe70be Fix global style 2015-08-29 11:50:03 -07:00
Paulus Schoutsen
ee8492df46 Adhere to material design spec 2015-08-27 00:37:19 -07:00
Paulus Schoutsen
82aca23a67 State label badge bug fixes 2015-08-23 17:19:16 -07:00
Paulus Schoutsen
63692bba67 Tweak sensor label babdge 2015-08-23 10:17:45 -07:00
Paulus Schoutsen
a35d569e22 UI-2015 2015-08-23 01:26:31 -07:00