home-assistant.io/source/_components/sensor.deutsche_bahn.markdown
2016-05-08 09:59:56 +02:00

997 B

layout, title, description, date, sidebar, comments, sharing, footer, ha_category, logo, ha_iot_class
layout title description date sidebar comments sharing footer ha_category logo ha_iot_class
page Deutsche Bahn Instructions how to integrate timetable data for travelling in Germany within Home Assistant. 2015-06-02 21:45 true false true true Sensor db.png Local Polling

The deutsche_bahn sensor will give you the departure time of the next train for the given connection. In case of a delay, the delay is also shown. Additional ATTRIBUTES are used to inform about eg. the type of the train, price and if it is ontime. The data are coming from the bahn.de website.

To enable this sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  platform: deutsche_bahn
  from: NAME_OF_START_STATION
  to: NAME_OF_FINAL_STATION

Configuration variables:

  • from (Required): The name of the start station.
  • to (Required): The name of the end station.