If you just want rain (yes/no) then there are lots of homebrew ‘hacks’ to modify water sensors to use then as rain sensors.
Here’s one I made for smartthings but I now use it on HE
If you want other features and don’t own a PWS (personal weather station) then probably the quickest way to get the data is with an ‘Apixu’ driver.
You just use this code and create a new virtual device using this driver.
All of these weather devices can be used with one of my apps: ‘Weather Switch’ to turn on/off a switch at a certain rain level or just if there is any rain (or not)