Divia Dijon smart home integration, free and open source

Dijon trams and buses (Divia): real-time departures, delays, cancellations.
Overview
This integration brings Divia (DiviaMobilités), the trams and buses of Dijon Métropole, into Gladys. It gives the next departures, corrected in real time, with their delay, at the stops you choose (three in the form, up to 10 more with a button), filtered by line and direction. Each stop becomes a device to show on a dashboard and to use in scenes, and cancelled trips are reported.
The data come from the official open data of DiviaMobilités, published on transport.data.gouv.fr under the Licence Ouverte 2.0 (Etalab): no account, no key. The timetable (GTFS) is downloaded once a day when it changed, and kept by the integration. The real time (GTFS-RT) of the whole network is read in one request for every followed stop, every minute by default (every 10 minutes while no stop announces anything in the next half hour, at night).
A departure is followed in real time a little before it leaves its terminus: its estimated time and its delay are given. Before that it is the timetable, marked "(timetable)". A departure announced before its time gives no delay.
Divia publishes no traffic information in open data (no alert in the GTFS-RT feed): the integration does not show the traffic of the lines.
This is a cloud integration: it contacts www.data.gouv.fr / static.data.gouv.fr (timetable) and proxy.transport.data.gouv.fr (real time), the national open data platform of transport. Nothing else leaves your network.
Requirements
- Gladys Assistant 5.3.0 or later.
- Nothing else: the open data of Divia need no account and no key.
Configuration
| Field | What to type |
|---|---|
| Stop 1, 2, 3 | The name of the stop as written on it ("Darcy", "Foch Gare") or the code of a platform ("1462"). |
| Line | Only this line: "T1", "tram 2", "L5", "Corol", "12". Empty: every line of the stop. |
| Direction | Only the destinations holding these words: "Quetigny", "Chenôve | Valmy". Empty: both ways. |
| Reading of the real time | Every 30 seconds, minute, 2 minutes or 5 minutes. |
| Language of the texts | Names of the devices, summaries and outputs of the scenes. Stop names and destinations stay in French. |
A stop gathers the platforms of one name in one place, trams and buses: "Darcy" gives both directions of the trams T1 and T2 and the buses calling there. If the same name is used in two places, they make two stops: type the code of one of its platforms then. The Find a stop button gives the stops holding a few words, with the codes of their platforms and their lines ("Darcy [1084, 1441, 1462, 1494] → T1, T2, 18, 30, CITY"). A few words are enough when only one stop holds them. Test the connection asks for the timetable again and reads each stop right away.
A line is written as on the vehicle: "T1" and "T2" for the trams ("tram 1" or "1" work too), "L3" to "L9" for the Lianes ("Liane 5" works too), "CO" for the Corol, "CITY", "PL", "LM", "12", "40"… The staff shuttles are left out.
More stops than the three of the form (home, work, school…): Add a stop takes the same three fields — stop, line, direction — and follows up to 10 more stops. List the stops shows every followed stop, numbered; Remove a stop takes that number (or the name). The added stops are kept in the configuration of Gladys, so they follow its backups.
Usage
Devices
In the Discover tab, create the devices you want. Divia <stop> gives the next departure as text ("T1 → QUETIGNY Centre · 3 min (+2 min late)"), the wait of the next departure and of the one after (minutes), and the delay of the next one (minutes, published only when it is followed in real time; a departure announced early counts 0).
At night, without any departure in the next three hours, the device shows the first departure of the morning.
Dashboard widget

