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.
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)
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.
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…
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
Thanks for confirming 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.
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”
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)