You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.swiss_public_transport.markdown
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,11 @@ ha_release: pre 0.7
14
14
---
15
15
16
16
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.
18
18
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.
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:
24
22
25
23
```yaml
26
24
# Example configuration.yaml entry
@@ -34,5 +32,6 @@ Configuration variables:
34
32
35
33
- **from** (*Required*): The ID of the station of the start station.
36
34
- **to** (*Required*): The ID of the station of the end station.
35
+
- **name** (*Optional*): The name of the sensor. Defaults to 'Next Departure'.
37
36
38
37
The public timetables are coming from [Swiss public transport](http://transport.opendata.ch).
0 commit comments