From ab2051268f35ab018dd34f430e85d44ad0d1aa85 Mon Sep 17 00:00:00 2001 From: Allan Persson | Marathon Pepe <46043392+allanpersson@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:25:22 +0100 Subject: [PATCH] Update sensor.rejseplanen.markdown (#8730) * Update sensor.rejseplanen.markdown Added important description on how to use the "destination" filter. * :pencil2: Tweaks --- .../_components/sensor.rejseplanen.markdown | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.rejseplanen.markdown b/source/_components/sensor.rejseplanen.markdown index a16e8df3c4d..0252a207769 100644 --- a/source/_components/sensor.rejseplanen.markdown +++ b/source/_components/sensor.rejseplanen.markdown @@ -1,7 +1,7 @@ --- layout: page title: "Rejseplanen Public Transport" -description: "Instructions on how to integrate timetable data for danish Rejseplanen within Home Assistant." +description: "Instructions on how to integrate timetable data for Danish Rejseplanen within Home Assistant." date: 2019-01-09 08:52 sidebar: true comments: false @@ -13,7 +13,7 @@ ha_iot_class: "Cloud Polling" ha_release: 0.88 --- -The `rejseplanen` sensor will provide you with traveling details for Danish public transport, using timetable data from [Rejseplanen](https://www.rejseplanen.dk/). +The `rejseplanen` sensor will provide you with travel details for Danish public transport, using timetable data from [Rejseplanen](https://www.rejseplanen.dk/). ## {% linkable_title Configuration %} @@ -61,6 +61,35 @@ departure_type: type: string|list {% endconfiguration %} +## {% linkable_title Direction %} + +If you use the direction filter it's important to put correct destination, or else the sensor will not work at all. +The direction has to be the destination(s) for the transport type(s) for the departure stop destination, and NOT the stop where you want to get off. Check and make a search, and use the destinations from there in your configuration. Make sure you use the exact name as the destination(s) + +A working example on how to use this sensor with direction: + +```yaml +# Example configuration.yaml entry with the correct use of direction. +sensor: + - platform: rejseplanen + stop_id: '008600615' + direction: + - 'CPH Lufthavn' + - 'Helsingør St.' +``` + +A NOT WORKING example use this sensor with direction: + +```yaml +# Example configuration.yaml entry with the correct use of direction. +sensor: + - platform: rejseplanen + stop_id: '008600615' + direction: + - 'København H' +``` +It fails because the destination from the departure is NOT København H, but 'CPH Lufthavn', 'Helsingør St.' and others. + ## {% linkable_title Examples %} A more extensive example on how to use this sensor: