Hi,
I’m configuring my first UI Lovelace Minimalist dashboard.
Following a tutorial, I’ve wrote this for an area:
# esterno.yaml
title: Esterno
path: "esterno"
cards:
- type: "custom:button-card"
template: card_light
entity: light.luce_scala_2
variables:
timer: timer.timer_luce_scala
script_on_tap: script.avvia_timer_scala
then, in card_light yaml I would like to call a script if variables.script_on_tap is passed, instead of toggling the light entity.
The card_light is the default one (Light Card - UI Lovelace Minimalist).
I took a look at the original YAML of the card, but I don’t understand how to insert my code.
Can someone help me? Thanks!