Commit Graph

114 Commits

Author SHA1 Message Date
Jérôme Wiedemann 3dc09e3723 Update custom-card-helpers 2019-06-25 22:28:14 +02:00
Jérôme Wiedemann d5c63600f5 add info.md 2019-06-08 16:36:01 +02:00
Jérôme Wiedemann 670e835b7a Bump version 2019-06-08 16:26:48 +02:00
Jérôme W efcaf7a779 Support for HTML in name (#185) 2019-06-08 16:25:06 +02:00
Jérôme Wiedemann 1a213fac54 Bump version 2019-06-05 00:08:23 +02:00
Jérôme W 965523836f Support for timer entities (#183) 2019-06-05 00:08:23 +02:00
Jérôme W c382ba5d3b Only specific users can disable the lock (#182)
* Allow to unlock the button for specific users only

* Update documentation
2019-06-05 00:08:23 +02:00
Jérôme W f361324ac4 Fix some templates not updating on changes (#181) 2019-06-05 00:08:23 +02:00
Jérôme W f6a3f2b47c New css variable for light color without temperature (#178)
* Add css variable --button-card-light-color-no-temperature

* Update documentation
2019-06-05 00:08:23 +02:00
Jérôme W 36e9e331c8 Fix ripple when lock is true (#176) 2019-06-05 00:08:23 +02:00
Jérôme Wiedemann e84a73b853 1.10.2 2019-05-25 17:49:56 +02:00
Jérôme W 87dd3e7020 Css fixes (#174)
* Fix when aspect_ratio is not defined

* Update circle CI config

* custom-card-helpers latest fix
2019-05-25 17:49:56 +02:00
Jérôme Wiedemann c08e334c47 1.10.1 2019-05-25 14:18:36 +02:00
Jérôme W f801f42224
1.10.1 (#172)
* 1.10.0

* Add circle-ci config

* CSS Fixes (#171)

* Fix some CSS issues

* Temp fix for custom-card-helpers being a git repo

* Fix when entity_id === entity in service calls
2019-05-25 14:05:29 +02:00
Jérôme W ec4d79ce43
Contrinuting guide 2019-05-24 18:10:34 +02:00
Jérôme W 5ec35fd72c
1.10.0 (#166)
* Add an option to ignore light temperature

* Deprecate style in favor of styles.card

* pre-commit hooks

* name_template and entity_picture_template

* Use custom-card-helpers

* Deep merging state by id

* Using latest custom-card-helpers

* Aspect ratio support and auto icon resizing

* Updating documentation
2019-05-24 12:54:42 +02:00
Jérôme Wiedemann 6f12577e15 Fix documentation 2019-05-16 02:48:06 +02:00
Jérôme W 4a2f16e209
Config template support (#154)
* Config template support

* deep merge for templates

* Use terser and fix #157

* Update documentation
2019-05-16 02:43:39 +02:00
apop880 27fb73bfe7 Update with repeat documentation (#151) 2019-05-10 15:23:00 +02:00
Jérôme W 8023fd8265
Repeatable hold_action, double tap & light color in css var (#148)
* Repeatable hold_action

* Cleanup

* lock customization

* CSS reorder

* Support for double click

* light entity css color variable

* doc fix

* css fix
2019-05-10 14:49:44 +02:00
Jérôme W c0f50ff675
Custom layout and refactor (#146)
* Fixes #145

* custom layout support

* Some css fix

* Documentation update

* Doc update

* Update TOC

* Localization support
2019-05-09 16:13:06 +02:00
Jérôme W 880e7e37e1
Add a nice locking mechanism (#139)
* Add a nice locking mecanism

* Update documentation

* Fix typo

* Remove useless styles

* Fix for touch devices

* Disable ripple effect while locked

* fix blank card height

* Show last changed instead of label

* Support for light temperature with color auto

* Style for last_changed

* Update documentation
2019-05-04 13:20:33 +02:00
Jérôme W 364580a281 Update issue templates (#137) 2019-05-01 08:08:03 -05:00
Jérôme W 7f10243f63
Per element style config (#136)
* Fix brightness calculation

* Own longpress was actually never used...

* Style per element

* Delete commented out functions

* Updating documentation

* Little doc update

* Fix doc

* Linting
2019-05-01 13:40:20 +02:00
Jérôme W 56a8fac0fa
Label and templates support (#134)
* Label and templates support

* Fix blank card with fixed width

* Fix some layouts
2019-04-29 18:44:04 +02:00
Jérôme W 21c60bb033
Switch to css grid and code refactor (#132)
* Switch to css grid and code refactor

* Ability to specify the width of the card

* Update documentation

* Fix invalid CSS value

* requested changes and bugfix
2019-04-29 10:50:13 +02:00
Jérôme W 37a8b89256
Some refactor + fix color brightness for light entity (#131)
* Some refactor + fix color brightness for light entity

* Fixes #129

* requested changes
2019-04-27 16:24:28 +02:00
coxtor 25131db8b7 Correct mistake in examples (#126)
changed "service" to "call-service", realizing this error took longer than it should have :)
2019-04-26 10:54:55 -05:00
Jérôme W 55343382ae
entity_picture/custom picture support with style (#119)
* entity_picture/Custom Image support

* Update documentation

* Adding VSCode Debugger support

* Some linting love <3

* Cleanup and Fixes #125

* lit-plugin addition
2019-04-26 01:00:50 +02:00
Alok Saboo a5b4a800af Update button-card.js file path (#124) 2019-04-25 11:38:41 -05:00
Jérôme W 6df003dde9
Haptic (#123)
* Initial haptic support

* Update documentation for haptic
2019-04-25 10:15:57 +02:00
Jérôme W 89c4346358
typescript refactor (#122)
* typescript refactor

* Fix isClickable

* publish build

* Update documentation

* refactor getFontColorBasedOnBackgroundColor

* dist update

* Using babel and defining scripts

* Fix for custom Bot Support

* Removing uneeded code

* Adding babel config

* Requested changes

* Updating documentation

* Actually it's not a js, it's still a module

* Adding contributors

* add shouldUpdate
2019-04-25 09:45:04 +02:00
Jérôme W 0cb256ee46
Layout (#108)
* Add layout, show_units and units options

* Refactor

* Adding 2 new layout options

* Update documentation for layout
2019-04-23 09:13:54 +02:00
Jérôme W 06e000c10e Fallback to simple click if longpress is not found (#117) 2019-04-22 12:14:26 -05:00
Jérôme W f3dc1e8d04 card-modder-support (#116) 2019-04-22 12:14:05 -05:00
Ian Richardson 6bbd65d038 configurable confirmation text (#115)
Fixes #109
2019-04-22 08:04:11 +02:00
Jérôme W 92b1dc9eed Support for long press / hold action (#106) 2019-04-21 13:50:44 -05:00
Jérôme W 1d744b8d56 Get rid of the custom element (#97) 2019-04-21 07:44:03 -05:00
Jérôme W 7c7afb425f
Name per state and new show_name parameter (#95)
* Possibility to define a name per state and introduce a show_name parameter, defaults to using the entity name
2019-04-20 06:44:35 +02:00
Jérôme W d075d7d463 Support for URL in tap_action (#98) 2019-04-19 13:21:15 -05:00
Jérôme W 17c38bccb1 deprecate icon: attribute (#96) 2019-04-19 13:16:47 -05:00
Jérôme W 4e86e9a5bf Match HA rounded corner default style (#94) 2019-04-19 13:16:02 -05:00
Ian Richardson 9f88164e1a Add spin option to state object (#91)
* Add spin option to state object
2019-04-19 18:33:07 +02:00
Jérôme W fb3b4473ba
Merge pull request #92 from SeanPM5/patch-3
tap_action location was changed to navigate
2019-04-19 09:23:21 +02:00
SeanPM5 6f614dc6a7
tap_action location was changed to navigate
Original commit used `location` but it was later changed to `navigate` to be more consistent with HA core. This just updates the docs to match the change. 

Also added a note that navigation_path can link to internal HA URL's.
2019-04-19 02:22:39 -04:00
SeanPM5 8585021b10 adds show_icon: false to the text-only config example (#88)
This adds `show_icon: false` to the "no icon" text only configuration example. This line is now necessary because after recent changes the card automatically uses the default icon for that entity_id if there's no mdi: icon specified. Issue was pointed out in [this forum post](https://community.home-assistant.io/t/lovelace-button-card/65981/595) .
2019-04-18 14:12:46 -05:00
SeanPM5 0b418cd8de Fixed input_select code example, fixed minor typo (#86)
input_selects do not support toggle, updated the example code to a confirmed working one. Also fixed minor typo (swith = switch)
2019-04-18 10:16:36 -05:00
Ian Richardson ae138bacbb
Update README.md 2019-04-17 19:37:53 -05:00
Ian Richardson 82aad39409
Add confirmations (#85)
* Add confirmations

* remove logs

* Better message...maybe?

* Simplify logic
2019-04-17 19:30:57 -05:00
Ian Richardson 7deab5bc20
Update button-card.js 2019-04-17 18:05:30 -05:00