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
description: "Instructions how to integrate timetable data for travelling in Sweden within Home Assistant."
5
+
date: 2016-10-05 08:45
6
+
sidebar: true
7
+
comments: false
8
+
sharing: true
9
+
footer: true
10
+
logo: vasttrafik.png
11
+
ha_category: Transport
12
+
ha_iot_class: "Cloud Polling"
13
+
ha_release: "0.30"
14
+
---
15
+
16
+
17
+
The `vasttrafik` sensor will provide you travelling details for the larger Göteborg area in Sweden from the [Västtrafik](https://vasttrafik.se/) public transportation service.
18
+
19
+
You must create an application [here](https://developer.vasttrafik.se/portal/#/applications) to obtain a `key` and a `secret`.
20
+
21
+
Add the data to your `configuration.yaml` file as shown in the example:
22
+
23
+
```yaml
24
+
# Example configuration.yaml entry
25
+
sensor:
26
+
- platform: vasttrafik
27
+
key: XXXXXXXXXXXXXXXXXXX
28
+
secret: YYYYYYYYYYYYYYYYY
29
+
departures:
30
+
- name: Mot järntorget
31
+
from: Musikvägen
32
+
heading: Järntorget
33
+
delay: 10
34
+
```
35
+
36
+
Configuration variables:
37
+
38
+
- **key** (*Required*): The API key to access your Västtrafik account.
39
+
- **secret** (*Required*): The API secret to access your Västtrafik account.
40
+
- **departures** array (*Required*): List of travelling routes.
41
+
- **name** (*Optional*): Name of the route.
42
+
- **from** (*Optional*): The start station.
43
+
- **heading** (*Optional*): Direction of the travelling.
44
+
- **delay** (*Optional*): Delay in minutes.
45
+
46
+
The data are coming from [Västtrafik](https://vasttrafik.se/).
0 commit comments