Vehicle Observation
class VehicleObservation(val vehicle_: Vehicle, api: VehicleApi, pollInterval: Duration = Duration.ofMinutes(5)) : AutoCloseable
Periodically polls VehicleApi.getStatus and exposes the latest VehicleStatus as a StateFlow.
Create via rsdev.ovh.weconnect.WeConnect.observe, then call start to begin polling. Collect status to receive updates.
Parameters
vehicle_
the vehicle to observe
api
the API client used for status polling
poll Interval
time between successive polls (default: 5 minutes)