Skip to content

3.0.0

Compare
Choose a tag to compare
@RomRider RomRider released this 21 Oct 08:32

Breaking Changes (& New Features)

  • Drop support for custom_updater, please upgrade to HACS
  • URL actions field has been renamed to url_path from url:
    old:
    xxx_action:
      action: url
      url: https://www.google.com
    new:
    xxx_action:
      action: url
      url_path: https://www.google.com
  • dbltap_action has been renamed to double_tap_action to match core (Fix #232)
  • confirmation is now an object and supports templates, and you can specify a different confirmation object for each action. You can also specify exempted users. See confirmation doc for more info (Fix #228, Fix #217):
    confirmation: # If defined, this will apply to all the actions
      text: Are you sure?
      exemptions:
        - user: befc8496799848bda1824f2a8111e30a
    tap_action:
      confirmation:
        # Confirmation only for tap_action.
        # If a default confirmation is defined, it will be override it.
        text: '[[[ return `Toggle ${entity.attributes.friendly_name}? ]]]'
        exemptions:
          - user: befc8496799848bda1824f2a8111e30a
  • lock is now an object and unlock_users is deprecated.
    lock.enabled supports templating and you can set the duration of the unlocked state.
    You can define the type of clicks which will unlock the button with lock.unlock. Possible values are tap, hold and double_tap. Default is tap
    See lock doc for more info (Fix #192, Fix #220, Fix #230).
    Old:
    lock: true
    unlock_users:
      - test
    New:
    lock:
      enabled: '[[[ return entity.state === 'on'; ]]]'
      unlock: hold
      duration: 10
      exemptions:
        - username: test
        - user: befc8496799848bda1824f2a8111e30a

New Features

  • The version of the card is displayed in the javascript console of your browser. Please verify if you're running the latest version before opening a bug report. If not, update and/or clear your cache:
    image
  • You can now embed any card in the custom fields 🎉 (Fix #209). Note that to remove the box-shadow for specific cards, use card-mod.
    image
        - type: custom:button-card
          aspect_ratio: 1/1
          custom_fields:
            graph:
              card:
                type: sensor
                entity: sensor.sensor1
                graph: line
                # style is used by card-mod
                style: |
                  ha-card {
                    box-shadow: none;
                  }
          styles:
            custom_fields:
              graph:
                - filter: opacity(50%)
                - overflow: unset
            card:
              - overflow: unset
            grid:
              - grid-template-areas: '"i" "n" "graph"'
              - grid-template-columns: 1fr
              - grid-template-rows: 1fr min-content min-content
    
          entity: light.test_light
          hold_action:
            action: more-info

Fixes

  • Fix support for Safari 10 (Fix #221)