I created a new sensor that provides real-time departure data for local transit systems that have gtfs feeds. I’ve been using it in my personal home assistant project for the past week or two with no issues, but I’m wondering what the best way to share it is.
Should I create a pull request for home assistant, or is it better for me to share it as a custom component, and gather feedback first?
If you’re still looking for help my regional rail says it has a gtfs realtime feed. If you put out a custom component I can see if I can test it for you.
All transport companies doesn’t share their GTFS feed with Google. I know the one in my city doesn’t… But if it’s based on the same behavior than the theoretical, static GTFS, yeah, it should give the time before the next departure and not the travel time.
I have a similar set up to get my travel information. I want to know when the next train is so I use transportapi.com. It is really easy to use, it gives a json response to a request. For example here is one of my sensors.
My example will give the next train from London Euston calling at Edinburgh.
Just add your transportapi app_id, app_key and station then off you go you will get the next departure from that station. There is loads of options that can be used as part of the request. All the information is live and is updated every minute.
I’m only new to HASS so trying this is still a little beyond me, but I can’t wait until it’s an official component.
I live near a train station (in Sydney, AU) and would love to have a sensor showing the minutes to the next train. Access to the real time GTFS is pretty easy here, from what I read.