네덜란드열차정보(Nederlandse Spoorwegen (NS))


This sensor will provide you with time table information of the Nederlandse Spoorwegen train service in the Netherlands.

To obtain an API key, create an account on the NS API-Portaal and obtain an API key for the RetrieveTripInformationPublicAPI API.

The nederlandse_spoorwegen integration can be configured using configuration.yaml as shown below:

# Example configuration.yaml entry
sensor:
- platform: nederlandse_spoorwegen
  api_key: NS_API_KEY
  routes:
    - name: Rotterdam-Amsterdam
      from: Rtd
      to: Asd
    - name: Groningen-Zwolle-Maastricht
      from: Gn
      to: Mt
      via: Zl

Configuration Variables

api_key

(string)(Required)

The API key provided by the Nederlandse Spoorwegen.

routes

(list)(Optional)

List of travel routes.

name

(string)(Required)

Name of the route.

from

(string)(Required)

The departure station.

to

(string)(Required)

The arrival station.

via

(string)(Optional)

A station the route needs to pass through.

The data are coming from Nederlandse Spoorwegen.

Station codes must be used and can be looked up here.