Gauge card - severity variable

Hi everyone!
I have created a gauge card, and I have stablished colors with the “severity” variable.
This works perfectly, but now I’d like to replace the numeric values for an input number helper.

The thing is, I don’t know how to write the code in the card.
I have tested with the code in the pictures, but it doesn’t work.

I hope anyone could help me.

Thanks in advanced



I don’t think you can template this card.

edit: There is a suggestion to add this, so you might like to vote for it. That link also has a suggestion from @tom_l to use the Lovelace template card in the interim.

Thank you for your answer