Skip to content

3.1.0 - Better Buttons With Home Assistant Actions

Compare
Choose a tag to compare
@Nerwyn Nerwyn released this 25 Dec 21:25
· 319 commits to main since this release

Do more with buttons!

This release is focused on improving buttons and custom actions. Custom actions now follow Home Assistant actions syntax, and supports most actions defined there.

The following actions are supported:

  • call-service
  • navigate
  • url
  • assist
  • more-info
  • none

Buttons now support not only tap actions, but double tap and hold actions.

features:
  - type: custom:service-call
    entries:
      - icon: mdi:power
        label: '{{ states("light.sunroom_ceiling") }}'
        style:
          '--color': |-
            {% if is_state("light.sunroom_ceiling", ["on"]) %}
              rgb({{ state_attr("light.sunroom_ceiling", "rgb_color") }})
            {% else %}
              initial
            {% endif %}
        tap_action:
          action: call-service
          service: light.turn_on
          data:
            entity_id: light.sunroom_ceiling
            color_name: red
        double_tap_action:
          action: call-service
          service: light.turn_on
          data:
            entity_id: light.sunroom_ceiling
            color_name: green
        hold_action:
          action: call-service
          service: light.turn_on
          data:
            entity_id: light.sunroom_ceiling
            color_name: blue
type: tile
entity: binary_sensor.sun_room
color: accent

Other changes:

  • Label font weight set to bold.
  • Added show option.
  • Improved default slider/selector actions and autofill_entity_id logic.

Full Changelog: 3.0.9...3.1.0