home-assistant.io/source/_integrations/nederlandse_spoorwegen.markdown
2020-01-07 14:43:49 +01:00

1.8 KiB

title, description, logo, ha_category, ha_iot_class, ha_release
title description logo ha_category ha_iot_class ha_release
Nederlandse Spoorwegen Instructions on how to integrate timetable data for traveling by train in the Netherlands within Home Assistant. nederlandse_spoorwegen.png
Transport
Cloud Polling 0.57

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

You must create an application here to obtain a password.

Add the data to your configuration.yaml file as shown in the example:

# Example configuration.yaml entry
sensor:
- platform: nederlandse_spoorwegen
  email: you@example.com
  password: !secret ns_password
  routes:
    - name: Rotterdam-Amsterdam
      from: Rtd
      to: Asd
    - name: Groningen-Zwolle-Maastricht
      from: Gn
      to: Mt
      via: Zl

{% configuration %} email: description: The email address you used to request the API password. required: true type: string password: description: The API password provided by the Nederlandse Spoorwegen. required: true type: string routes: description: List of traveling routes. required: false type: list keys: name: description: Name of the route. required: true type: string from: description: The start station. required: true type: string to: description: Direction of the traveling. required: true type: string via: description: Optional other station you wish to visit in between. required: false type: string {% endconfiguration %}

The data are coming from Nederlandse Spoorwegen.

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