swipe-card
swipe-card copied to clipboard
Templating for card parameter
Hi there! First of all, thanks for the amazing tool!
I was wondering how hard it would be to enable templating in the parameters? Specifically for the start_card parameter. This would allow having a different starting card depending on the state of an entity per instance!
The code would look akin to this:

Some more info here: https://www.home-assistant.io/docs/configuration/templating/
I will be happy to test this out for you extensively!
Thanks for reading!
I should mention, I might be butchering this and it is already possible?
I have had this technique in mind and I'm glad I'm not the only one. In my setup, I was trying to simply use the value of a Number Helper to set this. Didn't work for me either though :/ I guess this would have to be enabled.
Can confirm. Y'all aren't crazy. This card truly does not accept templates, but I have so many uses for dynamically setting the start_card parameter that I might have to scrap my design plan entirely if this card can't do what I need it to.
@bramkragten, any plans to update this card (because it's also not working in any Home Assistant version past Core-2021.11.0 which is clearly a bigger issue)?
It's definitely still working for me. You should start a separate issue about that.
Any change someone forked this card and got this working?