[ { "id": "Intelligente Gartenbewässerung nach Wetterlage", "automation": "- alias: Intelligente Gartenbewässerung nach Wetterlage\n description: Voll dynamische Gartenbewässerung mit Regen, Temperatur, UV-Index,\n Luftfeuchtigkeit und Wintermodus.\n triggers:\n - event: sunrise\n trigger: sun\n - event: sunset\n trigger: sun\n conditions:\n - condition: numeric_state\n entity_id: sensor.YOUR_WIND_SPEED_SENSOR\n below: 25\n - condition: numeric_state\n entity_id: sensor.YOUR_TEMP_MIN_SENSOR\n above: 5\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ allow_watering | bool }}'\n sequence:\n - target:\n entity_id: switch.YOUR_WATERING_SWITCH\n action: switch.turn_on\n data: {}\n - data:\n message: '🚿 **Bewässerung gestartet!** 🕐 Zeit: {{ now().strftime(''%H:%M'')\n }}\n\n 🌡️ Temperatur Min/Max: {{ temperature_min }}°C / {{ temperature_max }}°C 💨\n Wind: {{ wind_speed }} km/h 💧 Luftfeuchtigkeit: {{ humidity }} % 🌧️\n Regen heute: {{ rain_today }} mm 🌧️ Regen gestern: {{ rain_yesterday\n }} mm 🌦️ Regen morgen: {{ rain_forecast_tomorrow }} mm 📈 Regen-Wahrscheinlichkeit\n morgen: {{ (rain_probability_tomorrow * 100) | round(0) }} % 🔆 UV-Index:\n {{ uv_index }} 🕒 Geplante Laufzeit: {{ watering_duration }} Minuten\n\n '\n action: notify.telegram\n - delay:\n minutes: '{{ watering_duration }}'\n - target:\n entity_id: switch.YOUR_WATERING_SWITCH\n action: switch.turn_off\n data: {}\n - data:\n message: '🛑 **Bewässerung beendet!** 🕐 Zeit: {{ now().strftime(''%H:%M'')\n }}\n\n '\n action: notify.telegram\n default:\n - data:\n message: '❌ **Keine Bewässerung notwendig** 🕐 Zeit: {{ now().strftime(''%H:%M'')\n }}\n\n Grund: {{ no_watering_reason }}\n\n 🌡️ Temperatur Min/Max: {{ temperature_min }}°C / {{ temperature_max }}°C 💨\n Wind: {{ wind_speed }} km/h 💧 Luftfeuchtigkeit: {{ humidity }} % 🌧️\n Regen heute: {{ rain_today }} mm 🌧️ Regen gestern: {{ rain_yesterday }}\n mm 🌦️ Regen morgen: {{ rain_forecast_tomorrow }} mm 📈 Regen-Wahrscheinlichkeit\n morgen: {{ (rain_probability_tomorrow * 100) | round(0) }} % 🔆 UV-Index:\n {{ uv_index }}\n\n '\n action: notify.telegram\n variables:\n temperature_min: '{{ states(''sensor.YOUR_TEMP_MIN_SENSOR'') | float(0) }}'\n temperature_max: '{{ states(''sensor.YOUR_TEMP_MAX_SENSOR'') | float(0) }}'\n wind_speed: '{{ states(''sensor.YOUR_WIND_SPEED_SENSOR'') | float(0) }}'\n humidity: '{{ states(''sensor.YOUR_HUMIDITY_SENSOR'') | float(0) }}'\n uv_index: '{{ states(''sensor.YOUR_UV_INDEX_SENSOR'') | float(5) }}'\n rain_today: '{{ states(''sensor.YOUR_RAIN_TODAY_SENSOR'') | float(0) }}'\n rain_yesterday: '{{ states(''sensor.YOUR_RAIN_YESTERDAY_SENSOR'') | float(0) }}'\n rain_forecast_today: '{{ states(''sensor.YOUR_RAIN_FORECAST_TODAY_SENSOR'') |\n float(0) }}'\n rain_forecast_tomorrow: '{{ states(''sensor.YOUR_RAIN_FORECAST_TOMORROW_SENSOR'')\n | float(0) }}'\n rain_probability_tomorrow: '{{ states(''sensor.YOUR_RAIN_PROBABILITY_TOMORROW_SENSOR'')\n | float(0) }}'\n month: '{{ now().month }}'\n wintermode: '{{ month in [11,12,1,2,3] }}'\n allow_watering: \"{{ not wintermode\\n and humidity <= 90\\n and rain_today <=\\\n \\ 5\\n and rain_yesterday <= 5\\n and rain_forecast_tomorrow <= 2\\n and\\\n \\ rain_probability_tomorrow <= 60\\n and temperature_min > 5 }}\\n\"\n watering_duration: \"{% if month in [3, 4, 5, 9, 10] %}\\n 15\\n{% elif temperature_max\\\n \\ < 12 %}\\n 15\\n{% elif temperature_max > 30 %}\\n {% if uv_index > 7 %}\\n\\\n \\ 45\\n {% else %}\\n 40\\n {% endif %}\\n{% else %}\\n {% if uv_index >\\\n \\ 7 %}\\n 25\\n {% else %}\\n 30\\n {% endif %}\\n{% endif %}\\n\"\n no_watering_reason: \"{% if wintermode %}\\n \\\"❄️ Wintermodus aktiv: Keine Bewässerung\\\n \\ zwischen November und März\\\"\\n{% elif humidity > 90 %}\\n \\\"\\U0001F4A7 Hohe\\\n \\ Luftfeuchtigkeit: {{ humidity }}%\\\"\\n{% elif rain_today > 5 %}\\n \\\"\\U0001F327\\\n ️ Heute schon genug Regen: {{ rain_today }} mm\\\"\\n{% elif rain_yesterday > 5\\\n \\ %}\\n \\\"\\U0001F327️ Gestern schon genug Regen: {{ rain_yesterday }} mm\\\"\\n\\\n {% elif rain_forecast_tomorrow > 2 %}\\n \\\"\\U0001F326️ Morgen wird Regen erwartet:\\\n \\ {{ rain_forecast_tomorrow }} mm\\\"\\n{% elif rain_probability_tomorrow > 60\\\n \\ %}\\n \\\"\\U0001F326️ Hohe Regenwahrscheinlichkeit morgen: {{ (rain_probability_tomorrow\\\n \\ * 100) | round(0) }}%\\\"\\n{% elif temperature_min < 5 %}\\n \\\"❄️ Zu kalt für\\\n \\ Bewässerung (min {{ temperature_min }}°C)\\\"\\n{% else %}\\n \\\"Unbekannter Grund\\\"\\\n \\n{% endif %}\\n\"\n mode: single", "config": [ { "name": "wind speed sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_WIND_SPEED_SENSOR", "device_id": null } }, { "name": "temperature min sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_TEMP_MIN_SENSOR", "device_id": null } }, { "name": "temperature max sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_TEMP_MAX_SENSOR", "device_id": null } }, { "name": "humidity sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_HUMIDITY_SENSOR", "device_id": null } }, { "name": "uv index sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_UV_INDEX_SENSOR", "device_id": null } }, { "name": "rain today sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_RAIN_TODAY_SENSOR", "device_id": null } }, { "name": "rain yesterday sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_RAIN_YESTERDAY_SENSOR", "device_id": null } }, { "name": "rain forecast today sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_RAIN_FORECAST_TODAY_SENSOR", "device_id": null } }, { "name": "rain forecast tomorrow sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_RAIN_FORECAST_TOMORROW_SENSOR", "device_id": null } }, { "name": "rain probability tomorrow sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.YOUR_RAIN_PROBABILITY_TOMORROW_SENSOR", "device_id": null } }, { "name": "watering switch", "room": "garden", "type": "switch", "id": { "entity_id": "switch.YOUR_WATERING_SWITCH", "device_id": null } }, { "name": "telegram notification", "room": null, "type": "notify", "id": { "entity_id": "notify.telegram", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun", "device_id": null } } ] } ]