Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Averaging data #124

Open
flybrys opened this issue Jun 29, 2020 · 2 comments
Open

Averaging data #124

flybrys opened this issue Jun 29, 2020 · 2 comments

Comments

@flybrys
Copy link

flybrys commented Jun 29, 2020

I'm loving the reliability of this script since I implemented it a week ago on a Pi ZeroW.
One feature that would be nice is to have the option to calculate the average data over a selectable period of sensor polls. For example when I water a plant the moisture will shoot through the roof and report a problem, go up and down for a while, and then suddenly drop when things start to settle down.
I guess I could increase the delay between polls, but even then the sensors seem to have the occasional erratic value. I'm receiving push notifications when there is a problem, and there's been an increase of irrelevant notifications since switching to this script

I'm using HA and I could set up a bunch of template sensors using the MQTT sensors as the source, but it seems silly to have sensors to sense sensors.

@ThomDietrich
Copy link
Owner

Would be possible. There were also reports of seldom value spikes (measurement errors) for single devices that we should handle.

Not sure if I will find the time to implement this right away but a general routine to clean measurements should be part of #111 which I want to invest some time into this year.
If you want this feature quicker, I welcome you to contribute a Pull Request

@tehbra1n
Copy link

It looks like this new sensor in HA might provide this functionality but requires that the sensor created for the miflora support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants