Support for absolute humidity device class with unit of measurement g/m³

I created a sensor that calculates absolute from relative humidity. The unit_of_measurement is g/m³.
I’m getting an error in the logs that only % is supported.

There’s a nice custom_component for this kind of sensor’s.

1 Like

Unfortunately, this is not very useful for ESPHome. I think, a device_class: absolute_humidity would be very helpful

It would be good if the device_class: absolute_humidity with unit_of_measurement: g/m3 could be added to the Create Helper using a template sensor dropdown options.

IMHO it is simply missing from dropdown options.

It is possible to add such a sensor using yaml.