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 destination: WAT
``` ```
Configuration variables: {% configuration %}
app_id:
- **app_id** (*Required*): Your application id description: Your application ID.
- **app_key** (*Required*): Your application key required: true
- **queries** array (*Required*): At least one entry required. type: string
- **mode** (*Required*): One of `bus` or `train`. app_key:
- **origin** (*Required*): Specify the three character long origin station code. description: Your application Key.
- **destination** (*Required*): Specify the three character long destination station code. 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. 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.