Dynamic 'name' for state

The custom-bar-card does not support templating the name.

You may be able to do it with this: