mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add action to Swiss public transport (#34255)
* add action for spt: fetch_connections * Update description to use number instead of amount recommended by coderabbit Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * add example for config_entry_id * tiny style tweak * Update source/_integrations/swiss_public_transport.markdown --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
393108b033
commit
4ffcf056f5
@ -41,6 +41,21 @@ name:
|
||||
|
||||
The public timetables are coming from [Swiss public transport](https://transport.opendata.ch/).
|
||||
|
||||
### Defining a custom polling interval
|
||||
## Actions
|
||||
|
||||
The Swiss public transport integration has the following action:
|
||||
|
||||
- `swiss_public_transport.fetch_connections`
|
||||
|
||||
### Action `swiss_public_transport.fetch_connections`
|
||||
|
||||
Fetch the connections for a specific instance.
|
||||
|
||||
| Data attribute | Optional | Description |
|
||||
|------------------------|----------|----------------------------------------------------------|
|
||||
| `config_entry_id` | No | The ID of the Swiss public transport config entry to get data from. For example, in YAML: `config_entry_id: zurich_geneva` or in UI `Instance: zurich_geneva`)|
|
||||
| `limit` | Yes | The number of connections to fetch. (default: 3, range: [1,15])|
|
||||
|
||||
## Defining a custom polling interval
|
||||
|
||||
{% include common-tasks/define_custom_polling.md %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user