Installation
HACS Installation (Recommended)
HACS (Home Assistant Community Store) is the recommended installation method.
Prerequisites
- Home Assistant 2024.1 or newer
- HACS installed and configured
Steps
- Open HACS in Home Assistant
- Go to Integrations
- Click the three dots in the top right and select Custom repositories
- Add this repository URL:
https://github.com/NerdySoftPaw/openpublictransport - Select Integration as category
- Click Add
- Search for "Public" and install the integration
- Restart Home Assistant
Tip
After installation, the integration will appear in your list of available integrations.
Manual Installation
If you prefer not to use HACS, you can install the integration manually.
Steps
- Download the latest release from GitHub Releases
- Extract the
custom_components/openpublictransportfolder - Copy the folder to your Home Assistant
custom_componentsdirectory: - Restart Home Assistant
Directory Structure
After installation, your directory should look like this:
custom_components/
└── openpublictransport/
├── __init__.py
├── binary_sensor.py
├── config_flow.py
├── const.py
├── manifest.json
├── sensor.py
├── services.yaml
├── strings.json
└── providers/
├── __init__.py
├── base.py
├── hvv.py
├── kvv.py
├── nta.py
├── trafiklab.py
└── vrr.py
Verify Installation
After restarting Home Assistant:
- Go to Settings > Devices & Services
- Click + Add Integration
- Search for "Public Transport Departures"
If the integration appears in the list, installation was successful.
Updating
HACS Updates
HACS will notify you when updates are available. Simply click Update and restart Home Assistant.
Manual Updates
- Download the latest release
- Replace all files in
custom_components/openpublictransport/ - Restart Home Assistant
Warning
Always backup your configuration before updating.