Open flybrys opened 4 years ago
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
It looks like this new sensor in HA might provide this functionality but requires that the sensor created for the miflora support it.
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.