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';
]]]