Swiss Public Transport Integration hits the API limit - 429

Hi all

Integration: swiss_public_transport API

Somehow the rate limit is hit, anyone experiencing the same?

2024-01-19 10:16:15.603 ERROR (MainThread) [opendata_transport] Response from transport.opendata.ch: 429, message=‘Too Many Requests’, url=URL('http://transport.opendata.ch/v1/connections?from=

2024-01-19 10:16:15.604 WARNING (MainThread) [homeassistant.components.swiss_public_transport.coordinator] Unable to connect and retrieve data from transport.opendata.ch

The integration does a update every 90 seconds, so you can only monitor a single line before having to adjust the refresh rate.

I have the same Problem:


Is there a chance to adjust the application to stay within the limit?

→ I found that and will try it to adjust, so it shall work within 24 hours.

Do you mean with single line also departure and departure 1?

I have now the following automation.
I can see that it runs each 3 minutes, but it is not updating the elements on my dashboard.
Does anybody know what is missing?

alias: Travel - Swiss Public Transport - 180 seconds
description: 1 entry call are each 90 sec reaching 1000 downloads per day possible
trigger:

  • platform: time_pattern
    minutes: /3
    condition:
    action:
  • service: homeassistant.update_entity
    target:
    device_id:
    - 40c59de5225813ce99661d52c45d86c0
    - 0ba033b123f47eef69d98b7541117556
    data: {}
    mode: single