Divia departures shows the next departures of a stop, compact. One row per line and destination, with its next departures in a row ("2 · 17 min"). A cancelled trip is shown ("cancelled 19:16") and turns the row orange, like a delay of 5 minutes or more. The Routes shown setting sets the number of rows. Choose a followed stop, or type any stop (and a line) in the widget settings. With Several stops, one widget shows several stop devices: the devices of one stop are merged under its name; for different stops, each stop opens with a row of its own.
Scenes
Triggers, once per change (the first reading is only a baseline):
- Divia: departure soon: a departure at a followed stop leaves in 2, 3, 5, 10, 15 or 20 minutes, counted on its real-time estimate.
- Divia: departure cancelled: a trip of the next hour at a followed stop is cancelled, or does not serve the stop.
Each gives a ready-made sentence, {{triggerEvent.data.summary}}, and its values (line, destination, time, delay…). The action Divia: next departures returns the same kind of values, to put in a message or to test in a condition.
Examples:
- When the tram T1 towards Quetigny leaves Darcy in 5 minutes → turn the hall lamp green.
- When a departure of your stop is cancelled → send the summary to your phone before you leave.
- Every weekday at 7:30 → read the next departures of your stop and have the kitchen speaker announce them.
Transport
Cloud only: the data come from the internet. The timetable once a day, the real time of the whole network in one request.
Troubleshooting
- "Unknown or ambiguous": use Find a stop, then copy the exact name or a platform code (a name found in two places needs a platform code); for a line, its name as on the vehicle ("T1", "L5", "12").
- "(timetable)" for a departure: the trip is not followed in real time yet (it has not left its terminus), or Divia does not follow it; the time is the one of the timetable.
- No departure in the direction typed: the destinations are the ones written on the vehicles ("QUETIGNY Centre", "DIJON Gare", "Monge Cité de la gastronomie"); empty the direction to see them all.
- No line traffic: Divia publishes no traffic alert in open data; see divia.fr.
- "The open data of Divia do not answer": the integration tries again at each reading; meanwhile the departures come from the timetable kept.
- To report a problem: press Diagnostic, then copy the lines starting with "Divia diagnostic" from the Logs tab into a GitHub issue or a reply on the forum, with the versions of Gladys and of the integration.
Configuration settings
These are the settings Divia Dijon asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Divia open data | section | No | The departures come from the official open data of Divia, the trams and buses of Dijon Métropole: the timetable (GTFS) and the real time (GTFS-RT). No account and no key: fill in your stops below, then press "Test the connection". The network publishes no traffic information in open data: the integration shows no line traffic. |
| Stop 1 | section | No | The stop where you take the tram or the bus: its next departures, from the timetable corrected in real time, with their delay. Type its name as written on the stop ("Darcy", "Foch Gare") or the code of one of its platforms ("1462"): the "Find a stop" button gives them. The line keeps only its departures ("T1", "tram 2", "L5", "Corol", "12"). The direction keeps only the destinations holding these words ("Quetigny", "Chenôve | Valmy"). |
| Stop | string | No | |
| Line | string | No | Empty for every line. |
| Direction | string | No | Words of the destination. Empty for both directions. |
| Stop 2 | section | No | |
| Stop | string | No | |
| Line | string | No | Empty for every line. |
| Direction | string | No | Words of the destination. Empty for both directions. |
| Stop 3 | section | No | More stops (a home, a workplace, a school…): the "Add a stop" button, under the form, follows up to 10 more, "List the stops" shows them all, numbered, and "Remove a stop" stops following one. The real time of every stop comes in one request. |
| Stop | string | No | |
| Line | string | No | Empty for every line. |
| Direction | string | No | Words of the destination. Empty for both directions. |
| Options | section | No | |
| Reading of the real time | select | No | How often the real time of the network is read: one request for every followed stop. While no stop announces anything in the next half hour (at night), every 10 minutes. The timetable is read once a day. |
| Language of the texts | select | No | Names of the devices, summaries and outputs of the scenes. Automatic: the language of your dashboard, as soon as a Divia widget has been shown. Stop names and destinations stay in French. |
How to install Divia Dijon in Gladys
- In Gladys, open Integrations: Divia Dijon appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/william-de71/gladys-divia-dijon:0.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/William-De71/gladys-divia-dijon.
Divia Dijon requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Divia Dijon is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by William-De71, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation