home-assistant.io/source/_components/sensor.ruter.markdown
2019-01-19 11:56:44 +01:00

1.9 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Ruter Public Transport Instructions on how to integrate departure times from Ruter within Home Assistant. 2018-11-05 00:00 true false true true ruter.png Transport Cloud Polling 0.83

The API used for this sensor is shutting down soon, you should consider starting to use the [`entur_public_transport`](/components/sensor.entur_public_transport/) sensor before that happen. To read the deprecation warning visit [ruter.no/labs](https://ruter.no/labs/),

The ruter sensor will provide you departure information for the larger Oslo area in Norway from the Ruter public transportation service.

This platform is using the Ruter reisapi API to gather the information.

To find the stop_id you need to visit the Ruter site and search for your stop. In the URL after you have searched, there will be an ID right after the Stoppested/ in a format like this (2190400), the numbers there is what you need to put in the stop_id: configuration option.

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

# Example configuration.yaml entry
sensor:
  - platform: ruter
    stop_id: STOPID

{% configuration %} stop_id: description: The stop id for the stop you want to monitor. required: true type: string destination: description: A destination name to show only departures that has this as the final stop. required: false type: string offset: description: An offset for the next departure, 0 will give the first one. required: false type: integer default: 0 name: description: Name of the sensor. required: false type: string default: Ruter {% endconfiguration %}