Releases: custom-cards/button-card
Releases · custom-cards/button-card
New show_name and name per state
New features
- Possibility to define a name per state and defaults to retrieving entity's name if no name is provided
Breaking change
- Introduces a new
show_name
boolean parameter (default istrue
) to display the name or not. Before if the name property was ommited, nothing would be displayed. Now it uses entity's friendly name or entity's name by default unless redefined in state or general config
Url spin me right round
New Features:
- New
url
option intap_action
to open a new tab - New
spin
option added tostate
object to animate spinning
Fixes
- Restore rounded corners
Breaking Changes
- Deprecate
icon: attribute
Confirmation option
New confirmation
option that produces a popup confirmation dialog
tap_action, color_off, state style, more-info
Lots of breaking changes in this release but a big push towards alignment with other standards and some cool new features. Great work @RomRider!
Breaking Changes
color_off
is now deprecated, usestate
instead if you want to redefine the color whenoff
Instead of:Use:- type: "custom:button-card" name: Switch entity: switch.main color: red color_off: green
Or:- type: "custom:button-card" name: Switch entity: switch.main color: red state: - value: 'off' color: green
- type: "custom:button-card" name: Switch entity: switch.main state: - value: 'off' color: green - value: 'on' color: red
default_color
is deprecated as it seems redundant withcolor
(when light is not rgb). For rgb light, you can still define a specific color for theoff
state for example.service
has been deprecated in favor oftap_action
, see belowaction
has been replaced bytap_action
to mimic the default button card and allow for future options likehold_action
more_info
renamed tomore-info
,more_info
still worksservice
now takes the full service namelight.turn_on
- Add default entity icon support, Fix #53, add
show_icon
to decide whether to display the icon or not
Others
Fix state icon for color_type: card and equal operators
-
Fix state icon for color_type: card and equal operators
-
Fix missing icon when no icon in default config and state used
Add state operators
Merge pull request #80 from RomRider/with_operator Add operators to state
🔧 convert to mwc-button and fix styles
Support for HA v0.88 after conversion to mwc-button.
Remove remote dependency + fix lovelace ui editor
0.0.5
Remove remote dependency + fix lovelace ui editor
New features :
- Update button-card to make use of LitElement embedded in home-assistant. Credit to bramkragten for suggesting a solution for this.
- Fix bug that was preventing users from editing their ui in the lovelace gui editor #45 by bramkragten
Fix CDN and add Change icon based on state
0.0.4
Fix CDN and add Change icon based on state
New features :
- Update lit-element cdn url to a non broken one #44 by IIIdefconIII
- Change icon based on state #42 by nicop4
Custom state, label card and icon attribute
0.0.3
Custom state, label card, and icon attribute
New features :
- New setting for custom states
- Label card for organization #23 by jxwolstenholme
- Use icon attribute from entity if it exists #21 by emilp333
- Support for hex color in auto mode #10 by simo878
Custom state example with input select entity
- type: "custom:button-card"
entity: input_select.cube_mode
icon: mdi:cube
action: service
show_state: true
state:
- value: 'sleeping'
color: var(--disabled-text-color)
- value: 'media'
color: rgb(5, 147, 255)
- value: 'light'
color: rgb(189, 255, 5)
Other
- Allow showing both state and name (and doesn't break the style)
- Support for unit of measurement