Feature request: Rolling sum of rain

Hi,

It seems the variable SumRain24 is resetting at midnight, so it isn’t actually the cumulative rain over the las 24 hours, rather it is accumulated rain since midnight.

For my sprinkler control PLEG this is not useful. Is there a way to create one or more variables like this? Last24, Last48, Last72 that would actually display those accumulated values over the last X hours instead of resetting at midnight?

This value is taken directly from the Netatmo API, rather than being computed locally in the plugin, so it’s consistent with the native Netatmo GUI. What would be easy enough is to compute your own running average from 1 hour data (SumRain1).

A simple way to do this is to have a scene triggering every hour which updates the buffer and writes the total to a device variable on the Netatmo parent device. You’d lose the buffer on a Vera reset, unless you stored that as a variable too. Some power meters do something similar for energy calculations.

Hi again,

Ok, good suggestion, thanks. I was just trying the easy way :wink:

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules