15 lines
2.8 KiB
JSON
15 lines
2.8 KiB
JSON
[
|
|
{
|
|
"id": "Intelligente Gartenbewässerung nach Wetterlage",
|
|
"result": {
|
|
"structured": "TRIGGER: When the sun [sun] rises (sunrise) OR when the sun [sun] sets (sunset). CONDITIONS: wind speed sensor [sensor.YOUR_WIND_SPEED_SENSOR] is below 25 AND temperature min sensor [sensor.YOUR_TEMP_MIN_SENSOR] is above 5. ACTIONS: If the computed variable allow_watering is true, then turn on watering switch [switch.YOUR_WATERING_SWITCH], send a Telegram notification with watering start details, wait for a computed watering_duration (minutes), turn off watering switch [switch.YOUR_WATERING_SWITCH], and send a Telegram notification with watering end details. Otherwise, send a Telegram notification with a no-watering reason. The allow_watering variable is true when NOT in winter mode (wintermode is false, defined as current month NOT in [11,12,1,2,3]) AND humidity sensor [sensor.YOUR_HUMIDITY_SENSOR] <= 90 AND rain today sensor [sensor.YOUR_RAIN_TODAY_SENSOR] <= 5 AND rain yesterday sensor [sensor.YOUR_RAIN_YESTERDAY_SENSOR] <= 5 AND rain forecast tomorrow sensor [sensor.YOUR_RAIN_FORECAST_TOMORROW_SENSOR] <= 2 AND rain probability tomorrow sensor [sensor.YOUR_RAIN_PROBABILITY_TOMORROW_SENSOR] <= 60 AND temperature min sensor [sensor.YOUR_TEMP_MIN_SENSOR] > 5. The watering_duration variable is computed based on month, temperature max sensor [sensor.YOUR_TEMP_MAX_SENSOR], and uv index sensor [sensor.YOUR_UV_INDEX_SENSOR].",
|
|
"natural_language": {
|
|
"trigger": "The automation runs at sunrise or sunset.",
|
|
"conditions": "The wind speed sensor [sensor.YOUR_WIND_SPEED_SENSOR] must be below 25, and the temperature min sensor [sensor.YOUR_TEMP_MIN_SENSOR] must be above 5. Additionally, a set of dynamic conditions, defined in the variable 'allow_watering', must be met. These include not being in winter mode (November through March), humidity being 90% or less, rainfall today and yesterday being 5 mm or less, forecasted rain for tomorrow being 2 mm or less, the probability of rain tomorrow being 60% or less, and the minimum temperature being above 5°C.",
|
|
"action": "If all conditions are met, the watering switch [switch.YOUR_WATERING_SWITCH] is turned on, a detailed start notification is sent via Telegram, the system waits for a calculated duration, the switch is turned off, and an end notification is sent. The watering duration is calculated based on the month, the maximum temperature, and the UV index. If any condition is not met, a Telegram notification is sent explaining the reason why watering is not needed."
|
|
},
|
|
"human_like": "This automation waters the garden at sunrise or sunset, but only if weather conditions like wind, temperature, humidity, and recent or forecasted rainfall are suitable.",
|
|
"complexity": "high"
|
|
}
|
|
}
|
|
] |