Skip to content

Commit a90513b

Browse files
ThomasSvedbergballoob
authored andcommitted
Update sensor.vasttrafik.markdown (home-assistant#4986)
* Update sensor.vasttrafik.markdown Add new config option "lines" and extend full example. * ✏️ Tweaks
1 parent e0f90c5 commit a90513b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/_components/sensor.vasttrafik.markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ha_iot_class: "Cloud Polling"
1313
ha_release: "0.30"
1414
---
1515

16-
1716
The `vasttrafik` sensor will provide you traveling details for the larger Göteborg area in Sweden from the [Västtrafik](https://vasttrafik.se/) public transportation service.
1817

1918
You must create an application [here](https://developer.vasttrafik.se/portal/#/applications) to obtain a `key` and a `secret`.
@@ -34,10 +33,11 @@ Configuration variables:
3433
3534
- **key** (*Required*): The API key to access your Västtrafik account.
3635
- **secret** (*Required*): The API secret to access your Västtrafik account.
37-
- **departures** array (*Required*): List of traveling routes.
36+
- **departures** array (*Required*): List of travel routes.
3837
- **name** (*Optional*): Name of the route.
3938
- **from** (*Required*): The start station.
4039
- **heading** (*Optional*): Direction of the traveling.
40+
- **lines** (*Optional*): Only consider these lines.
4141
- **delay** (*Optional*): Delay in minutes. Defaults to 0.
4242
4343
The data are coming from [Västtrafik](https://vasttrafik.se/).
@@ -54,5 +54,8 @@ sensor:
5454
- name: Mot järntorget
5555
from: Musikvägen
5656
heading: Järntorget
57+
lines:
58+
- 7
59+
- GRÖN
5760
delay: 10
5861
```

0 commit comments

Comments
 (0)