MBTALive is an independent project and is not affiliated with or endorsed by the Massachusetts Bay Transportation Authority (MBTA). Transit data is provided by the MBTA.
MBTALive is a Home Assistant integration that provides real-time MBTA transit data, helping you monitor your commute and stay updated with transit information directly in Home Assistant.
- Trip and Train Tracking: Monitor trips (departure → arrival stops) and Commuter Rail trains (train number-based tracking).
- Multi-Mode Support: Works with trains, subways, buses, and ferries.
- Live Transit Data: Get arrival/departure times, delays, alerts, platforms, and more.
- Autodiscovery: Automatically finds the fastest direct trip between provided stops.
- Custom Tracking: Choose how many subsequent trips and trains to track.
- Real-time MBTA transit data for trains, subways, and buses, including geolocation and live status updates (e.g., "in transit to," "stopped at").
- Schedule-based data for ferries (no live tracking).
- Tracking options:
- Trip basis: Direct connections from departure to arrival stop, tracked until departure.
- Train basis (Commuter Rail only): Tracks a specific train from departure to arrival stop.
- Customizable tracking: Define how many subsequent trips/trains to track (default: 2).
- Two default sensors per trip/train:
- Upcoming trip: First trip arriving at the departure stop.
- Next trip: The following one.
- Additional sensors (28 per trip/train, disabled by default) with extended details.
- Trips sorted by arrival time at the destination (fastest route prioritization).
- Frequent updates (every 20 sec) for precise tracking.
- Optimized API usage: Multiple caching layers reduce API calls and improve efficiency.
Ferries (No live update, no geolocation)
Follow the HACS installation guide.
- Open Home Assistant → HACS.
- Click the three dots (top-right) → Custom repositories.
- Add
https://github.com/chiabre/MBTAlive
under Repository as an Integration. - Click Add.
- Find MBTALive in HACS.
- Click Install and choose a version (2.0+ required for HACS).
- Restart Home Assistant.
- Go to Settings → Devices & Services → + Add Integration.
- Search for MBTALive and enter the required information:
- Station Names: Use valid MBTA station names (e.g., "South Station," "Park Street"). See MBTA Stops. Note These are the stops of your trip, not those of the route/line.
- MBTA API Key:
- Visit the MBTA API Page.
- Sign up and generate a free API key.
- Number of subsequent trips to track: Set how many upcoming trips to monitor.
- Train Number: Enter a valid Commuter Rail train number. Train numbers are listed in the Commuter Rail Schedules.
- Note: Setting a train number will switch the trip to train-based tracking (tracked until arrival).
HACS will notify you when an update is available. To update:
- Go to HACS → MBTALive.
- Click Update.
- Restart Home Assistant.
Contributions are welcome! Feel free to open an issue or submit a pull request.
For help, open an issue in this GitHub repository.