ha-gtfs-rt icon indicating copy to clipboard operation
ha-gtfs-rt copied to clipboard

See following departures

Open DaAwesomeP opened this issue 8 months ago • 2 comments

Hello!

Would it be possible to have multiple entities for one route/stop combination to show the next and following departure? This is very useful for "I won't make the train coming in 2 minutes, but I will make the one coming in 10 minutes."

There could possibly be an offset options that is 0 by default but will show the following arrival when set to 1 or the third arrival when set to 2.

DaAwesomeP avatar Oct 16 '23 01:10 DaAwesomeP

Aha! I figured out that there is the "Next bus in" attribute. Note that this maybe should be "next arrival in" since it could be a bus or train or other vehicle.

It still would be nice to have a way to see the 3rd arrival.

Example for dashboard:

type: entities
entities:
  - entity: sensor.my_route_and_stop
  - type: attribute
    entity: sensor.my_route_and_stop
    attribute: Next bus due in
    name: Following train
    suffix: min
state_color: false
title: Trains

DaAwesomeP avatar Oct 16 '23 02:10 DaAwesomeP

I would also be interested in support for showing the next N arrivals. Happy to submit PR's for this once we agree on what the YAML/API should look like

mxr avatar Oct 20 '23 04:10 mxr