Skip to content

Commit 73a5d99

Browse files
committed
Add config var and update details
1 parent c925b0b commit 73a5d99

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/_components/sensor.swiss_public_transport.markdown

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ ha_release: pre 0.7
1414
---
1515

1616

17-
The `swiss_public_transport` sensor will give you the next two departure times from a given location to another one in Switzerland.
17+
The `swiss_public_transport` sensor will give you the next three departure times from a given location to another one in Switzerland.
1818

19-
The [Stationboard](http://transport.opendata.ch/examples/stationboard.html) website can help to determine the exact name of the start and the end station. With the station names it's necessary to search for the ID of those stations:
19+
The [Stationboard](http://transport.opendata.ch/examples/stationboard.html) website can help to determine the exact name of the start and the end station.
2020

21-
http://transport.opendata.ch/v1/locations?query=[Station name]
22-
23-
If the score is 100 ("score":"100" in the response), it is a perfect match. Then add the data to your `configuration.yaml` file as shown in the example:
21+
Then add the data to your `configuration.yaml` file as shown in the example:
2422

2523
```yaml
2624
# Example configuration.yaml entry
@@ -34,5 +32,6 @@ Configuration variables:
3432
3533
- **from** (*Required*): The ID of the station of the start station.
3634
- **to** (*Required*): The ID of the station of the end station.
35+
- **name** (*Optional*): The name of the sensor. Defaults to 'Next Departure'.
3736
3837
The public timetables are coming from [Swiss public transport](http://transport.opendata.ch).

0 commit comments

Comments
 (0)