Toggle irrigation system from local weather

This blueprint was made to make irrigation control easier by rain, wind and temperature sensors.
This depends on a wind strength sensor, a current rain sensor (if not raining returns 0 as state), a temperature sensor, and a relay or switch controlling the irrigation system.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Weather controlled irrigation
  description: Toggle irrigation based on local weather
  domain: automation
  input:
    wind_sensor:
      name: Wind sensor
      description: Select a wind sensor
      selector:
        entity:
          domain: sensor
    rain_sensor:
      name: Rain sensor
      description: Select a rain sensor
      selector:
        entity:
          domain: sensor
    outdoor_temp:
      name: Outdoor temperature sensor
      description: Select a sensor for wind speed
      selector:
        entity:
          domain: sensor
    irrigation_relay:
      name: Irrigation relay
      description: Select the main relay for the irrigation system
      selector:
        entity:
          domain: switch
    minimum_temp:
      name: Minimum temperature
      description: Set the minimum temperature when the irrigation should turn on
      selector:
        number:
          min: 0
          max: 25
          unit_of_measurement: "°C"
    windspeed:
      name: Wind speed
      description: Set the maximum wind speed when the irrigation should turn off
      selector:
        number:
          min: 0
          max: 30
          unit_of_measurement: "km/h"
trigger:
  - platform: numeric_state
    entity_id: !input wind_sensor
    id: turn_off1
    above: !input windspeed
  - platform: numeric_state
    entity_id: !input rain_sensor
    id: turn_off2
    above: "0"
  - platform: numeric_state
    entity_id: !input wind_sensor
    id: turn_on1
    below: !input windspeed
  - platform: state
    id: turn_on2
    to: "0"
    entity_id: !input rain_sensor
condition:
  - condition: numeric_state
    entity_id: !input outdoor_temp
    above: !input minimum_temp
action:
  - choose:
      - conditions:
          - condition: or
            conditions:
              - condition: trigger
                id: turn_on1
              - condition: trigger
                id: turn_on2
        sequence:
          - type: turn_on
            device_id: <guid>
            entity_id: !input irrigation_relay
            domain: switch
            metadata:
              secondary: false
      - conditions:
          - condition: or
            conditions:
              - condition: trigger
                id: turn_off1
              - condition: trigger
                id: turn_off2
        sequence:
          - type: turn_off
            device_id: <guid>
            entity_id: !input irrigation_relay
            domain: switch
            metadata:
              secondary: false
mode: single
1 Like

Why?
I mean what’s the matter with wind Or temperature?
It’s mostly about the time between the start and the moister.

So I’m slowly building automations for home, and my parents wanted an automation, to turn off the irrigation timer, when the wind is higher than x, because we use well water, and if we run the irrigation in high wind, it stains the white wall of our garage. The reason to share here, because our neighboor, who also uses home assistant, asked for the automation and when tested, for some reason, he couldn’t import the blueprint when i gave him the github link
For now, it’s a hunter “dumb” irrigation controller, and the automation only turns off 1 relay, to deactivate the valves, since my 8 channel relay board didn’t arrive.

3 Likes