Device class for Rain

Maybe I’m stupid, but I try to configure a device for rain, but cant get this working.
I kind of expected a rain device_class to exists, but getting error saying invalid device class.

What device_class should I use for measuring rain?

1 Like

What entity does the domain have? sensor.xxx? Here are all the device classes supported by a sensor entity.
There’s no device class for rain for any domain as far as I know.
Why do you want to set a device class and what nehaviour do you expect from the device class?

HI, thanks for your reaction. I’m using indeed sensor.xxx.
Reason for setting a device_class for rain is the same for other weather conditions like temperature, moisture, etc.
Of course I can use the generic sensor and set the correct icon, but still it would be nice to have a device_class for it.

I assume there’s no rain device class because moat people probably use the rain measurement from their weather integration.
You could open a request for this, but there are probably not many people that have a need for this, so it will be hard to find a dev to implement it. I’m not good enough at coding yet to contribute such a PR, but I could imagine it not being that difficult.