Device class
What an entity measures or is, like `temperature` or `door`. It sets the icon, the units, and how the frontend shows the entity.
- In code
device_classSensorDeviceClassBinarySensorDeviceClass- Also
- device classes
A binary sensor with the door device class shows as open and closed instead of on and off. A sensor with the temperature device class gets the right icon and converts to the unit the user picked.