View on GitHub

Smart Irrigation

A Home Assistant integration to optimize irrigation

Configuring the weather service

Main page: Installation
Previous: Downloading the integration
Next: Configuration

The weather service is configured from the Smart Irrigation panel, on the fly — it is no longer part of the install wizard. You can enable it, change it, or turn it off at any time without reinstalling or reloading the integration.

To set it up:

  1. Open the Smart Irrigation panel from the Home Assistant sidebar.
  2. Go to the Weather service settings.
  3. Toggle Use a weather service on, then pick the service you want:
    • Open-Meteo (the default) is keyless and works worldwide — no API key required.
    • A weather entity in Home Assistant reads one of your weather entities (DWD, Met.no, KNMI, ...): pick the entity instead of a key. It reports no rain that fell, so each sensor group needs a rain sensor (see weather services).
    • Open Weather Map and Pirate Weather require an API key (see below).
  4. Enter the API key if the chosen service needs one, or pick the weather entity, then save. When the key or the entity is accepted you will see a success message; otherwise double check it. After switching to a weather entity, the page also names the sensor groups that still take their rain from the weather service: give each of them a rain sensor.

If you turn the weather service off, forecasting is unavailable and you must provide all weather data from another source, such as your own weather station sensors, configured in your sensor groups.

Make sure your Home Assistant home location is set correctly so the data matches your location, or set manual coordinates.

Getting Open Weather Map API Key

Go to OpenWeatherMap and create an account. You can enter any company and purpose while creating an account. After creating your account, You will need to sign up for the paid (but free for limited API calls) OneCall API 3.0 plan if you do not have a key already. Make sure to enter credit card information to get the API truly activated. Then, go to API Keys and get your key. If the key does not work right away, no worries. The email you should have received from OpenWeaterMap says it will be activated 'within the next couple of hours'. So if it does not work right away, be patient a bit. If you are worried about the cost of the API, You can put a rate limit below the paid threshold in the "Billing plans" page of your profile.

Getting Pirate Weather API key

Follow the instructions on this page (see API Key section): https://docs.pirateweather.net/en/latest/API/.

Main page: Installation
Previous: Downloading the integration
Next: Configuration