-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Average readings from sensor before sending result to controller #2713
Comments
It can be done and is also described in the documentation. |
@TD-er it looks like I didn't search hard enough. Thank You for the link. I'll try to build something and post my code here. Maybe someone will find it useful. |
You should set the interval to 0 if you don't want it to send out data. |
That's a known issue. See #2675 |
That's also an existing issue: #1676 |
@TD-er than you for the links.
I want to send the data, but after the interval. By default, the device sends the data after boot. I'd like to wait the interval before sending the first value and then send it normally. |
You can send the data by calling RunTask from the rules for example. |
I'll try that, I have 2 more free rules sets. Ideally, there should be an option to disable the first send to the controller after boot. |
That's what #1202 is about. |
I have a very simple setup: Wemos D1 with DS18B20.
I successfully configured the Home Assistant MQTT controller and values are correctly send to my HA instance.
The problem is that sometimes I get inaccurate readings - the reading changes the value in one reading but in second or third it gets back to normal.
Is there a way to configure ESPEasy to read the value every X seconds, then average the results and then send the value to the controller?
There are many methods of averaging results, but a simple sum of readings divided by the number of readings would be great (more advanced, like removing extremes before calculating the average would be even better)
So for example, make a reading every 5 seconds, then after having 12 readings (one minute) calculate the average and then send the result to controller.
I have no idea if this is currently possible, maybe using a rule.
I wasn't able to find a solution, so this issue is a feature request.
If this is currently possible please close this issue.
The text was updated successfully, but these errors were encountered: