For multi-vehicle accounts, the Controller needs to know/update what the current VIN is since all Subaru API calls are made without reference to a VIN. VIN is set by selectVehicle.json. Current vehicle is returned by login.json as currentVehicleIndex. This only needs to be called if the Controller is making an API call to a VIN that is not the current VIN. It may happen frequently with HomeAssistant users controlling multiple vehicles, so this must be fixed prior to the next release (which currently works because it naively calls selectVehicle.json every time).
For multi-vehicle accounts, the Controller needs to know/update what the current VIN is since all Subaru API calls are made without reference to a VIN. VIN is set by
selectVehicle.json
. Current vehicle is returned bylogin.json
ascurrentVehicleIndex
. This only needs to be called if the Controller is making an API call to a VIN that is not the current VIN. It may happen frequently with HomeAssistant users controlling multiple vehicles, so this must be fixed prior to the next release (which currently works because it naively callsselectVehicle.json
every time).