Skip to content

v1.6.2

Latest

Choose a tag to compare

@nutteloost nutteloost released this 04 Dec 19:23

Actions Card v1.6.2

New Features 🎉

  • JavaScript template support: Use [[[...]]] syntax for client-side templates with access to user, states, and hass objects.(by @majd, closes #9)
Example
type: custom:actions-card
card:
  type: button
  name: "Navigate"
tap_action:
  action: navigate
  navigation_path: |
    [[[
      if (user.is_admin) {
        return '/config/dashboard';
      }
      return '/lovelace/0';
    ]]]