NDW Verkeer Integration for Home Assistant

:red_car: Roadworks (Netherlands) – Custom Component

Hello Home Assistant fam! :wave:

I’d like to share a custom component I’ve been working on.

This integration allows you to monitor roadworks, and planned events for specific roads or municipalities in the Netherlands. It pulls data directly from the official NDW (Nationaal Dataportaal Wegverkeer) Datex II XML feeds, giving you real-time insights into your commute or local area.


:gear: Performance (Yes… the dataset is huge :sweat_smile:)

At first glance, the dataset (DCB) is massive—and that was my biggest concern too.

To solve this, I implemented zero-memory stream parsing:

  • Downloads and decompresses .gz XML files on-the-fly
  • Processes data in small chunks
  • Clears memory immediately after processing

:point_right: Result: Near-zero RAM usage, even with very large datasets


:arrows_counterclockwise: Smart Update Strategy

  • Updates only when you want
  • In most cases, only 1 update per year is needed
  • No constant polling or unnecessary system load

:bulb: Why I built this

I wanted a lightweight way to:

  • Track local traffic disruptions
  • Integrate it into Home Assistant dashboards
  • Avoid heavy APIs or constant background processing

:package: Installation & Repository

You can find the full project here:
:point_right: The repo

(Installation instructions and setup are included in the repository)



lovelacecard screenshot