Dublin Bus Transport Issue

The original source URL of the dublin bus sensor has an SSL certificate that expired. I used the original component and updated the URL and created a custom component. You can get it here

I have also raised an issue in github to add it to the official release

1 Like

How do you deploy this in HA.

You add a folder in the config directory called custom_components. Then copy the dublin_bus folder and all the contents into it.

Then add the following to your conf file

sensor:
  - platform: dublin_bus
    name: My Bus
    stopid: xxxx

Oh wow, good that I have googled and found this otherwise I would waste my time doing the job what already is done :slight_smile:

afaik your changes wasn’t integrated in the official repo right ?

That’s correct. I opened an issue on github but no one pushed it through. It was since closed

:frowning: that’s sad. Thanks anyway.

Platform error sensor.dublin_bus - Integration ‘dublin_bus’ not found.

Any idea? It’s nothing important, but it would be nice to have it, since the data is there to integrate…

This integration hasn’t worked for a long time now. The data feed was moved to GTFS. I’ve tried numerous times to set this up but I could never get the correct results.

There is mention of this on another thread at

https://community.home-assistant.io/t/gtfs-and-or-gtfs-realtime-not-working/`

I have tried this custom integration.

It does seem to be working but I’m getting no realtime information.

Here is an example configuration if you want to give it a go.

sensor:
- platform: gtfs_rt
  trip_update_url: "https://api.nationaltransport.ie/gtfsr/v1"
  vehicle_position_url: "https://api.nationaltransport.ie/gtfsr/v1"
  x_api_key: "xxxxxxxxxxxxxxxxxx"
  departures:
    - name: "Test"
      stopid: "8220B1350001"
      route: "10-23-e19-1"

You will need to get an API key from

You can find your stop and route id from here

https://transitfeeds.com/p/transport-for-ireland/782/latest/routes

Let me know if you have any luck

2 Likes

Hey, did you ever get this working?
Banging my head off a wall here.

The Dublin Bus integration hasn’t worked for a long time and the API is no longer available from NTA for a long time. You will have to move to gtfs and the new API, which is also going to be changed soon. I put this repo up yesterday, which provides an implementation for Ireland.

Try it out and see how you get on

1 Like