Hi there, I have created several cards with this custom card integration, it is nice, now I wanto to go one step forward and make it more beautifull and usefull.
The idea is
when the presence sensor detects presence, I want it to “ping” the shape
when it just detect it with a 0.5s duration
2 seconds after if the presence is on change to 1 sec
4 seconds after if the presence is on change to 1.5 sec
6 seconds after if the presence is on change to 2 sec
just when presence is OFF then I want to do the same but backwards
I am not using mushrooms.
So, my remarks are general:
What you are trying to use is card-mod which supports jinja templates. But you defined something looking like a JS-template which is used in a custom:button-card and cannot be used in card-mod.
To template some css variable, you should use something like