Automation for Smart Irrigation

Hi Community

I need some help, idea to automate my smart irrigation in my garden.

I got a drip system that water my hedge, its working fine then i turn the relay off.

I got this integration: GitHub - jeroenterheerdt/HAsmartirrigation: Smart Irrigation custom component for Home Assistant

and the water bucket is showing me how long the hedge need per day.

But i want to water my hedge two times per week, but if its rain yesterday, i dont want it to run next day.

Two days apart, so not each day it needs to run.

So how can i automate to turn relay on two times per week, but not each day?

My automation looks like this now, and its working:

 - id: turn_water_for_hedge_on_morning
  alias: turn_water_for_hedge_on_morning
  trigger:
  - platform: time
    at: '05:00:00'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: device_tracker.waterhose
      state: 'home'
    - entity_id: sensor.smart_irrigation_daily_adjusted_run_time
      condition: numeric_state
      above: '0'
    - condition: not
      conditions:
      - condition: state
        entity_id: weather.home
        state:
          - rainy
  action:
  - service: script.waterhose_run_10minute_schedule

Hi,
try the following condition:


  trigger:
  - platform: time
    at: '05:00:00'
  condition:
    condition: and
    conditions:
    - condition: time
      weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
  - condition: ...

Choose the days you want to start the irrigation

I know the weekday condition.

But lets say i choose tuesday and friday, if those days are rainy, other days where its need to irrigate, it does not do that.

So i want it to run two times per week, but only if it was not raining 1 day before.

You could use a weather integration and if it rains you set an input switch to true.
your automation check whether this input switch is true. if not irrigation starts. if so it only resets the input switch.

You could also use a rain gauge and calculate the difference between the pericipation precipitation or simply rainfall of the day and the amount you want to irrigate.

I have the latter running, but it involves some math and database analysis…

Yearh
I choose to use the accuweather sensor if its raining and then disable the irrigation if its raining for more than 1 hour before it need to irrigate.

You need to call the reset_bucket service after you irrigate. I have worked with Smart Irrigation with my own component. Many options available to suit your situation.

1 Like

Yearh its working great.

I am still working for a good system then i need to irrigate my hedge, not my grass area this time.
Will be next :slight_smile:

For anyone else coming here in the future looking for a solution, check out the custom schedular card. It suits my irrigation automation perfectly :slight_smile:

Link to github page and installation instructions: