Update NS sensor component configuration (#7069)

This commit is contained in:
Klaas Schoute 2018-10-25 09:28:30 +02:00 committed by Fabian Affolter
parent d66d5e736b
commit 6ffb6a47c8

View File

@ -13,7 +13,6 @@ ha_iot_class: "Cloud Polling"
ha_release: "0.57" ha_release: "0.57"
--- ---
This sensor will provide you with time table information of the [Nederlandse Spoorwegen](https://www.ns.nl/) train service in the Netherlands. This sensor will provide you with time table information of the [Nederlandse Spoorwegen](https://www.ns.nl/) train service in the Netherlands.
You must create an application [here](https://www.ns.nl/ews-aanvraagformulier/) to obtain a `password`. You must create an application [here](https://www.ns.nl/ews-aanvraagformulier/) to obtain a `password`.
@ -36,15 +35,37 @@ sensor:
via: Zl via: Zl
``` ```
Configuration variables: {% configuration %}
email:
- **email** (*Required*): The email address you used to request the API password. description: The email address you used to request the API password.
- **password** (*Required*): The API password provided by the Nederlandse Spoorwegen. required: true
- **routes** array (*Required*): List of traveling routes. type: string
- **name** (*Required*): Name of the route. password:
- **from** (*Required*): The start station. description: The API password provided by the Nederlandse Spoorwegen.
- **to** (*Required*): Direction of the traveling. required: true
- **via** (*Optional*): Optional other station you wish to visit in between. type: string
routes:
description: List of traveling routes.
required: false
type: list
keys:
name:
description: Name of the route.
required: true
type: string
frome:
description: The start station.
required: true
type: string
to:
description: Direction of the traveling.
required: true
type: string
via:
description: Optional other station you wish to visit in between.
required: false
type: string
{% endconfiguration %}
The data are coming from [Nederlandse Spoorwegen](https://www.ns.nl/). The data are coming from [Nederlandse Spoorwegen](https://www.ns.nl/).