OpenWeatherMap is a global weather service that provides weather data via an API. It aggregates information from weather stations, satellites, and forecast models. In Home Assistant, it is used as a simple and accessible integration for current weather data and forecasts. It is therefore often a natural starting point for weather-based automations.
In practice, OpenWeatherMap provides access to key measurements such as temperature, humidity, wind, cloud cover, air pressure, and precipitation data. Precipitation data is included in the forecast and is typically used directly as input in automations, for example to assess upcoming rainfall. In addition, there is an hourly forecast that makes it possible to work with both current conditions and expected changes in the weather.
OpenWeatherMap is available in several versions. The classic free version provides access to both current data and forecasts. OpenWeather One Call API 3.0 is a newer API. It can also be used at no cost with moderate usage, typically up to around 1000 API calls per day. This is sufficient for most Home Assistant installations.
In Home Assistant, OpenWeatherMap is integrated via the built-in integration. You create an API key with OpenWeatherMap and add the integration through the user interface under “Devices & Services.” This creates a weather entity along with related sensors that can be used directly in dashboards and automations.
Precipitation data is typically used directly as the basis for automations, for example in connection with garden irrigation or other control based on expected rainfall.
In many setups, OpenWeatherMap is used as part of a combined solution. Current measurements are used to react to present weather conditions. Forecast data is used to adjust behavior going forward. This provides a flexible and practical approach to weather-based control in Home Assistant.
Related articles: Controlling garden irrigation in Home Assistant
Read more: On the OpenWeatherMap website you can find documentation about the API, forecasts, and the different subscription options.
