Zum Hauptinhalt springen

Le Vélo (TBM) Smart-Home-Integration, kostenlos und Open Source

Le Vélo (TBM)-Integration für Gladys Assistant

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

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

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.

Konfigurationseinstellungen​

Diese Einstellungen fragt Le Vélo (TBM) in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
Get started in 2 minutessectionNein1. 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 homesectionNeinThe closest stations are proposed in the “Discover” tab, one device per station.
Stations near my homenumberNeinHow many of the closest stations are proposed. 0 turns the suggestion off.
Search radius (m)numberNeinOnly the stations within this distance of the house, in meters.
Other stations (optional)sectionNeinTo 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.
StationsstringNeinStation numbers, separated by commas.
AdvancedsectionNeinThe defaults suit almost everyone. One request serves every station.
Refresh interval (s)numberNeinHow 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 valuesselectNeinLanguage of the feature names and of the texts published.

So installierst du Le Vélo (TBM) in Gladys​

  1. Öffne in Gladys Integrationen: Le Vélo (TBM) erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/daviddu26/gladys-le-velo:1.1.0) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/daviddu26/gladys-le-velo.

Le Vélo (TBM) benötigt Gladys >=5.1.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

Le Vélo (TBM) ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von daviddu26 veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