Skip to content

Releases: custom-cards/button-card

New show_name and name per state

21 Apr 10:46
7c7afb4
Compare
Choose a tag to compare

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 is true) 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

19 Apr 18:27
Compare
Choose a tag to compare

New Features:

  • New url option in tap_action to open a new tab
  • New spin option added to state object to animate spinning

Fixes

  • Restore rounded corners

Breaking Changes

  • Deprecate icon: attribute

Confirmation option

18 Apr 00:31
82aad39
Compare
Choose a tag to compare

New confirmation option that produces a popup confirmation dialog

tap_action, color_off, state style, more-info

17 Apr 23:08
7deab5b
Compare
Choose a tag to compare

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, use state instead if you want to redefine the color when off
    Instead of:
      - type: "custom:button-card"
        name: Switch
        entity: switch.main
        color: red
        color_off: green
    Use:
      - type: "custom:button-card"
        name: Switch
        entity: switch.main
        color: red
        state:
          - value: 'off'
            color: green
    Or:
      - 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 with color (when light is not rgb). For rgb light, you can still define a specific color for the off state for example.
  • service has been deprecated in favor of tap_action, see below
  • action has been replaced by tap_action to mimic the default button card and allow for future options like hold_action
  • more_info renamed to more-info, more_info still works
  • service now takes the full service name light.turn_on
  • Add default entity icon support, Fix #53, add show_icon to decide whether to display the icon or not

Others

  • blink animation support, see examples
    blink-animation
  • tap_action supports navigate. Fix #75 & Fix #31
  • Support for style definition in state. Fix #41
  • Disable click when not needed
  • Refactored the code for faster rendering
  • Documentation update
  • Fix #71

Fix state icon for color_type: card and equal operators

14 Apr 21:36
Compare
Choose a tag to compare
  • 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

13 Apr 20:31
09459f0
Compare
Choose a tag to compare
Merge pull request #80 from RomRider/with_operator

Add operators to state

🔧 convert to mwc-button and fix styles

23 Feb 00:15
a46082c
Compare
Choose a tag to compare

Support for HA v0.88 after conversion to mwc-button.

Remove remote dependency + fix lovelace ui editor

21 Jan 02:49
Compare
Choose a tag to compare

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

16 Jan 02:06
553d0b5
Compare
Choose a tag to compare

0.0.4

Fix CDN and add Change icon based on state

New features :

Custom state, label card and icon attribute

16 Oct 03:06
4668c96
Compare
Choose a tag to compare

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