Skip to content

v1.6.0

Choose a tag to compare

@nutteloost nutteloost released this 26 Nov 12:59

Actions Card v1.6.0

New Features 🎉

  • Template Support: You can now use Jinja2 templates in any action field. Templates are rendered dynamically when the action is triggered, allowing for dynamic URLs, navigation paths, service data, and more. All standard Home Assistant template functions are supported, including states(), state_attr(), is_state(), and conditionals.
Example configuration
type: custom:actions-card
card:
  type: button
  entity: update.home_assistant_core
  name: Release Notes
tap_action:
  action: url
  url_path: "{{ state_attr('update.home_assistant_core', 'release_url') }}"
hold_action:
  action: call-service
  service: light.turn_on
  service_data:
    entity_id: light.living_room
    brightness: "{{ states('input_number.brightness') | int }}"
  confirmation:
    text: "Set brightness to {{ states('input_number.brightness') }}%?"