Based on the original work by @crusell: DMI_HA_Plugin. This project continues development from that foundation with additional improvements.
This integration provides:
- Current weather conditions with temperature, humidity, pressure, wind, and more
- 24-hour hourly forecasts with detailed weather parameters
- 5-day daily forecasts with high/low temperatures
- Purpose-built for weather data retrieval
- Open HACS in Home Assistant
- Click the three-dot menu (top right) → Custom Repositories
- Add this repository:
https://github.com/vondk/dmi_hacs
- Set category to: Integration
- Click Add
- Search for DMI Weather in HACS Integrations
- Click Install
- Restart Home Assistant if prompted
- Download or clone this repository
- Copy the
custom_components/dmi_weatherfolder intoconfig/custom_components/ - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for DMI Weather and click on it
- Enter your location details:
- Name: A friendly name for your weather entity (e.g.,
Copenhagen Weather) - Latitude: The latitude of your location (e.g.,
55.6761) - Longitude: The longitude of your location (e.g.,
12.5683)
- Name: A friendly name for your weather entity (e.g.,
- Save — the weather entity is created immediately, no restart required
To update settings, go to Settings → Devices & Services → DMI Weather → Configure.
Note on Branding: If the logo/icon does not show up immediately, clear your browser cache or use an incognito window. HACS and Home Assistant can sometimes take a moment to refresh brand assets.
Once configured, the integration creates a weather entity that reports current conditions and forecasts.
| Parameter | Unit | Description |
|---|---|---|
| Temperature | °C | Current air temperature |
| Humidity | % | Relative humidity |
| Pressure | hPa | Atmospheric pressure |
| Wind Speed | m/s | Wind speed |
| Wind Direction | degrees | Wind bearing |
| Weather Condition | — | Clear, cloudy, rain, snow, etc. |
| Visibility | km | Horizontal visibility |
- Maximum and minimum temperatures
- Precipitation amount
- Wind speed and direction
- Weather conditions
This integration uses the DMI HARMONIE DINI IG weather model, which provides:
- High-resolution weather forecasts
- Coverage for Denmark and surrounding areas
- Updates every 6 hours
- Data available for up to 5 days ahead
For more information about the DMI Open Data API, visit: https://www.dmi.dk/friedata/dokumentation-paa-engelsk
-
No data available
- Verify your coordinates are within the DMI coverage area (Denmark and surrounding regions)
- Try slightly different coordinates if the exact location returns no data
-
API errors
- Check your internet connection
- Check DMI API status
To enable debug logging, enable it in the UI under the device, or add the following to your configuration.yaml:
logger:
default: info
logs:
custom_components.dmi_weather: debug- @crusell's original DMI_HA_Plugin — the foundation this project is built upon
- Home Assistant — the excellent smart home framework
Feel free to contribute to this project by:
- Reporting bugs
- Suggesting new features
- Submitting pull requests
MIT License — see LICENSE file for details
- @crusell for the original DMI_HA_Plugin
- Danish Meteorological Institute (DMI) for providing the Open Data API
- Home Assistant community for the excellent framework