Skip to content

tap_action, color_off, state style, more-info

Compare
Choose a tag to compare
@iantrich iantrich released this 17 Apr 23:08
· 291 commits to master since this release
7deab5b

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