DarkSky: forecast rain accumulation needed

If one of the devs can add Rain accumulation forecast, that would be awesome.

from the DarkSky API : “precipAccumulation”
https://darksky.net/dev/docs/time-machine

I am hoping to use tomorrow/or today’s forecasted rain to trigger a rain delay with my sprinkler system.

Thanks
CARLO.

DarkSky and precip attributes are kind of a sore spot right now, LOL:

but you may want to mention it in that issue since it looks like some recoding may have to be done in either HA’s or the python-forecastio library to fix the precip type attribute.

Hopefully there’s not a dark cloud over this request :wink:

2 Likes

Any word by chance? Looking to do the same as @CCOSTAN

It would also be nice to have snow accumulation. It is in Dark Sky’s API so it shouldn’t be too hard to add.

Its on the todo list then. DarkSky is not hard to update, and I was just thinking I need a snow accumulation so I can push notifications to myself if shoveling is required (i.e. it won’t melt before we get another foot)

1 Like

snow accumulation should be in the next release. It is precip_accumulation and will return whatever dark sky sends back rounded to a single decimal place.

For those that read the entire thread, the original request was for rain accumulation, but that isn’t how the API has the field defined. It is only defined for snow accumulation.

1 Like

@nordlead2005 Amazing! Thanks so much!

Any update on this or where I can go to check the status of this enhancement? I only show precip Intensity and not accumulation.

1 Like

I used to have an amazing sprinkler automation using precip_intensity_max, but it seems they deprecated that one.

This is strongly needed guys!

Logic was to start a esp connected to a water pump and a sprinkler, checking if the accumulated rain was less than x… It was working for one year, but it stopped working one day… :sob:

Same here, really need a DarkSky forecast rain accumulation. The DarkSky website shows this info, perhaps I should just scrape that.
Strange that if you inspect that value on their webpage they call it “precipAccum” E.G. “Rain 0.74 mm”

Ah, ha. If you take “dark_sky_precip_intensity_0d” and times is by 24 (hours) it looks like we get the forecasted rain accumulation. Yay!!!

Is it accurate? I think that precip_intensity just provides average amount of mm/h during a rain.
So for example if its only gonna rain for one hour on a given day with 6mm/h intensity, the total amount of precip during that day will be 6mm, while your script will show 144mm.
But please correct me if im wrong, i am also desperately looking for a total daily precip amount value.

Sorry, yes that works great.
"{{states('sensor.dark_sky_precip_intensity_0d') | multiply(24) | round(2)}}"
This works great, look at my screen shots vs their website:
See my code (search for “Irrigation”): https://github.com/genestealer/Home-Assistant-Configuration
image


1 Like


I just used https://weatherwidget.io/, and put the code in a .html file and then in an iframe. It uses Dark Sky.

Thanks for confirming :slight_smile: Now i just need to figure it out how to make accumulated precip for historical data (yesterday, last three days). Im not sure if history statistics sensor can be used here.

1 Like

That won’t help if you’re trying to use the data for automation, unfortunately.

1 Like

Try looking at adding -1, - 2 and -3 to the Forecast List for the dark sky sensor. It may return that data for each day, the just create a template sensor to Sum the three “forecasts”

Yeah, makes sense.

Unfortunately it doesnt work, actually makes config validation freeze.
I do want to use that in automation, to make sure that im not overwatering plants, at least until i find a device will be good at measuring soil humidity (Mi Flora would be perfect if the range would not be so ridiculously short)

What aspect of my code makes your configuration validation freeze?