A Home Assistant custom integration that pushes device tracker location data to a Reitti server using the OwnTracks format.
- Make sure you have HACS installed
- Go to HACS → Integrations
- Click the menu (three dots) in the top right corner
- Select "Custom repositories"
- Add this repository URL:
https://github.com/karldonteljames/reitti-HAIntegration - Set category to "Integration"
- Click "Add"
- Find "Reitti Integration" in the list and install it
- Restart Home Assistant
- Download the latest release from the releases page
- Extract the contents
- Copy the
custom_components/reittifolder to your Home Assistantconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add Integration
- Search for "Reitti Integration"
- Follow the configuration wizard
| Option | Description | Default |
|---|---|---|
| Reitti Server URL | URL of your Reitti server | http://reitti |
| Port | Server port | 8080 |
| API Key | Your Reitti API token | Required |
| Device | Device tracker to monitor | Required |
| Push Interval | Seconds between updates | 30 |
| Enable Push | Enable automatic pushes | true |
| Debug Logging | Enable debug logging | false |
| Friendly Name | Display name | Reitti Integration |
- Pushes location data at configurable intervals
- Triggers immediate updates when device state changes
- Supports multiple device trackers with separate integrations
- Modify ALL settings (URL, API key, device tracker, intervals, etc.) in one form
- Access via: Integration → Three dots menu → "Reconfigure"
- No need to remove and re-add the integration
- Quick access to common settings (intervals, debug logging, device tracker)
- Access via: Integration → Three dots menu → "Configure" → "Options"
- No restart required for option changes
reitti.push_nowservice for on-demand location updates- Useful for automation and testing
- Comprehensive logging for troubleshooting
- View request/response data when debug mode is enabled
Manually trigger an immediate location update.
service: reitti.push_nowThe integration sends data in OwnTracks format:
{
"_type": "location",
"tid": "AB",
"lat": 40.7128,
"lon": -74.0060,
"alt": 10,
"acc": 5,
"tst": 1703097600
}- Go to integration options and enable "Debug Logging"
- Check Home Assistant logs for detailed information
- Connection refused: Check Reitti server URL and port
- 401 Unauthorized: Verify API token is correct
- No location data: Ensure device tracker has GPS coordinates
- Rate limiting: Increase push interval if server is overloaded
# Clone the repository
git clone https://github.com/karldonteljames/reitti-HAIntegration.git
# Set up development environment
cd reitti-HAIntegration
python -m venv venv
source venv/bin/activate
pip install -r requirements_dev.txt
# Run tests
python -m pytest tests/Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Fixed HACS download issues with zip_release configuration
- Updated release management for better HACS compatibility
- Added complete reconfiguration support for all options
- Fixed reconfigure flow to include all settings in one form
- Enhanced reconfigure to update both config data and options
- Added reconfiguration support
- Improved options flow with better validation
- Enhanced error handling
- Added HACS compatibility
- Added device tracker reconfiguration to options flow
- Fixed logging variables
- Added friendly names for better device identification
- Made API calls thread-safe
- Updated deprecation warnings