WTH, why can't HA collect and show all possible states of an entity?

I realised this while entering the HA questionnaire. For entities who’s state is not just on/off but can be many things I often use the history logs to view what states actually look like. This if I need to do string-matches for when they are in a specific state.

I realise HA cannot know this information and may need to gather it overtime also as states change. But it would be very helpful if there was like an option to show states collected. Perhaps even a counter how often they have happend? Esp. with focus also on capitalisation as when you need to do string-matches this also makes making automatons less painless.

One final note is that I sometimes feel HA may show the more readable state name then the actual value? If so, the actual value needed to string match on would be what I personally would prefer. String-matches on their own are already iffi so…

Also perhaps an option to do string match without capitalisation mattering. (I use Nodered and never found this like making the value always lowercase you match on).