That’s awesome, thank you very much!
Will update when I install later on.
Yes please and also let me know how you are planning to display the times, in a markdown this is ‘simple’ but not sure what your ideas are. If complex, maybe I can change the format to just hh:mm and a list instead of a dict
EDIT: with a working soution, I will offer this as a PR to the HA core and then let’s see 
I can confirm it’s working perfectly!
As to how I use the data: I simply use a template to split the data into several sensors per stop I need (stop_arrival, stop arrival1, …) so that I can show them easily in lovelace.
I also show the departures on my watch, and it changes depending on my location (if I’m at home, it shows Stop1 departures, if I’m in town stop2, etc)
To do that I am using a template that changes the data shown depending on my location.
Top right corner :

I guess you could use a list instead, or several attributes (departure1:, departure 2: etc.) but to be honest, however the data is shown doesn’t really matter as long as it is then usable and we can convert it easily.
For example I convert the departures to HH:MM for my watch, but then someone else might want the “In X mins” as originally shown by Home Assistant. In fact, in Lovelace I left the “In X mins” as it is easy to just tap the entity for more info and see the time.
But you could argue that in the attributes, showing the next departures as HH:MM is more readable.!
The coversion to HH:MM is of course easy in HA so I prefer to have the full datetime, one never knows what people want to do with this, just brainstorming if this could be better in other layout/format/list or dict 
Hi, I was kindly pushed to update the integration and with a lto of effort (I am not a dev)…got a next version without the configyaml
Can I ask you to test this too? You can install this next to the other one and put the zip in config/gtfs3
Oops, just seen your message. Do you still want me to try it out?
Edit: Just updated your custom integration, seems to be working fine, though I need to update my templates now! I’ll try it out with several routes.
HI, I updated GTFS2 to yet a newer version this morning…any testing is welcome 
vingerha/gtfs2 (github.com)
Edit: I tried to ‘sell’ this major update to HA core but they wanted a stepped upgrade which would cost me more time and I donot see the added value seeing the existing one is this old. So I will go for a custom (hacs) solution and add functionality on-the-fly without the hassle (donot want to sound negative) of HA core
I do not know how GTFS-RT works but would that count to be a stepped upgrade? Perhaps adding this option? Or automatically detect GTFS-RT data points on the GTFS file?
I understand what you mean, and a custom integration is just fine to be honest.
I wouldn’t be able to test it immediately with my provider, though there are some noise they will submit GTFS-RT data “before the end of the year” following an upgrade to their passenger information system.
Back to this morning’s update, I’ve been messing around and I see you ask for an external URL for the GTFS file for a new setup. If an update is pushed, does it detect it automatically?
For example my provider have for now put data until the 5th November, so they should (soon) push an update.
RT is quite a bit different as it relies on conitnuously updated external sources, i.e.
GTFS: schedule only, no info if transport on time or not
GTFS-RT: schedule + 'real’time deviations… for my area 06/Alpes Maritimes, this is not yet reliable. In theory one would only want the GTFS-RT. I created a few sensors for that with ‘interesting’ jinja code
On the testing, sorry for the mixup as I moved on with GTFS2 over the past days and left gtfs3 for what it was. My plan is to evolve on gtfs2 as the custom_component…so if you want …forgett gtfs3 and test gtfs2 .
GTFS2 flow becomes more user-friendly imo… 
EDIT, after the ‘UX fiendly’ update of the flow, I will add a refresh for the data-source (external url) which I will set to weekly, probably sunday evening or so
Yes, you’d want GTFS-RT whenever available. However, having the support for both will allow users to use the same integration for both (whether they have to use more than one provider, or their’s do not provide GTFS RT data yet)
I am using the updated GTFS2 =)
I have two questions 
When setting up new data it asks for an external URL. If I put the open data link, will it download and update the file when an update is pushed? Or do I have to update it manually (if so, does it create a new folder or add the file to the GTFS2 folder?)
When adding a new stop using old data (or new, I suppose you have the same for both) it asks for polling updates. Can I ask updates for “what”? Is it for the N+10 buses?
Thx!
EDIT: Seen your message about the GTFS updates, great!
I think I have found a bug.
I can add a route, for example : Origin: Nation Destination: Gare
I cannot add the opposite: Origin: Gare Destination: Nation
Unknown error occurred
It seems it supports one way, but not the return (for any stops)
If you want to reproduce it : Réseau urbain Le Met' - Données (GTFS) ouvertes - Metz Métropole
Thanks for helping
At the moment this is only ‘new’…update is not yet built but this is my next action
I have nothing of such in my setup, can you send me a screenshot?
Interesting find as I tested it locally where the stops are the same back and forth
Which ‘route’ is this?..and you are using GTFS2 ?
The stops I mentioned are on route 1, but I’m guessing the problem is present on all routes as the return stops do not have the same IDs, and for some reason the integration doesn’t load them all, which I think is why it errors out…
I am on the updated GTFS2 yes.
@vingerha - Thank you thank you thank you - I literally spent the last few hours trying to figure out why GTFS is not working till I found this thread. Installing GTFS2 for myself and hope it works for my use case. Thanks again for your work!
Its brilliant. It ran into an issue parsing data from the file BUT it works!!! Amazing stuff!
More to come, adding realtime feed too (if you have one for the same gtfs source)
I would like to understand what happened, the unpacking can take very long and then it runs into a timeout or somehting, there is no good error. I am now building something that allows to click x while it is unpacking and then you can return later (need to add a check)…small thing
@vingerha Thanks for your contribution. I have the information for the routes of my interest already, with their arrival time at my bus stop. But I’m struggling to get the next 2 buses on a list. When I select the attribute “next departures” it show it as a sliding banner, is there any way to display it as a list?