For binary_sensors “level” would be “rising” if “on”, “lowering” if “off”
For sensors “level” would be in “in” or “cm”.
My use case is I track the temperature trend of my fish tank with a trend binary sensor. If I use a device_class of “heat” or “cold” it shows as “Hot” or “Cold”.