mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Add description to hvv departures sensor (#24735)
Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Franck Nijhof <frenck@frenck.nl> fixes undefined
This commit is contained in:
parent
18c9c9d18e
commit
add06c8109
@ -30,6 +30,26 @@ Menu: *Configuration* > *Integrations* > *Select your new integration* > *Press
|
||||
- **offset**: set this if you want to list the departures some minutes in the future, for example, if you live ten minutes away from the station.
|
||||
- **use realtime data**: enable this to include delay and cancellation information.
|
||||
|
||||
## Departure sensors
|
||||
|
||||
The integration creates one sensor for the departures at the selected station.
|
||||
|
||||
### States
|
||||
|
||||
The state is a timestamp representing the time for the next departure, not including delays.
|
||||
|
||||
### Attributes
|
||||
|
||||
| Attribute | Description |
|
||||
| ----------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `line` | Line number of the next departure |
|
||||
| `origin` | The station where the transport started from |
|
||||
| `direction` | The station where the transport ends |
|
||||
| `type` | Type of the transportation, for example, `Bus` or `S` |
|
||||
| `id` | A unique identifier for the line. In most cases, `line` is sufficient to identify the line |
|
||||
| `delay` | Real-time data about the delay of the transport in seconds. Add this to the departure time to get the real departure time |
|
||||
| `next` | A list of the upcoming departures. Each element has the above attributes and `departure` containing the timestamp |
|
||||
|
||||
## Elevator sensors
|
||||
|
||||
If the selected station has elevators, binary sensors will be available.
|
||||
|
Loading…
x
Reference in New Issue
Block a user