I fully agree with you - this is not the “standard” approach. I prefer the GUI design when I’m adding the state value into the label for this particular case.
I also use it in order to add the warning symbol as in the picture below dynamically.
I have done something similar by having 2 sitemap elements with a different label or icon each and display only one based on whatever threshold or state is required. This only works for 2 or 3 states before it gets unmanageable, but I’ve never needed more than that.