I am trying to find a way to pull precipitation (rainfall specifically but overall precipitation would be fine) data from some online source for my approximate location. I can see in the Met.no weather integration that it has precipitation amounts but I have no idea how to access this information, or if it’s logged anywhere.
The goal is to use the past 24 hours rainfall to determine if a switch will activate the power to a solenoid valve for an automatic irrigation system. It seems like this should be simple to create the condition in the automation, essentially I just need a sensor for rainfall total over the past X hours, but I am lost with where to try to get this data into Home Assistant.
I’m still working on this. For some reason, the history statistics card doesn’t work for the precipitation sensor, but a regular history card will. We got some precipitation yesterday and I can see that it’s working.
Now I’m trying to figure out how to make an automation that will only trigger on a schedule if the sum of the precipitation for the past 24 hours is less than 1".
Creating an automation to trigger on a schedule isn’t difficult, I just don’t know how to make the condition. This is what I’ve come up with so far:
I think it is always going to be below 1 unless we get an entire inch of precipitation at a time. Is there a way to sum the values for this over the past 24 hours?