flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
383 stars 194 forks source link

New Vauxhall issue #836

Open robotfishe opened 3 months ago

robotfishe commented 3 months ago

After updating to 3.5.0 and signing in, I'm getting some data in the add-on logs but also some errors that seem like they suggest I shouldn't be able to access anything. Here's the log:

Containerised psa_car_controller loading...
2024-03-30 03:15:05,137 :: INFO :: App version 3.5.0
2024-03-30 03:15:05,947 :: INFO :: ["{'vin': '#####', 'vehicle_id': '#####', 'label': 'Mokka-e', 'brand': None, 'abrp_name': 'opel:mokkae:20:48', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
2024-03-30 03:15:06,218 :: ERROR :: remote_refresh_token isn't defined
2024-03-30 03:15:06,662 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2024-03-30 03:15:07,197 :: ERROR :: Can't refresh remote token 'access_token'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 174, in _refresh_remote_token
    self._get_remote_access_token(otp_code)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 206, in _get_remote_access_token
    self.remoteCredentials.access_token = data["access_token"]
KeyError: 'access_token'
2024-03-30 03:16:07,229 :: ERROR :: Can't configure MQTT Client
2024-03-30 03:16:07,766 :: INFO :: charging status of #####is InProgress, battery level: 49
2024-03-30 03:16:07,766 :: INFO :: ask wakeup to #####
2024-03-30 03:16:07,766 :: INFO :: topic: psa/RemoteServices/from/cid/OV-ACNT200008106368/VehCharge/state: {'action': 'state'}
2024-03-30 03:16:08,047 :: ERROR :: remote_refresh_token isn't defined
2024-03-30 03:16:08,487 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2024-03-30 03:16:08,923 :: ERROR :: Can't refresh remote token 'access_token'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 174, in _refresh_remote_token
    self._get_remote_access_token(otp_code)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 206, in _get_remote_access_token
    self.remoteCredentials.access_token = data["access_token"]
KeyError: 'access_token'
2024-03-30 03:17:08,934 :: INFO :: save config change
2024-03-30 03:17:08,935 :: WARNING :: Can't get language
2024-03-30 03:17:09,559 :: INFO :: update_data
2024-03-30 03:17:10,127 :: INFO ::  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

So, it looks like it can pull info but not request a wakeup. Is there anything I need to change in my config?

mj1985 commented 3 months ago

The remote access token is missing, maybe try to config the OTP via the UI again.