flobz / psacc-ha

psa_car_controller addons for Home Assistant
GNU General Public License v3.0
42 stars 44 forks source link

Vin not recognised, and other issues #24

Closed markjsmith closed 2 years ago

markjsmith commented 2 years ago

Hi, Can you help with this? Suggests I post here? It shows 2 vin numbers! Only one car

`Containerised psa_car_controller loading... 2022-06-24 18:51:09,290 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VXKUPHNKKL 2022-06-24 18:51:10,089 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VXKUPHNKKL 2022-06-24 18:51:10,090 :: INFO :: ["{'vin': 'VXKUPHNKKLxxxxxx', 'vehicle_id': 'xxxxxxxxxxxxxxx', 'label': 'unknown', 'brand': 'C', 'abrp_name': None, 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 30}", "{'vin': 'VXKUKZKXZMWxxxxxxx', 'vehicle_id': 'xxxxxxxxxxxxx', 'label': 'Mokka-e', 'brand': 'C', 'abrp_name': 'opel:mokkae:20:48', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"] 2022-06-24 18:51:10,784 :: INFO :: save config change 2022-06-24 18:51:10,950 :: INFO :: ask wakeup to VXKUPHNKKLxxxxxxxx 2022-06-24 18:51:10,950 :: INFO :: topic: psa/RemoteServices/from/cid/OV-ACNT200007613307/VehCharge/state: {'action': 'state'} 2022-06-24 18:51:10,961 :: WARNING :: Can't get language 2022-06-24 18:51:11,146 :: INFO :: Connected with result code {'session present': 0} 2022-06-24 18:51:11,147 :: INFO :: subscribe to psa/RemoteServices/to/cid/OV-ACNT200007613307/# 2022-06-24 18:51:11,147 :: INFO :: subscribe to psa/RemoteServices/events/MPHRTServices/VXKUPHNKKLxxxxxx 2022-06-24 18:51:11,147 :: INFO :: subscribe to psa/RemoteServices/events/MPHRTServices/VXKUKZKXZMWxxxxxx 2022-06-24 18:51:11,379 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/OV-ACNT200007613307/VehCharge/state b'{"resp_date":"2022-06-24T17:51:11Z","vin":"VXKUPHNKKLxxxxx","correlation_id":"xxxxxxxxx","return_code":"400","reason":"[authorization.denied.cvs.response.no.matching.service.key]"}' 2022-06-24 18:51:11,399 :: INFO :: update_data 2022-06-24 18:51:11,400 :: ERROR :: refresh_vehicle_info: Traceback (most recent call last): File "/psa_car_controller/my_psacc.py", line 119, in __refresh_vehicle_info self.get_vehicle_info(car.vin) File "/psa_car_controller/my_psacc.py", line 104, in get_vehicle_info car.status = res File "/psa_car_controller/libs/car.py", line 80, in status self._status.correct() File "/psa_car_controller/libs/car_status.py", line 28, in correct if len(self._energy) == 2 and self._energy[0].type != 'Electric': TypeError: object of type 'NoneType' has no len()

flobz commented 2 years ago

open an issue here : https://github.com/flobz/psa_car_controller/issues