vingerha / gtfs2

Support GTFS in Home Assistant GUI-only
https://github.com/vingerha/gtfs2
MIT License
77 stars 7 forks source link

Showing only depatures 5 hours ahead #100

Open Valappi opened 4 weeks ago

Valappi commented 4 weeks ago

I did a install a the GTFS2 integration and got it working last night. It seemed to work as expected with real-time data updates and everything and showing upcoming departures within the hour.

Today when I revisit the install, it only displays departures 5-6h in the future and have been doing so constantly for 7h+. So when the time was 10:00, it displayed departures around 15:00 and the sensor saying the same thing ("In 5 hours"). And now at around 16:00, it displays departures around 21:00 and sensor saying "In 5 hours".

Have rebooted the whole thing, set up new tram routes with the same issue still occurring. Not occurring on bus routes though!

Any idea in which end to start?

Release used

Additional Please add logs if helpfull, switch to 'debug' logging to get more details

vingerha commented 4 weeks ago

I read that when you installed it, it showed trips/departures without a time-delay There is no reason why this would change overnight

Options for a delayed display

Did you use the same setup for bus as well as for tram...if these are the same then it is highly likely a datasource issue

Wrt to realtime... this would be expected as RT is usually not provided for trips being far in the future, i.e. the bus/tram has not even started to move yet.

Valappi commented 4 weeks ago

There is no reason why this would change overnight

It baffles me as well.

I use the same data source for bus as tram and the bus sensor has been working the whole day today without a issue. What I did notice yesterday evening though was that the closer I came to the original time I set the sensor up the previous day, it begun working.

Times are an estimate now but say I configured it 22:00 and the sensor worked and showed me the time until the next departure as expected. The next day, the sensor showed "In 6 hours" prior 16:00. The closer the time gets to when I originally configured it (22:00) it starts counting down. So at 18:00 the sensor shows "in 4 hours" At 20:00 the sensor shows "in 2 hours" After 22:00 the sensor shows the correct time to the next departure and does so up until (I assume), 00:00

So for some reason is seems that the sensor is stuck on the time I set it up!

I tried to set up a new sensor for the same route now but it only states "This entity is not available". I have 5 disabled sensors (the ones set up originally) and same thing. Deleted 3 of them and tried to set up a new one and still get "This entity is not available". So now I can't set up new sensors at all. Is there a limit to number of sensors?

vingerha commented 4 weeks ago

Since the bus remains correct, continuing to doubt the source. Try to setup both type, i.e. start/stop and a location based EDIT: you should not disable entities, just ignore them and for as far as I am aware there is no limit, I have never seen this blocked by existing sensors EDIT2: data issues are challenging to address for me, I have no clue what people expect to see, I cannot verify it if it is correct and beside that it is a lot (!) of digging without any incentive for 'me'. If people can prove a bug then I am OK to try and fix it of course but I cannot fix data issues If you can dig in to the db with a tool of use the zip-file contant then the order to work is routes/route_id > trips/trip_id > stop_times/trip_id > stops/stop_id

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 20 days with no activity.