diff --git a/source/_components/sensor.ruter.markdown b/source/_components/sensor.ruter.markdown new file mode 100644 index 00000000000..c24765d3663 --- /dev/null +++ b/source/_components/sensor.ruter.markdown @@ -0,0 +1,53 @@ +--- +layout: page +title: "Ruter Public Transport" +description: "Instructions on how to integrate departure times from Ruter within Home Assistant." +date: 2018-11-05 00:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: ruter.png +ha_category: Transport +ha_iot_class: "Cloud Polling" +ha_release: "0.83" +--- + +The `ruter` sensor will provide you departure information for the larger Oslo area in Norway from the [Ruter][ruter] public transportation service. + +This platform is using the [Ruter reisapi API][ruter-api] to gather the information. + +To find the `stop_id` you need to visit the [Ruter][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: + +```yaml +# 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 time. + required: false + default: 0 + type: integer +name: + description: Name of the sensor. + required: false + type: string +{% endconfiguration %} + +[ruter]: https://ruter.no/reiseplanlegger/Stoppested +[ruter-api]: http://reisapi.ruter.no/Help \ No newline at end of file diff --git a/source/images/supported_brands/ruter.png b/source/images/supported_brands/ruter.png new file mode 100644 index 00000000000..0cbb52f754a Binary files /dev/null and b/source/images/supported_brands/ruter.png differ