[Custom Component] OEBB Austria next journeys

@lollopod i just filed you a pull request. i am curious, is there a reason you do not have issues enabled on your repository?

Has anyone testet this in the last weeks? The rt feature is not working anymore… no updates on delays :frowning:

For me it still works. Did it work for you before?

Hi,
this was working like a charme since about 3 weeks. Then it suddenly stop working.
I did not change anything then the usual updates on HA.

I enabled debug and I got the following error.

2024-07-21 08:46:12.935 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up oebb platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/oebb/sensor.py", line 96, in async_setup_platform
    for idx, journey in enumerate(coordinator.data["journey"]):
                                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'journey'

Unfortunalty I cannot guess whats the issue here.
Does anyone else have the issue? Any ideas?

Thanks

Maybe the api is responding something bad - maybe a evaID/dirInput combination that does no longer work?

Did you try a different combination of settings?
I can say that the following combination is working for me:

  evaId: 1232109
  dirInput: 1291903