home-assistant.io/source/_components/sensor.nederlandse_spoorwegen.markdown
Franck Nijhof 6224c71c08 Various markdown, spelling, and grammar fixes #3 (#4510)
*  Various markdown, spelling, and grammar fixes

*  Various markdown, spelling, and grammar fixes

*  Various markdown, spelling, and grammar fixes
2018-01-25 18:21:05 +01:00

1.6 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Nederlandse Spoorwegen Instructions how to integrate timetable data for traveling by train in the Netherlands within Home Assistant. 2017-10-25 13:35 true false true true 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 variables:

  • email (Required): The email address you used to request the API password.
  • password (Required): The API password provided by the Nederlandse Spoorwegen.
  • routes array (Required): List of traveling routes.
    • name (Required): Name of the route.
    • from (Required): The start station.
    • to (Required): Direction of the traveling.
    • via (Optional): Optional other station you wish to visit in between.

The data are coming from Nederlandse Spoorwegen.

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