G-Two / homeassistant-subaru

Subaru STARLINK custom component for Home Assistant.
Apache License 2.0
54 stars 6 forks source link

Issues with two accounts #126

Open Tmatz27 opened 1 week ago

Tmatz27 commented 1 week ago

I have two subaru accounts linked to the Subaru integration. Initially i had no issues but after the first day I can only have a single account active at a time. The other one spits out errors and warningins into the log. Is there a way to fix this or do i need to put both vehicles into a single account? config_entry-subaru-c4acdbe7369a44b0b47f105e10849444.json `Logger: subarulink.controller Source: components/subaru/init.py:131 First occurred: 10:04:43 AM (1 occurrences) Last logged: 10:04:43 AM

HTTP 500 received when fetching vehicle information from Subaru`

`Logger: homeassistant.components.subaru Source: helpers/update_coordinator.py:344 integration: Subaru First occurred: 2:23:09 AM (3 occurrences) Last logged: 9:29:37 AM

Error fetching subaru_data data: Remote query failed. Response: {'success': False, 'errorCode': None, 'dataName': 'remoteServiceStatus', 'data': {'serviceRequestId': None, 'success': False, 'cancelled': False, 'remoteServiceType': None, 'remoteServiceState': None, 'subState': None, 'errorCode': None, 'result': None, 'updateTime': None, 'vin': None, 'errorDescription': None}} Error fetching subaru_data data: HTTP 500: {"httpCode":500,"errorCode":"error","errorMessage":"java.lang.NullPointerException - null"} RequestInfo(url=URL('https://mobileapi.prod.subarucs.com/g2v29/service/g2/remoteEngineStartSettings/fetch.json'), method='GET', headers=<CIMultiDictProxy('Host': 'mobileapi.prod.subarucs.com', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/QSR1.191030.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.185 Mobile Safari/537.36', 'Origin': 'file://', 'X-Requested-With': 'com.subaru.telematics.app.remote', 'Accept-Language': 'en-US,en;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Cookie': 'JSESSIONID=0017D18A188C394ABB5C95AFAA7248DC; X-Oracle-BMC-LBS-Route=edfba615976e065ee5f0d8b86c4407c3604656770c29ab635095bdb11c08799bcd37b371e5d984b7')>, real_url=URL('https://mobileapi.prod.subarucs.com/g2v29/service/g2/remoteEngineStartSettings/fetch.json')) Error fetching subaru_data data: aiohttp.ClientConnectionError`

stboch commented 1 week ago

@Tmatz27 You can share the car from the other account to another so they can both be controlled by one device.

Tmatz27 commented 1 week ago

Thank you for the help stboch! Didn't even know that was possible. I have both cars added now under one user but one of the cars is still giving errors for everything. Says there is no vin and won't update any of the information

Tmatz27 commented 1 week ago

It keeps coming back with an error saying invalid pin but I changed the pin on both cars to be the same and deleted the integration and readded everything