Skip to content

Initial docs for Västtrafik sensor #1134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions source/_components/sensor.vasttrafik.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
layout: page
title: "Västtrafik Public Transport"
description: "Instructions how to integrate timetable data for travelling in Sweden within Home Assistant."
date: 2016-10-05 08:45
sidebar: true
comments: false
sharing: true
footer: true
logo: vasttrafik.png
ha_category: Transport
ha_iot_class: "Cloud Polling"
ha_release: "0.30"
---


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.

You must create an application [here](https://developer.vasttrafik.se/portal/#/applications) to obtain a `key` and a `secret`.

Add the data to your `configuration.yaml` file as shown in the example:

```yaml
# Example configuration.yaml entry
sensor:
- platform: vasttrafik
key: XXXXXXXXXXXXXXXXXXX
secret: YYYYYYYYYYYYYYYYY
departures:
- name: Mot järntorget
from: Musikvägen
heading: Järntorget
delay: 10
```

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 travelling routes.
- **name** (*Optional*): Name of the route.
- **from** (*Optional*): The start station.
- **heading** (*Optional*): Direction of the travelling.
- **delay** (*Optional*): Delay in minutes.

The data are coming from [Västtrafik](https://vasttrafik.se/).
Binary file added source/images/supported_brands/vasttrafik.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.