zacs / ha-gtfs-rt

Real-time transit information for Home Assistant
MIT License
69 stars 29 forks source link

Update of sensor is taking over 10 seconds #10

Closed xldude closed 1 year ago

xldude commented 2 years ago

Hello,

I'm trying to setup the gtfs-rt for the first time in my HA. It can obviously fetch some data from the API but the information it shows is late

Log shows me following warning

WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.570_at_airport is taking over 10 seconds

sensor config

sensor:
  - platform: gtfs_rt
    trip_update_url: 'https://realtime.hsl.fi/realtime/trip-updates/v2/hsl'
    vehicle_position_url: 'https://realtime.hsl.fi/realtime/vehicle-positions/v2/hsl'
    departures:
    - name: "570 at airport"
      route: 4570
      stopid: 4530259

Any idea how to fix this? All ideas would be appreciated.

grischard commented 2 years ago

+/- 60 minutes makes me wonder if it's a time zone thing.