Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMI Weather Integration for Home Assistant

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

📦 Installation

HACS (Recommended)

  1. Open HACS in Home Assistant
  2. Click the three-dot menu (top right) → Custom Repositories
  3. Add this repository:
   https://github.com/vondk/dmi_hacs
  1. Set category to: Integration
  2. Click Add
  3. Search for DMI Weather in HACS Integrations
  4. Click Install
  5. Restart Home Assistant if prompted

Manual Installation

  1. Download or clone this repository
  2. Copy the custom_components/dmi_weather folder into config/custom_components/
  3. Restart Home Assistant

⚙️ Configuration

  1. Go to Settings → Devices & Services → Add Integration
  2. Search for DMI Weather and click on it
  3. 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)
  4. 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.


🌤️ Sensor Behavior

Once configured, the integration creates a weather entity that reports current conditions and forecasts.

Current Weather

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

Daily Forecast

  • Maximum and minimum temperatures
  • Precipitation amount
  • Wind speed and direction
  • Weather conditions

🗃️ Data Source

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


🔧 Troubleshooting

Common Issues

  1. 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
  2. API errors

    • Check your internet connection
    • Check DMI API status

Debug Logging

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

🔗 Related Projects


🤝 Contributing

Feel free to contribute to this project by:

  • Reporting bugs
  • Suggesting new features
  • Submitting pull requests

📄 License

MIT License — see LICENSE file for details


🙏 Acknowledgments

  • @crusell for the original DMI_HA_Plugin
  • Danish Meteorological Institute (DMI) for providing the Open Data API
  • Home Assistant community for the excellent framework

About

Home Assistant custom integration for DMI (Danish Meteorological Institute) weather data

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages