mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Minimize configuration sample
This commit is contained in:
parent
5614baaa74
commit
3cdb28f31d
@ -27,10 +27,7 @@ sensor:
|
|||||||
key: XXXXXXXXXXXXXXXXXXX
|
key: XXXXXXXXXXXXXXXXXXX
|
||||||
secret: YYYYYYYYYYYYYYYYY
|
secret: YYYYYYYYYYYYYYYYY
|
||||||
departures:
|
departures:
|
||||||
- name: Mot järntorget
|
- from: Musikvägen
|
||||||
from: Musikvägen
|
|
||||||
heading: Järntorget
|
|
||||||
delay: 10
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -41,6 +38,21 @@ Configuration variables:
|
|||||||
- **name** (*Optional*): Name of the route.
|
- **name** (*Optional*): Name of the route.
|
||||||
- **from** (*Required*): The start station.
|
- **from** (*Required*): The start station.
|
||||||
- **heading** (*Optional*): Direction of the travelling.
|
- **heading** (*Optional*): Direction of the travelling.
|
||||||
- **delay** (*Optional*): Delay in minutes.
|
- **delay** (*Optional*): Delay in minutes. Defaults to 0.
|
||||||
|
|
||||||
The data are coming from [Västtrafik](https://vasttrafik.se/).
|
The data are coming from [Västtrafik](https://vasttrafik.se/).
|
||||||
|
|
||||||
|
A full configuration example could look like this:
|
||||||
|
|
||||||
|
```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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user