Commit Graph

98 Commits

Author SHA1 Message Date
Ian Richardson 0af4aeae32 Timer display support 2019-05-13 12:21:25 -05:00
Ian Richardson 711abf4cca Move to custom-card-helpers, lint, terser 2019-05-13 11:14:12 -05: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
Jérôme W 11b87a5a50 tap_action instead of action, deprecation of color_off and style in state support (#84)
* Support for style definition in state

* Update documentation

* Deprecate color_off and action replaced by tap_action

* Fix documentation

* Fixing documentation

* Fix #71

* Add support for navigation

* Fix documentation

* Fix #71 - better solution

* Default color when off is var(--disabled-text-color)

* location action example

* Fix documentation

* Some bugfix

* Fix documentation

* Disable click when not needed

* Linting and some code fix requested

* Some fix

* renamed location to navigate

* Missing break in switch case

* remove inexisting variable reference

* Fixing button size and font to match default

* Fixing button size on firefox

* Use default entity icon if undefined and add show_icon, Fix #53

* Fix documentation

* Replace default colors to match hass default

* Updating documentation

* Fix isClickable

* Some refactoring

* Blink animation support
2019-04-17 18:03:57 -05:00
Jérôme W 416fb899a9 Fix state icon for color_type: card and equal operators (#82)
* Fix state icon for color_type: card and equal operators

* Fix missing icon when no icon in default config and state used
2019-04-14 16:36:09 -05:00
Jérôme W 59a1ccf420 Fixing documentation (#81)
* Fixing documentation

* Update documentation for state operator icon support
2019-04-14 08:40:33 -05:00
Ian Richardson 09459f0f4e
Merge pull request #80 from RomRider/with_operator
Add operators to state
2019-04-13 15:30:53 -05:00
Jérôme Wiedemann 3205163c6a Add operators to state 2019-04-13 17:07:02 +02:00
Ian Richardson fee52165ee
Update README.md 2019-03-16 15:18:30 -05:00
Ian Richardson 25751ea7df
Delete package-lock.json 2019-03-05 13:11:47 -06:00
Ian Richardson f528591d91
Update README.md 2019-02-25 20:30:02 -06:00
Ian Richardson c1546400f5
Update README.md 2019-02-24 18:04:13 -06:00
Ian Richardson 474847ede4
Update README.md 2019-02-23 14:58:41 -06:00
Ian Richardson de564e5e44
Update README.md 2019-02-23 14:57:23 -06:00
Ian Richardson a9d99f92ff
Update README.md 2019-02-23 14:55:41 -06:00
Ian Richardson 4e0df12248
new shields 2019-02-23 14:55:19 -06:00
Ian Richardson f80e4915a1
Update README.md 2019-02-22 18:21:18 -06:00
Ian Richardson 80d70ea210
Merge pull request #65 from ludeeus/master
Update instructions for custom_updater
2019-02-22 18:20:00 -06:00
Ian Richardson a46082cd0e
Merge pull request #63 from ammmze/patch-2
🔧 mwc-button and style fixes
2019-02-22 18:14:07 -06:00