hacs-hafas icon indicating copy to clipboard operation
hacs-hafas copied to clipboard

DB: Replacement trains missing?

Open akloeckner opened this issue 11 months ago • 2 comments

It is 08:25, the next train shown by the integration is the regional train at 10:09. Regardless of whether it is a direct connection or not. Screenshot HA

However, the DB Navigator shows a regional train 82813 at 09:09 and an ICE 2943 at 09:16. However, the ICE is a replacement train for the ICE 1577. Navigator screenshot

The original ICE 1577 can be found in the attributes, but as “canceled: true”. You can also see that the ICE is being replaced by another one, this is stated under “remarks: Für ICE 1577 verkehrt Ersatzfahrt ICE 2943 zwischen Uelzen und Hannover Hbf”

Her are the Attributes:

Direct Connection:

- origin: Uelzen
departure: '2024-12-29T09:16:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T09:58:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '0:42:00'
canceled: true
ontime: true
products: ICE 1577
legs:
- origin: Uelzen
departure: '2024-12-29T09:16:00+01:00'
platform: '101'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T09:58:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ICE 1577
canceled: true
distance: null
remarks:
- Komfort Check-in verfügbar - wenn möglich bitte einchecken
- Fahrradmitnahme reservierungspflichtig
- Fahrradmitnahme begrenzt möglich
- Bordrestaurant
- Fahrt fällt aus
- >-
Für ICE 1577 verkehrt Ersatzfahrt ICE 2943 zwischen Uelzen und
Hannover Hbf
stopovers:
- Uelzen (canceled)
- Celle (canceled)
- Hannover Hbf (canceled)
- origin: Uelzen
departure: '2024-12-29T10:09:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:15:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '1:06:00'
canceled: false
ontime: true
products: ME 82865
legs:
- origin: Uelzen
departure: '2024-12-29T10:09:00+01:00'
platform: '301'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:15:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ME 82865
canceled: false
distance: null
remarks:
- Fahrradmitnahme begrenzt möglich
- Rollstuhlstellplatz
stopovers:
- Uelzen
- Suderburg
- Unterlüß
- Eschede
- Celle
- Großburgwedel
- Isernhagen
- Langenhagen Mitte
- Hannover Hbf
- origin: Uelzen
departure: '2024-12-29T11:15:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:58:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '0:43:00'
canceled: true
ontime: true
products: ICE 1579
legs:
- origin: Uelzen
departure: '2024-12-29T11:15:00+01:00'
platform: '101'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:58:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ICE 1579
canceled: true
distance: null
remarks:
- Komfort Check-in verfügbar - wenn möglich bitte einchecken
- Fahrradmitnahme reservierungspflichtig
- Fahrradmitnahme begrenzt möglich
- Bordrestaurant
- Fahrt fällt aus
- >-
Für ICE 1579 verkehrt Ersatzfahrt ICE 2927 zwischen Uelzen und
Hannover Hbf
stopovers:
- Uelzen (canceled)
- Celle (canceled)
- Hannover Hbf (canceled)

No Direct Connection:

- origin: Uelzen
departure: '2024-12-29T09:16:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T09:58:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '0:42:00'
canceled: true
ontime: true
products: ICE 1577
legs:
- origin: Uelzen
departure: '2024-12-29T09:16:00+01:00'
platform: '101'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T09:58:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ICE 1577
canceled: true
distance: null
remarks:
- Komfort Check-in verfügbar - wenn möglich bitte einchecken
- Fahrradmitnahme reservierungspflichtig
- Fahrradmitnahme begrenzt möglich
- Bordrestaurant
- Fahrt fällt aus
- >-
Für ICE 1577 verkehrt Ersatzfahrt ICE 2943 zwischen Uelzen und
Hannover Hbf
stopovers:
- Uelzen (canceled)
- Celle (canceled)
- Hannover Hbf (canceled)
- origin: Uelzen
departure: '2024-12-29T10:09:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:15:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '1:06:00'
canceled: false
ontime: true
products: ME 82865
legs:
- origin: Uelzen
departure: '2024-12-29T10:09:00+01:00'
platform: '301'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:15:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ME 82865
canceled: false
distance: null
remarks:
- Fahrradmitnahme begrenzt möglich
- Rollstuhlstellplatz
stopovers:
- Uelzen
- Suderburg
- Unterlüß
- Eschede
- Celle
- Großburgwedel
- Isernhagen
- Langenhagen Mitte
- Hannover Hbf
- origin: Uelzen
departure: '2024-12-29T11:15:00+01:00'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:58:00+01:00'
delay_arrival: '0:00:00'
transfers: 0
duration: '0:43:00'
canceled: true
ontime: true
products: ICE 1579
legs:
- origin: Uelzen
departure: '2024-12-29T11:15:00+01:00'
platform: '101'
delay: '0:00:00'
destination: Hannover Hbf
arrival: '2024-12-29T11:58:00+01:00'
platform_arrival: '4'
delay_arrival: '0:00:00'
mode: train
name: ICE 1579
canceled: true
distance: null
remarks:
- Komfort Check-in verfügbar - wenn möglich bitte einchecken
- Fahrradmitnahme reservierungspflichtig
- Fahrradmitnahme begrenzt möglich
- Bordrestaurant
- Fahrt fällt aus
- >-
Für ICE 1579 verkehrt Ersatzfahrt ICE 2927 zwischen Uelzen und
Hannover Hbf
stopovers:
- Uelzen (canceled)
- Celle (canceled)
- Hannover Hbf (canceled)

Originally posted by @kaffeetrinker71 in https://github.com/akloeckner/hacs-hafas/issues/16#issuecomment-2564640314

akloeckner avatar Dec 29 '24 22:12 akloeckner

@kaffeetrinker71

I have opened this separate issue, as it might be unrelated.

I have also locally created a more detailed dump of the connections. I am hoping there is a reference to the replacement train in the remarks. I'll come back, when I'm more enlightened...

akloeckner avatar Dec 29 '24 22:12 akloeckner

There is something in the remarks.

    {
      "code": null,
      "priority": null,
      "remark_type": "L",
      "subject": null,
      "text": "F\u00fcr ICE 1575 verkehrt Ersatzfahrt ICE 2915 zwischen Uelzen und Hannover Hbf",
      "trip_id": "2|#VN#1#ST#1734722398#PI#1#ZI#1200136#TA#0#DA#301224#1S#8002553#1T#608#LS#8000191#LT#1251#PU#81#RT#2#CA#ICE#ZE#2915#ZB#ICE 2915#PC#0#FR#8002553#FT#608#TO#8000191#TT#1251#"
    }

I guess that could be used to retrieve the replacement trip.

akloeckner avatar Dec 30 '24 09:12 akloeckner