Created
March 30, 2023 06:36
-
-
Save haade-administrator/61d839c20a79643c4ceefe52fd85336e to your computer and use it in GitHub Desktop.
Blueprint Irrigation et meteo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Irrigation contrôlée par les conditions météorologiques | |
description: Basculer l'irrigation en fonction de la météo locale | |
domain: automation | |
input: | |
wind_sensor: | |
name: Capteur de vent | |
description: Sélectionnez un capteur de vent | |
selector: | |
entity: | |
domain: sensor | |
rain_sensor: | |
name: Capteur de pluie | |
description: Sélectionnez un capteur de pluie | |
selector: | |
entity: | |
domain: sensor | |
outdoor_temp: | |
name: Sonde de température extérieure | |
description: Sélectionnez un capteur pour la vitesse du vent | |
selector: | |
entity: | |
domain: sensor | |
irrigation_relay: | |
name: Relais d'irrigation | |
description: Sélectionnez le relais principal pour le système d'irrigation | |
selector: | |
entity: | |
domain: switch | |
minimum_temp: | |
name: Température minimale | |
description: Réglez la température minimale lorsque l'irrigation doit s'allumer | |
selector: | |
number: | |
min: 0 | |
max: 25 | |
unit_of_measurement: "°C" | |
windspeed: | |
name: Vitesse du vent | |
description: Réglez la vitesse maximale du vent lorsque l'irrigation doit s'arrêter | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment