mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Update sensor.vasttrafik.markdown (#4986)
* Update sensor.vasttrafik.markdown
Add new config option "lines" and extend full example.
* ✏️ Tweaks
This commit is contained in:
parent
772fb32af9
commit
0ead042087
@ -13,7 +13,6 @@ ha_iot_class: "Cloud Polling"
|
||||
ha_release: "0.30"
|
||||
---
|
||||
|
||||
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
- **key** (*Required*): The API key to access your Västtrafik account.
|
||||
- **secret** (*Required*): The API secret to access your Västtrafik account.
|
||||
- **departures** array (*Required*): List of traveling routes.
|
||||
- **departures** array (*Required*): List of travel routes.
|
||||
- **name** (*Optional*): Name of the route.
|
||||
- **from** (*Required*): The start station.
|
||||
- **heading** (*Optional*): Direction of the traveling.
|
||||
- **lines** (*Optional*): Only consider these lines.
|
||||
- **delay** (*Optional*): Delay in minutes. Defaults to 0.
|
||||
|
||||
The data are coming from [Västtrafik](https://vasttrafik.se/).
|
||||
@ -54,5 +54,8 @@ sensor:
|
||||
- name: Mot järntorget
|
||||
from: Musikvägen
|
||||
heading: Järntorget
|
||||
lines:
|
||||
- 7
|
||||
- GRÖN
|
||||
delay: 10
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user