Hello,
I’m making an RGB control for an IKEA lamp (called ampoule_salle_de_jeux)
I first created 3 Input helpers called rgb_r, rgb_g and rgb_b
Then I created following dashoboard for the UI:
Templates are not supported by Home Assistant’s official set of Cards (the sole exception is the Markdown Card).
The standard workaround is to create a script containing your desired actions and templates. Then the Card’s “Tap behavior” is configured to call the script.
So what you tested in Developer Tools → Actions should be included in a script. Then for the Card’s “Perform Action”, set its target to the script.
… and while typing all of this, karwosts ninja’d me …
I had no idea about scripts. Here is what I did with minimal use of YAML code:
In settings - Automation & scenes I found scripts then clicked Create script
And finally in the UI Tile card configuration , added Interaction - Tap behaviour - Perform
and typed the script name (rgb lamp). I could have done do the same with a button