Hi, I don’t use NR but here is my automation which sets the rain delay:
Maybe it gives you some thoughts for your situation.
- id: "150"
alias: "Irrigation delay"
initial_state: true
trigger:
- platform: time
at: "04:55:00"
action:
- service: script.turn_on
data:
entity_id: >
{% if now().month in (6,7,8) and (states('variable.last_rs_garten_sum_rain_24') |float > 2 or (states('sensor.outside_rain') |float >= 0.1 and states('sensor.8_hour_rain_forecast_total') |float > 2) or states('sensor.8_hour_rain_forecast_total') |float > 2) %}
script.set_rain_delay_on
{% elif not now().month in (5,9) and (states('variable.last_rs_garten_sum_rain_24') |float > 0.4 or ((states('sensor.outside_rain') |float + states('sensor.8_hour_rain_forecast_total') |float) > 0.4) or states('sensor.8_hour_rain_forecast_total') |float > 0.5) %}
script.set_rain_delay_on
{% elif not now().month in (5,6,7,8,9) and (states('variable.last_rs_garten_sum_rain_24') |float >= 0.3 or ((states('sensor.outside_rain') |float + states('sensor.8_hour_rain_forecast_total') |float) >= 0.3) or states('sensor.8_hour_rain_forecast_total') |float > 0.3) %}
script.set_rain_delay_on
{% else %}
script.set_rain_delay_off
{% endif %}
The total of raim comes from a netatmo and the forecast comes from MET.NO. I live in germany.
The sensor outside_rain shows the rain during the last hour
In the late evening I check if the forecast was true. If not, then I set the counter which counts how many days there was no irrigation +1
By the way: The irrigation starts at 05.45 when delay is of and the frequency is met.