Update UK transport sensor component configuration variable (#6897)

* Update UK transport sensor component configuration variable

* 🚑 Added keys to queries

* Minor changes
This commit is contained in:
Klaas Schoute 2018-10-17 23:54:10 +02:00 committed by Fabian Affolter
parent e4bd4fb05d
commit f5dafaf3bf

View File

@ -37,14 +37,33 @@ sensor:
destination: WAT
```
Configuration variables:
- **app_id** (*Required*): Your application id
- **app_key** (*Required*): Your application key
- **queries** array (*Required*): At least one entry required.
- **mode** (*Required*): One of `bus` or `train`.
- **origin** (*Required*): Specify the three character long origin station code.
- **destination** (*Required*): Specify the three character long destination station code.
{% configuration %}
app_id:
description: Your application ID.
required: true
type: string
app_key:
description: Your application Key.
required: true
type: string
queries:
description: At least one entry required.
required: true
type: list
keys:
mode:
description: One of `bus` or `train`.
required: true
type: list
origin:
description: Specify the three character long origin station code.
required: true
type: string
destination:
description: Specify the three character long destination station code.
required: true
type: string
{% endconfiguration %}
A large amount of information about upcoming departures is available within the attributes of the sensor. The example above creates a sensor with ID `sensor.next_train_to_wat` with the attribute `next_trains` which is a list of the next 25 departing trains.