OVAPI GTFS Tools for Dutch Public Transport Data

I made a bunch of elements to create cards with departure time of Dutch busses, ferries, trams and metros. It is using the ovapi.nl API.

The project contains an example package file and two template blueprints.

With this you can create badges with the number of minutes until the next bus or a full DRIS sign.
Example_badges

It is based on the standard REST integration and template sensors. The REST integration has some limitation on what it can do , as have the template sensors. Therefore a helper sensor is needed.

This provides the flexibility to either make a sensor from all lines of a single bus stop (in one direction), a single line number in one direction, or a combination of bus stops and line numbers.

As the project consist of a package file, two blueprint files and a Lovelace example it is not easy to ship as a one-click installation but the github page should be pretty self explanatory.

There are similar projects like ovapi that are more complete and easier to install but require custom components. I wanted to try to do something completely with default Home Assistant components.

Please let met know what you think of it.

I also made a easier way to find tpc codes for all but not trains:
https://william-sy.github.io/ovapi-tpc-finder/site/index.html

This is more user friendly (IMHO)

1 Like

Some small updates.

  • Added handling of cancelled transport.
  • Passed transport is filtered out.
  • Transport that should be passed according to the expected departure time becomes blank lines after a certain clearing time. (More like real DRIS behaviour)
  • 0 min becomes -- min (in attributes)
  • Moved the min suffix in the Lovelace card to the attributes