Lovelace Badges for attributes

Lovelace Badges can only be made for entity state value.

Why not also for entity attribute value. So template sensors not need to be made for this purpose?