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

Handle forecasting better (keep forecasted rain and remove it from bucket if it didn't happen. should also move away from the average calc that happens in the bucket) #381

Open
1 task done
akcasoy opened this issue May 26, 2024 · 12 comments
Assignees
Labels
do-not-auto-close Label to make sure it's not auto closed by stale bot enhancement New feature or request

Comments

@akcasoy
Copy link

akcasoy commented May 26, 2024

What happened?

So i am testing this integration for a week now, i can say that i am a bit disappointed. I have configured everything exactly as on “Senbei Tristan’s Smartes Heim” german video (with my own wetter station data), although we did not get a lot of rain recently, my bucket keeps increasing every day, and i haven’t seen any positive duration value till now, it keeps 0s.
Most concrete example, the bucket was calculated yesterday night as 6.4mm, and today we had a partly sunny day, more or less 20 degree Celcius, with in total 0.1mm rainrate, my bucket has just been calculated again as 7.0mm. How can it be?
It does not make sense at all.
I also have a soil moisture sensor, it is working as expected and the soil humidity has been decreased today by 10% for example. But the calculation result of this integration does not work for me, don’t know why.

Thank you for your time in advance!!!

How to reproduce

Here is my diagnostic file:
config_entry-smart_irrigation-3d06ed1bcc695c1880eefeb9b105d4d5-3.json

Here is some of my current data from my weather station:
Bildschirmfoto 2024-05-26 um 16 44 32

Daily Rain rate graph for the last 7 days:
Bildschirmfoto 2024-05-26 um 16 49 57

Temperatur graph for the last days (mostly sunny and between 20-25 degree C):
Bildschirmfoto 2024-05-26 um 16 51 02

General tab of the configuration:
Bildschirmfoto 2024-05-26 um 16 53 08

I have 1 zone:
Bildschirmfoto 2024-05-26 um 16 53 31

Modules tab of the config:
Bildschirmfoto 2024-05-26 um 16 53 49

My Ecowitt sensor group:
Bildschirmfoto 2024-05-26 um 16 54 26

Relevant log output

No response

Which version are you running?

v2024.4.3

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@akcasoy akcasoy added the bug Something isn't working label May 26, 2024
@Themesl
Copy link

Themesl commented May 26, 2024

I have the same problem.
My bucket keeps increasing every day.
However, I entered a fixed value of 0 in the total precipitation sensor setting because it is a greenhouse.

image

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented May 26, 2024 via email

@akcasoy
Copy link
Author

akcasoy commented May 26, 2024

I just wanted to inform that the problem continues and can be also seen from the todays values, it may help for the analyse.

Todays rain rate was 0mm:
Bildschirmfoto 2024-05-26 um 23 37 27

Humidity:
Bildschirmfoto 2024-05-26 um 23 38 36

It was mostly a sunny day:
Bildschirmfoto 2024-05-26 um 23 39 15

without much wind:
Bildschirmfoto 2024-05-26 um 23 39 50

Temperature:
Bildschirmfoto 2024-05-26 um 23 40 36

And my bucket was 7.0mm yesterday, now 6.5mm. So i strangely still do not have to irrigate:
Bildschirmfoto 2024-05-26 um 23 41 09

@jeroenterheerdt
Copy link
Owner

OK, so multiple things here : you are using a 3 day forecast. So of course you can't then look at a days weather and go why did my bucket respond weirdly? Turn off the forecast for now. Also, there is a bug with don't estimate that I am working on to fix. It basically ignores the value from your solrad sensor. Also increase your auto update frequency.

All of those things (two things you can do and one thing that is a bug) should help you get to grips with how this integration works and get better results.

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented May 26, 2024 via email

@akcasoy
Copy link
Author

akcasoy commented May 26, 2024

So you mean sth. like this?
Bildschirmfoto 2024-05-26 um 23 48 30

And:
Bildschirmfoto 2024-05-26 um 23 49 12

@jeroenterheerdt
Copy link
Owner

Yes, like that. Reset your bucket(a) to 0 now and let it run for a couple of days.

@akcasoy
Copy link
Author

akcasoy commented May 26, 2024

OK thank you.

@akcasoy
Copy link
Author

akcasoy commented May 26, 2024

I thought a bit about this "3 day forecast" and would like to know why you think that the reason can be that part.

Does not the logic work this way?: Let's say the bucket was 0 yesterday, and our calculation ended up calculating 3mm today, because with a 80% of chance it will rain a lot tomorrow. So the bucket is 3mm now.
And tomorrow it did not rain at all.. On the next evening the algorithm should actually remove that part of estimation from yesterdays calculation, and start again from 0, and add to that today's real values from the sensors for example.

So in that way this 3 day forecast should not have those kind of strange effects on bucket.

It seem to me that, the bucket was always increasing maybe because the openweather-api were predicting too much rain, and it did not go as expected.. seven days long..

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented May 26, 2024 via email

@akcasoy
Copy link
Author

akcasoy commented Jul 25, 2024

I see that still as a bug. The including weather predictions are one of the main advantages/characteristics of this integration.
But this should work like this:
When the weather prediction calculates, there will be 7mm rain tomorrow. And the evapotranspiration of yesterday was 5mm. The bucket size is calculated as 2mm.
The next day, when we see that it did not rain at all, 7mm should have been removed from the bucket as first, besides all other calculations for refreshing the bucket value.

@jeroenterheerdt
Copy link
Owner

That's fair, that we can do.

@jeroenterheerdt jeroenterheerdt added bug Something isn't working enhancement New feature or request and removed dev responded bug Something isn't working labels Jul 25, 2024
@jeroenterheerdt jeroenterheerdt changed the title Bucket size keeps increasing (although it did not rain much), and duration was always 0 for a week now Handle forecasting better (keep forecasted rain and remove it from bucket if it didn't happen. should also move away from the average calc that happens in the bucket) Jul 26, 2024
@jeroenterheerdt jeroenterheerdt added the do-not-auto-close Label to make sure it's not auto closed by stale bot label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-auto-close Label to make sure it's not auto closed by stale bot enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants