home-assistant.io/source/_integrations/swiss_public_transport.markdown
Cyrill Raccaud 0fda861137
explain custom polling for sensor (#31100)
* explain custom polling for sensor

* swiss_public_transport.markdown aktualisieren

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2024-01-29 12:48:06 +01:00

1.6 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_config_flow, ha_codeowners, ha_domain, ha_platforms, ha_integration_type
title description ha_category ha_iot_class ha_release ha_config_flow ha_codeowners ha_domain ha_platforms ha_integration_type
Swiss public transport Instructions on how to integrate timetable data for traveling in Switzerland within Home Assistant.
Transport
Cloud Polling pre 0.7 true
@fabaff
@miaucl
swiss_public_transport
sensor
integration

The Swiss public transport integration will give you the next three departure times from a given location to another one in Switzerland.

The Swiss public transport API only allows 1000 requests per 24 hours. The default polling rate is set to 90s, which is just enough for one connection polling continuously. If more entries are needed, consider defining a custom polling interval to reduce the amount of requests.

The Stationboard website can help to determine the exact name of the start and the end station.

{% include integrations/config_flow.md %}

{% configuration %} from: description: The ID of the station of the start station. required: true type: string to: description: The ID of the station of the end station. required: true type: string name: description: The name of the sensor. required: false type: string default: Next Departure {% endconfiguration %}

The public timetables are coming from Swiss public transport.

Defining a custom polling interval

{% include common-tasks/define_custom_polling.md %}