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.
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