Roadworks (Netherlands) – Custom Component
Hello Home Assistant fam! ![]()
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.
Performance (Yes… the dataset is huge
)
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
.gzXML files on-the-fly - Processes data in small chunks
- Clears memory immediately after processing
Result: Near-zero RAM usage, even with very large datasets
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
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
Installation & Repository
You can find the full project here:
The repo
(Installation instructions and setup are included in the repository)
lovelacecard screenshot
