custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

[Question] tap(s) actions using a single variable #770

Closed SiriosDev closed 1 year ago

SiriosDev commented 1 year ago

Not FR

it is possible to put an entire block of "instructions" into a variable?

Like this:

#yaml editor/lovelace.yaml
#...
variables:
  tap_var: null
#...
#card yaml:
#...
type: custom:button-card
template: example_template
variables:
  tap_var:
    action: navigate
    navigation_path: /hassio/dashboard
#...