feat: dynamic student route device tracker with bus swap and staleness tracking #6

Merged
jrittenh merged 2 commits from feature/student-route-device-tracker into main 2026-10-27 11:38:12 -04:00
Owner

This PR introduces student route-based device trackers:

  • Dynamic Vehicle Resolution: MyRideStudentBusTracker dynamically resolves GPS coordinates to whatever activeVehicle is currently assigned to a student's route. If a bus swap occurs, coordinates update automatically.
  • Staleness Tracking: Computes is_stale (>30 min threshold) and location_age_minutes to detect dormant, parked, or disconnected GPS transponders.
  • Metadata Attributes: Exposes assigned_vehicle_id, bus_number, route_name, driver_name, speed, heading, and gps_accuracy.
  • Manifest Version: Bumps version to 0.2.1.
  • Unit Tests: Full test suite covering dynamic vehicle swaps and async entity setup.
This PR introduces student route-based device trackers: - **Dynamic Vehicle Resolution**: `MyRideStudentBusTracker` dynamically resolves GPS coordinates to whatever `activeVehicle` is currently assigned to a student's route. If a bus swap occurs, coordinates update automatically. - **Staleness Tracking**: Computes `is_stale` (>30 min threshold) and `location_age_minutes` to detect dormant, parked, or disconnected GPS transponders. - **Metadata Attributes**: Exposes `assigned_vehicle_id`, `bus_number`, `route_name`, `driver_name`, `speed`, `heading`, and `gps_accuracy`. - **Manifest Version**: Bumps version to `0.2.1`. - **Unit Tests**: Full test suite covering dynamic vehicle swaps and async entity setup.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jrittenh/ha-myride!6
No description provided.