OK - I get it now … a Button Card does not support templates … so no way for the button card to grab a saved input_text value, and pass it onto a script.
I have a case where I need to click a button to fire a script, and that script needs a number of values that are stored as input_text that look like this
lht_12345_param1
lht_12345_param2
lht_12345_param3
The button does know 12345 before it is clicked, so I can only pass 12345 into the script.
The script now needs to get the stored values:
{{ state.input_text.lht_12345_param1.state }}
{{ state.input_text.lht_12345_param2.state }}
{{ state.input_text.lht_12345_param3.state }}
What I can’t work out is how to get state.input_text.lht_12345_param1.state when all I have is 12345?
Of course - if I am approaching this problem from the wrong angle - please make suggestions.