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

Amount of rain from weatherstation => skip program #51

Closed
jellyneck84 opened this issue Jan 9, 2024 · 11 comments
Closed

Amount of rain from weatherstation => skip program #51

jellyneck84 opened this issue Jan 9, 2024 · 11 comments

Comments

@jellyneck84
Copy link

Hello @petergridge ,

this is not a bug, it's more a question or feature request. I want to skip the irrigation program when in the last 48h the amount of rain exceeds a specific value (let's say 15mm).

I have already a custom sensor which calculates the amount of rain of the last 48hrs.
I thought about having a helper binary sensor which i then use for the rain sensor instead of the rain sensor itself.
image

I'm relative new on HA, how can i define a helper from type template binary sensor which is "true" when the amount of rain sensor is > 15mm ? Or is there any other option in your integration to skip rain when the rain in 48hrs value exceeds 15mm

image

@petergridge
Copy link
Owner

Hi @jellyneck84 ,

Try this feature https://github.com/petergridge/Irrigation-V5#watering-adjuster-feature. I use OpenWeatherMapHistory to look at the past and forecast weather to adjust the amount of water applied, for example if 7.5mm equivalent rainfall has been received in the last few days the watering system will only run for 50% of the nominated run time. The OWMH component is configurable so it can use the information exposed to support many models, even watering more if the temperature is expected to be high.

Cheers
Pete

@jellyneck84
Copy link
Author

Hallo Peter. But then i still need a helper which is set by an automation and Container the value, for example 0.5.

Any idea how to Set this? Through an automation? Or just a template sensor with a trigger? Maybe you have an example for me.

@petergridge
Copy link
Owner

Here is a template example your can try. This sample will will run in the developer tools/template window.

{% set rain48 = 16 -%}
{% if rain48 > 15 -%}
True
{% else -%}
False
{% endif -%}

swap out the rain48 constant for your sensor to test with your system values.

once you are happy with the results you can create the binary sensor using the UI
image

@jellyneck84
Copy link
Author

jellyneck84 commented Jan 9, 2024

Ok, this will just Set it to true, or false, but not the reduction value, but should work similar. Will give it a try. Thx

@jellyneck84
Copy link
Author

Another question, even if offtopic: what does "Support for rainbird Controller " means in release notes? Isnt the Controller irrelevant, because you need just define the Zone switch for opening the valve?

@petergridge
Copy link
Owner

The value reduction is provided by the OWMH so once it is configured you reference the sensor in the irrigation component.

The rainbird controller has a default run time of only a few minutes, to allow it to run for longer the rainbird API is required to be called.

@jellyneck84
Copy link
Author

The value reduction is provided by the OWMH so once it is configured you reference the sensor in the irrigation component.

The rainbird controller has a default run time of only a few minutes, to allow it to run for longer the rainbird API is required to be called.

You mean to keep the connection with the controller open? I am using rainbird esp-rzx with WiFi lnk Modul.... is thought with the rainbird Integration its just a local connection to the Controller triggering the Zone.

Screenshot_20240110_063617_Home Assistant.jpg

Controller is offline because of powered off.....

@petergridge
Copy link
Owner

I don't have a rainbird controller and developed this with a user that was having issues. I am not sure how effective it is. If you are not having issues with longer run times that is good.

@jellyneck84
Copy link
Author

jellyneck84 commented Feb 23, 2024 via email

@jellyneck84
Copy link
Author

Ah yeah, and a 3rd question: Can i setup the irrigation card to show me always all details of the zone (toggle the settings button by default)
image

@petergridge
Copy link
Owner

Hi,

I use openweathermaphistory (HACS) to calculate the factor applied, it is exposed as a sensor. It uses the weather history and forecast data to determine if the watering needs to be adjusted. https://github.com/petergridge/openweathermaphistory

You can use any sensor or numeric input for this setting.

The adjusted time is only presented when the program starts.

The details are not display be default.

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

2 participants