Input Text Helper - Detecting Current Length?

Any way of finding out what length an input text helper is within an automation?

This (below) always is false even if the number of characters in the variable are over 100. It reaches 255 (I’m guessing) then stops writing to the variable, or at least updating the card with the variable in it.

My aim was to clear the variable once it reaches near its character limit, but to do that I need to test its length.

{{ states(''input_text.my_var'').length }} > 100

Any suggestions would be most helpful.

{{ states('input_text.text_helper') | length }} is how I do it.

Will try that

And the > 100 needs to be inside the template.

{{ states('input_text.text_helper') | length > 100 }}