zacs / ha-gtfs-rt

Real-time transit information for Home Assistant
MIT License
68 stars 30 forks source link

Unable to set up with NYC MTA or Austin feeds, entities not created #15

Closed grischard closed 2 years ago

grischard commented 2 years ago

I am trying to configure gtfs_rt f6f260c on Home Assistant 2022.4.0, running on Home Assistant OS. I don't see any integration, device or entity getting created, and don't see any relevant messages in the debug logs. What am I doing wrong?

My config is copy-pasted from the README for troubleshooting:

logger:
  logs:
    custom_components.gtfs_rt: debug
sensor:
  - platform: gtfs_rt
    trip_update_url: "https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs-bdfm"
    x_api_key: (my key from https://api.mta.info/#/AccessKey)
    departures:
      - name: "Brooklyn F"
        route: "F"
        stopid: "F16S"

The log entries containing that look relevant are:

2022-04-06 23:53:23 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.gtfs_rt 2022-04-06 23:53:28 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: { […] 'sensor.gtfs_rt': 4.80698, […]} 2022-04-06 23:53:40 DEBUG (MainThread) [homeassistant.helpers.translation] Cache miss for en-GB: binary_sensor.hassio, input_number, binary_sensor.ble_monitor, sensor.gtfs_rt, weather, input_datetime, media_player, sensor.thermal_comfort 2022-04-06 23:53:41 DEBUG (SyncWorker_0) [homeassistant.util.json] JSON file not found: /config/custom_components/gtfs_rt/translations/sensor.en-GB.json 2022-04-06 23:53:41 DEBUG (SyncWorker_6) [homeassistant.util.json] JSON file not found: /config/custom_components/gtfs_rt/translations/sensor.en.json 2022-04-06 23:54:10 DEBUG (MainThread) [homeassistant.bootstrap] Integration setup times: {[…] 'gtfs_rt': 8.659741, […]} 2022-04-06 23:54:39 DEBUG (MainThread) [custom_components.hacs] <Integration zacs/ha-gtfs-rt> Getting repository information 2022-04-06 23:54:43 DEBUG (MainThread) [custom_components.hacs] <Integration zacs/ha-gtfs-rt> Running checks against master

I have:

grischard commented 2 years ago

Solved it. Problem between keyboard and chair.

For anyone else looking for entities not getting created: they get created based on their name and you will not find "gtfs" in your entity id.