Comuro is a Home Assistant integration for monitoring saved routes and detecting current and planned roadworks that affect them.
Comuro also registers a native Lovelace custom card automatically. No separate frontend resource has to be added manually.
The card reads the existing matches attribute from a Comuro route's Betroffen binary sensor and displays current and planned roadworks ordered from the start of the route.
Minimal dashboard configuration:
type: custom:comuro-route-card
entity: binary_sensor.<deine_route>_betroffenThe card supports Home Assistant's visual card editor. The configuration is grouped into Allgemein, Anzeige and Farben & Design. The editor provides an entity picker, Home Assistant icon picker, visual filter selection, switches, a numeric slider and native color inputs; no YAML is required for normal card configuration.
Available card options include:
- route entity, custom title and icon
- filter buttons for all, current and planned roadworks
- default filter and maximum displayed items
- optional distance, status, dates, counts, footer, icons and compact layout
- accent, current/planned colors and backgrounds, card background, divider and secondary-text colors
All existing YAML options remain supported. Advanced CSS color values such as rgba(...), hsla(...) and Home Assistant CSS variables can still be entered manually when needed.
Example:
type: custom:comuro-route-card
entity: binary_sensor.comuro_arbeitsweg_betroffen
show_filter: true
default_filter: aktuell
show_distance: true
show_dates: false
compact: true
accent_color: "#03a9f4"
current_color: "#e53935"
planned_color: "#f9a825"In Home Assistant:
- Open HACS.
- Open the ⋮ menu in the top-right corner.
- Select Custom repositories.
- Add
https://github.com/xjazzor/Comuro. - Select Integration.
- Install Comuro.
- Restart Home Assistant.
- Go to Settings → Devices & services → Add Integration and select Comuro.
For a convenient one-click link:
After Comuro is configured, an administrator gets a Comuro entry in the Home Assistant sidebar.
The native route panel provides:
- creating routes on an interactive map
- editing route names
- editing the warning buffer in meters
- enabling or disabling routes
- changing the route geometry
- deleting routes
Routes are now stored by Comuro in Home Assistant persistent storage. The old /share/comuro/routes.json file is imported automatically once when native storage does not exist. The legacy file is not deleted during migration.
The route panel communicates directly with the Comuro integration through Home Assistant HTTP endpoints. No separate FastAPI service, Uvicorn process or add-on is required.
The panel is registered by the integration and is administrator-only. Route changes are applied immediately against the cached Dortmund snapshot, so changing a route does not trigger another Dortmund network request. Route entities are created from the locally stored route configuration even when the Dortmund provider is temporarily unavailable.
Home Assistant
│
┌────────────┴────────────┐
│ │
▼ ▼
Comuro integration Native Comuro panel
│ │
┌────────┼────────┐ │
│ │ │ │
▼ ▼ ▼ │
Dortmund Tracker Entities ◄────────┘
│
▼
Geospatial matching
│
▼
Route-specific state
- Dortmund Open Data is the first provider.
- The provider uses the current and planned roadwork area datasets.
- Data is refreshed every 60 minutes.
- Construction sites are tracked across snapshots using a stable
construction_id. - A longer end date produces a dedicated
EXTENDEDevent. - A construction missing from one snapshot is not immediately treated as resolved; resolution requires multiple missing snapshots.
- A route match is listed only once, even when a construction geometry intersects the route multiple times.
- The route position is the first point along the route where the configured warning corridor reaches the construction.
- Matches are ordered from the start of the route.
- The visual distinction is intentionally limited to current vs. planned construction.
- The integration does not expose separate next-construction sensors.
- Route management is part of the integration and no longer requires a separate add-on.
Comuro/
├── custom_components/
│ └── comuro/
│ ├── __init__.py
│ ├── manifest.json
│ ├── config_flow.py
│ ├── coordinator.py
│ ├── route_store.py
│ ├── api.py
│ ├── runtime.py
│ ├── entity.py
│ ├── dortmund.py
│ ├── geo.py
│ ├── tracker.py
│ ├── sensor.py
│ ├── binary_sensor.py
│ ├── frontend/
│ │ ├── panel.js
│ │ └── route-card.js
│ ├── strings.json
│ └── translations/
├── contracts/
├── tests/
├── .github/
│ └── workflows/
│ ├── ci.yml
│ └── hacs.yml
├── hacs.json
├── requirements-dev.txt
├── pyproject.toml
└── LICENSE
Python 3.12+ is used for the development environment.
Install development dependencies:
python -m pip install -r requirements-dev.txtRun the core test suite:
pytestRun Ruff:
ruff check custom_components testsThe GitHub Actions pipeline validates the Python test suite, Ruff, Home Assistant metadata with Hassfest, and HACS compatibility.
The integration currently uses:
- a 60-minute
DataUpdateCoordinatorwith a 60-second retry after transient update failures - Home Assistant persistent storage for construction lifecycle state
- Home Assistant persistent storage for routes
- a native administrator-only Comuro sidebar panel
- a native Lovelace Comuro Route card, automatically registered by the integration
- dynamic per-route entities for current/planned construction counts and current route impact
- the initial coordinator refresh runs before route entities subscribe, avoiding a startup update race
Comuro's first provider uses the official Dortmund Open Data roadwork datasets:
fb66-baustellen-tagesaktuell-flachenfb66-baustellen-geplant-flachen
Dortmund states that these datasets contain the current and planned construction-site areas and that the dataset schema was technically adjusted on 2026-02-09.
The current/planned API data exposes fields such as art_der_baumassnahme, auftraggeber, einschrankung, zeitraum, von, bis, stadtbezirk, status and kommune. In the currently published planned records, einschrankung is often null, so Comuro keeps the original raw data rather than inventing a normalized restriction classification.
Comuro is released under the MIT License.