Saltar al contenido principal

Integración domótica Le Vélo (TBM), gratuita y de código abierto

Integración Le Vélo (TBM) para Gladys Assistant

Bikes and free docks of the Le Vélo stations (Bordeaux), classic and electric apart.

info

La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.

This integration brings into Gladys the bikes available and the free docks of the Le Vélo par TBM stations (formerly V³ / VCub), the bike-share service of Bordeaux Métropole. Classic and electric bikes are counted apart: you know before leaving whether an electric bike is still waiting at your station.

No account, no key: the station availability is published as open data by Bordeaux Métropole.

Community integration, not affiliated with TBM, Keolis Bordeaux Métropole Mobilités nor Bordeaux Métropole.

Beta. Report any issue or idea on GitHub, with a screenshot if you can.

Get started​

  1. Check that your house has an address in Gladys (Settings → Houses).
  2. Install the integration, allow access to the house location, then save the configuration page.
  3. Open the Discover tab of the integration: the stations closest to your home are proposed there. Press Add on the ones you want.

The values arrive within a minute.

With several houses, the integration looks around the first one that has an address.

What you get​

One device per station, for example Le Vélo – Meriadeck, with:

FeatureExampleNote
Classic bikes10Bikes without assistance
Electric bikes5Electrically assisted bikes
Bikes available15Both together
Free docks28Where to return a bike
StatusIn serviceSee below
Summary10 classic · 5 electric · 28 docksReady for a notification

The counters keep their history: Gladys can chart when your station empties in the morning.

The status is In service, Rentals suspended (you can return, not rent), Returns impossible (you can rent, not return) or Out of service. A station that does not rent counts 0 bikes, even with bikes left at the docks (locked or under maintenance); a station that does not take bikes back counts 0 docks. A "fewer than 2 bikes" scene then tells the truth.

Follow another station​

For a station far from home (work, train station…):

  1. At the bottom of the configuration page, press Find a station and type part of its name or street (e.g. "Saint-Jean").
  2. Copy its number into the Stations field (several numbers separated by commas), then save.
  3. The station appears in the Discover tab.

A station added keeps being followed even if you remove it from the field or change the radius: to stop, delete the device in Gladys.

Settings​

SettingDefaultEffect
Stations near my home3How many stations to propose (0 turns it off)
Search radius (m)500Largest distance from the house
Stations(empty)Numbers of additional stations
Refresh interval (s)30How often the stations are read, 30 seconds minimum
Language of valuesFrenchLanguage of the feature names and of the texts

Dashboard​

The Le Vélo station widget shows a station at a glance: its name, then three numbers, Classic, Electric and Free docks.

  • Green: enough left; orange: few left; red: none left; grey: the station does not rent (or take bikes back) right now.
  • Under the name: the walking time from the house, then the time of the last update, or the state of the station when it is not fully in service ("6 min walk · Rentals suspended").

To add it: Dashboard → Edit → Add a box → Le Vélo station, then:

SettingEffect
StationThe station to show (a device already added)
"Few left" fromOrange at this number or fewer (1, 2, 3 or 5; 2 by default)
HistoryA chart of the classic bikes, the electric bikes and the free docks over 12 h, 24 h or a week (none by default)

The chart fills up over time: it starts when the station was added.

"Le Vélo map" widget​

The house and the stations on an OpenStreetMap background. Each station carries a pill with its classic bikes, its electric bikes (after the bolt) and its free docks (after the P), in the same colors as the Station widget. The pills find their own place so as not to hide one another, linked to their station by a line. Under the map, the same stations from the nearest on foot, with their names and their walking times.

To add it: Dashboard → Edit → Add a box → Le Vélo map, then:

SettingEffect
StationsMy stations (the ones added, by default) or Near my home (search radius)
ShowEverything (by default), Bikes only or Free docks only
"Few left" fromOrange at this number or fewer (2 by default)

The map is an image: no zoom, no click. It frames itself to show the house and every station (10 at most). The background is downloaded once from OpenStreetMap and kept 30 days in the container.

Walking time​

The walking time from the house to each station is computed along the streets by Transitous, the free community service the TBM integration also uses. It is asked once per station and kept in the container: computed again only when the address of the house changes. Until it answers (or when it does not), the time shown is a straight-line estimate, preceded by "≈".

Scenes​

The features are ordinary Gladys sensors: use the Device state change trigger. Examples:

  • Electric bikes of your station below 1 on weekdays at 8 am → notification "No electric bike left at Meriadeck, take the tram".
  • In the morning, send the Summary in a message: "10 classic · 5 electric · 28 docks".

Buttons of the configuration page​

  • Find a station: finds a station by its name or street, and gives its number.
  • Test the connection: reads the stations and the availability, and shows the state of a followed station.

Troubleshooting​

Message or symptomWhat to do
"Give your house an address…"Settings → Houses: set the address, then save the configuration again.
Nothing in the Discover tabWiden the search radius, or add a station by hand.
"Not found in Stations: …"Check the number with Find a station.
"The Le Vélo service does not answer"Outage on the operator's side: the integration retries and keeps the stations it knows.
"Station unknown to the service"The station was removed or renumbered: delete the device, add the right one.

Data​

Station availability: Bordeaux Métropole, data set Station Le Vélo en temps réel in the GBFS format, under the Licence Ouverte. The list of stations is read once a day and kept in the container; the availability of the whole network is read in a single request every 30 seconds, however many stations are followed.

Map background: © OpenStreetMap contributors, tiles of the OpenStreetMap Foundation server, downloaded once and kept 30 days in the container, as its usage policy asks.

Parámetros de configuración​

Estos son los parámetros que Le Vélo (TBM) te pide en su pantalla de configuración en Gladys.

ParámetroTipoObligatorioDescripción
Get started in 2 minutessectionNo1. Check that your house has an address in Gladys (Settings → Houses). 2. Save this page. 3. Open the “Discover” tab of this integration and press “Add” on the stations near your home. That's it: the bikes available arrive within a minute. No account, no key: Le Vélo real time is open data.
Near my homesectionNoThe closest stations are proposed in the “Discover” tab, one device per station.
Stations near my homenumberNoHow many of the closest stations are proposed. 0 turns the suggestion off.
Search radius (m)numberNoOnly the stations within this distance of the house, in meters.
Other stations (optional)sectionNoTo follow a station that is not near your home (work, school…): find its number with the “Find a station” button at the bottom of this page, and paste it here.
StationsstringNoStation numbers, separated by commas.
AdvancedsectionNoThe defaults suit almost everyone. One request serves every station.
Refresh interval (s)numberNoHow often the stations are read, in seconds (30 seconds minimum). The operator refreshes its data about every minute: reading more often brings nothing.
Language of the valuesselectNoLanguage of the feature names and of the texts published.

Cómo instalar Le Vélo (TBM) en Gladys​

  1. En Gladys, abre Integraciones: Le Vélo (TBM) aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
  2. Haz clic en Instalar. Gladys descarga la imagen Docker (ghcr.io/daviddu26/gladys-le-velo:1.1.0), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración).
  3. Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
  4. También puedes instalarla directamente desde la URL de su repositorio: https://github.com/daviddu26/gladys-le-velo.

Le Vélo (TBM) requiere Gladys >=5.1.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.

¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.

Sobre las integraciones externas​

Le Vélo (TBM) es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene daviddu26, no el equipo principal de Gladys.

Suscríbete a la newsletter de Gladys Assistant

Unos pocos correos al mes sobre nuevas versiones y novedades del proyecto. Enviados por Pierre-Gilles Leymarie, fundador del proyecto. Puedes darte de baja cuando quieras 🙂