Smart Irrigation - save water by precisely watering your lawn/garden

2024.7.8 is the version i am on

Not in the integration but for sure using a template helper.

Any chance you can post your config on github? Did you clear your browser cache?

I came from v2024.6.1. that make any difference?

I am fixed up. I deleted integration. Went to reinstall and cross reference stuff. And it worked.

I’m very new to home assistant and I don’t know how to create a template sensor.

something like this? Convert seconds to days, hours, minutes - #8 by fanaticDavid

that’s weird, but thanks for letting me know.


{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "6.6.29-haos",
    "supervisor": "2024.06.2",
    "host_os": "Home Assistant OS 12.3",
    "docker_version": "25.0.5",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "nws_alerts": {
      "documentation": "https://github.com/finity69x2/nws_alerts/",
      "version": "4.1",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "smart_irrigation": {
      "documentation": "https://github.com/jeroenterheerdt/HASmartIrrigation",
      "version": "v2024.7.8",
      "requirements": []
    },
    "lovelace_gen": {
      "documentation": "",
      "version": "0.1.2",
      "requirements": [
        "jinja2"
      ]
    },
    "flair": {
      "documentation": "https://github.com/RobertD502/home-assistant-flair/blob/05b8e0b7e1eb9601b39a350e7848f7910c275208/README.md",
      "version": "0.2.1",
      "requirements": [
        "flairaio==0.2.0"
      ]
    },
    "adaptive_lighting": {
      "documentation": "https://github.com/basnijholt/adaptive-lighting#readme",
      "version": "1.22.0",
      "requirements": [
        "ulid-transform"
      ]
    },
    "ocpp": {
      "documentation": "https://github.com/lbbrhzn/ocpp/blob/f99a39a13b4bff8d979565d57b169129fff62393/README.md",
      "version": "v0.5.8",
      "requirements": [
        "ocpp>=1.0.0",
        "websockets>=12.0"
      ]
    },
    "ui_lovelace_minimalist": {
      "documentation": "https://ui-lovelace-minimalist.github.io/UI/",
      "version": "v1.3.10",
      "requirements": [
        "aiofiles==0.8.0",
        "aiogithubapi>=22.2.4"
      ]
    },
    "openweathermaphistory": {
      "documentation": "https://github.com/petergridge/openweathermaphistory",
      "version": "2.0.12",
      "requirements": [
        "pyowm==3.2.0"
      ]
    },
    "reolink_discovery": {
      "documentation": "https://github.com/xannor/ha_reolink_discovery",
      "version": "2.0.0",
      "requirements": []
    },
    "cync_lights": {
      "documentation": "https://github.com/nikshriv/cync_lights",
      "version": "1.0.1",
      "requirements": []
    },
    "tapo": {
      "documentation": "https://github.com/petretiandrea/home-assistant-tapo-p100",
      "version": "3.1.2",
      "requirements": [
        "plugp100==5.1.3"
      ]
    },
    "miele": {
      "documentation": "https://github.com/astrandb/miele",
      "version": "2024.5.0",
      "requirements": [
        "flatdict==4.0.1",
        "pymiele==0.1.7"
      ]
    }
  },
  "integration_manifest": {
    "domain": "smart_irrigation",
    "name": "Smart Irrigation",
    "codeowners": [
      "jeroenterheerdt"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "panel_custom"
    ],
    "documentation": "https://github.com/jeroenterheerdt/HASmartIrrigation",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/jeroenterheerdt/HASmartIrrigation/issues",
    "requirements": [],
    "version": "v2024.7.6",
    "is_built_in": false
  },
  "setup_times": {},
  "data": {
    "use_weather_service": true,
    "weather_service": "Open Weather Map",
    "weather_service_api_key": "[redacted]",
    "weather_service_api_version": null,
    "store": {
      "config": {
        "calctime": "22:01",
        "units": "imperial",
        "use_weather_service": true,
        "weather_service": "Open Weather Map",
        "autocalcenabled": true,
        "autoupdateenabled": true,
        "autoupdateschedule": "hours",
        "autoupdatedelay": "0",
        "autoupdateinterval": "1",
        "autoclearenabled": true,
        "cleardatatime": "23:59",
        "starteventfiredtoday": false,
        "continuousupdates": true
      },
      "mappings": [
        {
          "id": 1,
          "name": "Default",
          "mappings": {
            "Dewpoint": {
              "source": "weather_service"
            },
            "Evapotranspiration": {
              "source": "none"
            },
            "Humidity": {
              "source": "weather_service"
            },
            "Precipitation": {
              "source": "weather_service"
            },
            "Pressure": {
              "source": "weather_service"
            },
            "Solar Radiation": {
              "source": "none"
            },
            "Temperature": {
              "source": "weather_service"
            },
            "Windspeed": {
              "source": "weather_service"
            }
          },
          "data": [],
          "data_last_updated": null
        }
      ],
      "modules": [
        {
          "id": 0,
          "name": "PyETO",
          "description": "Calculate duration based on the FAO56 calculation from the PyETO library.",
          "config": {
            "solrad_behavior": "3",
            "forecast_days": "1"
          },
          "schema": [
            {
              "type": "boolean",
              "name": "coastal",
              "optional": true,
              "default": false
            },
            {
              "type": "select",
              "options": [
                [
                  "1",
                  "EstimateFromTemp"
                ],
                [
                  "2",
                  "EstimateFromSunHours"
                ],
                [
                  "3",
                  "DontEstimate"
                ],
                [
                  "4",
                  "EstimateFromSunHoursAndTemperature"
                ]
              ],
              "name": "solrad_behavior",
              "required": true,
              "default": "1"
            },
            {
              "type": "integer",
              "name": "forecast_days",
              "optional": true,
              "default": 0
            }
          ]
        }
      ],
      "zones": [
        {
          "id": 1,
          "name": "Back yard",
          "size": 1500.0,
          "throughput": 5.5,
          "state": "automatic",
          "bucket": 0.0,
          "old_bucket": 0.0,
          "delta": 0.0,
          "duration": 0,
          "module": 0,
          "multiplier": 1.0,
          "explanation": "Note: this explanation uses '.' as decimal separator, shows rounded and metric values. Module returned Evapotranspiration deficiency of 0.0. Bucket was 0.0.<br/>maximum bucket size is 1270.0.New bucket value is [old_bucket]+[delta]=0.0+0.0=0.0.<br/>Since bucket >= 0, no irrigation is necessary and duration is set to 0",
          "mapping": 1,
          "lead_time": 0.0,
          "maximum_duration": 3600.0,
          "maximum_bucket": 50,
          "last_calculated": "2024-07-28T22:01:00.458831",
          "last_updated": "2024-07-28T20:53:42.733812",
          "number_of_data_points": 0
        }
      ]
    }
  }
}

I recently deleted and set this integration up again, except this time using pirate weather API instead of OWM. I was expecting improved accuracy for rain forecast, etc. just based on my experience with pirate weather vs. OWM. However, that doesn’t seem to be the case. For majority of last week, it was raining heavily in Houston area (where I live), and so I had completely disabled irrigation. However, the integration kept decreasing the bucket. This makes me think something is wrong in my config.
Is it possible for someone to verify my configs are okay? How can I generate a log of my configs for this integration?

Exactly the same here. Heavy raining (more than 15mm!) went unnoticed increasing the irrigation time

@raul811 I converted my runtimes from seconds to minutes using this template sensor. Put this in your configuration file. You’ll need to duplicate this for each zone.

  #Irrigation Adjusted Times CONVERTED TO MINUTES FOR LOVELACE CARD- multiplies the calculated time via Smart Irrigation by the adjusted percentage using the input_number
sensor:
  - platform: template
    sensors:
      adjusted_time_zone1_minutes:
        unit_of_measurement: "Minutes"
        value_template: >
          {{ (states('sensor.smart_irrigation_zone_1') | float(0) *
          (states('input_number.irrigation_duration_adjustment') | float(0) / 100) / 60) | round(1) }}
        friendly_name: "Adjusted Irrigation Time_Zone 1"

In which file are the Smart Irrigation settings saved?
I have configured my Smart Irrigation so that the add-on no longer starts.

.storage\smart_irrigation.storage

Was wondering as well on what to select for the sensors.
The docs mention for „total precipitation unit % max or last. This was misleading for me.
Due to your replay I selected now „sum“ … is this correct?

I like your integration a lot … many thanks for the effort you put into it.

you spotted a bug in the docs for total precipitation. the unit should be in/mm (selectable) and you should use max or last for it if your sensor reports total precipitation in a day, those should be the same anyway :slight_smile: if the sensor reports actual rain at that moment you should use sum, but then you will be in a bit of trouble unless you bump up the update frequency or if you enable the continuous updates (which is experimental so only do this if you are feeling adventurous!).

need some advice on what to do. since 2 days and updating to 2024.7.4

  • Core 2024.7.4
  • Supervisor 2024.08.0
  • Operating System 12.4
  • Frontend 20240710.0

the calculation on 11:00 pm does not work any more. manual calculation all zones works fine. On th e log I found this:

2024-08-06 23:00:00.489 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/smart_irrigation/__init__.py", line 990, in _async_calculate_all
    await self.async_calculate_zone(zone.get(const.ZONE_ID))
  File "/config/custom_components/smart_irrigation/__init__.py", line 1036, in async_calculate_zone
    data = await self.calculate_module(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smart_irrigation/__init__.py", line 1136, in calculate_module
    newbucket = bucket + (delta * hour_multiplier)
                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'

what to to to solve the issue?

Which smart Irrigation version are you on? I believe I fixed this bug already. Please follow the instructions in our docs: Updating | Smart Irrigation

I am using the irrigation version 2024.7.10

then please open an issue on github.

I have a similar issue.
Smart irrigation has been working for ~10 days and suddenly it does not calculate anything.
I always ran the latest version, upgrading as soon as a new release was available.

Like @Monster_D the problem occured 2 days ago as you can see in the following graph. Last 2 days I get 0s:

I don’t know if it’s a coincidence or if it is related.