Add g/m3 as a unit for device class 'humidity'

There is a device class for humidity sensors called “humidity”. However, at the moment the only unit of measurement that’s linked to this device class is “%” (percentage). In percentage the humidity always refers to relative humidity.

I think it would be good to also support units of measurement for absolute humidity, usually g / m^3. It seems to me that would be possible with the current device class and no seperate device classed have to be created for relative and absolute humidity.

Relative humidity is the part of the air that’s filled with water divided by the most possible amount of water at that temperature. So the amount of saturation.

Next to relative humidity, air humidity can also be expressed in absolute humidity, which is just the amount of water in weight per volume, usually g / m^3.

If you know the temperature and one of the types of humidity it’s possible to calculate the absolute or relative humidity.

Currently the only supported unit of measurement is %, see below screenshot from the documentation


from: Sensor - Home Assistant

Currently there is also a mdi icon linked to humidity that has a percentage sign: mdi:water-percent. This won’t apply to absolute humidity, so that has to have a different sign, for instance just mdi:water


Agree; my use case is:

  1. Measure living room abs humidity
  2. Measure bathroom abs humidity
  3. Fan on when there is a delta (plus margin)

Humid air is extracted from the bathroom and replaced by (dryer) air from the house. The fan can stop when both are about equal.

Why not use relative humidity? Because the temperature in the bathroom is higher after shower which skews the relative humidity. (relative humidity of a closed system decreases when temperature increases, while absolute humidity stays the same).


As I no longer see the forest from the woods, I made a duplicate request … :crazy_face: :cry:

Please go vote there also!

1 Like