Skip to content

Commit 928b035

Browse files
authored
Initial docs for Västtrafik sensor (#1134)
* Initial docs for Västtrafik sensor * vasttrafik key secret info
1 parent 5da7bfa commit 928b035

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
layout: page
3+
title: "Västtrafik Public Transport"
4+
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/).
32.7 KB
Loading

0 commit comments

Comments
 (0)