Extension of deutsche_bahn sensor

I would like to have an extension of the Deutsche Bahn Sensor (German public transport) to the next [n] connections.

If you only look at the next connection, you will not see a possibly offered, but later, faster connection.

I’d like to show the next e.g. three connections:

Unbenannt

If you´re still interested, i opened and solved this with a similar approach using the ha-deutschebahn integration: