Volvo2Mqtt: Connect your AAOS Volvo 🚙

Thanks for this great add-on. However, I can only see a few sensors in home-assistant. When looking at the logs from volvo2mqtt, I see a fair amount of

volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  
                        "status": 401,
                        "error": {  
                            "message": "Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application."
                        }
                    }

The strange thing is that other request seem to work (eg the odometer, distance to empty battery, the image entities, etc). Other sensors also seem to work but give Unknown as a value. When checking the values via developer.volvocars.com I do see the correct values (and can also retrieve the sensors that generate an error message in volvo2mqtt). I’ve waited for a few days now, but everything stays the same. Can anyone help me with this?

1 Like

Hi, could anyone that has this working on unraid help with my config?

Anyone else has this problem? As of yesterday the addon logs starting to show this:

Jan 19 06:15:20 volvo2mqtt [106] - ERROR: API Call failed. Status Code: 401. Error: {
“error” : {
“message” : “Unauthorized”,
“description” : “Full authentication is required to access this resource”
}
}

I has been working find for a time and this came suddenly without any configuration changes


can someone help me, i feel quite dumb now.
what is the problem by the setup?
Failed to save add-on configuration, does not match regular expression ^([a-zA-Z0-9_.±]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)|(+\d{5,20})$. Got {‘updateInterval’: 300, ‘babelLocale’: ‘hu_HU’, ‘TZ’: ‘Europe/Budapest’, ‘debug’: False, ‘disable_logging’: False, ‘mqtt’: {‘broker’: ‘auto_broker’, ‘port’: ‘auto_port’, ‘username’: ‘auto_user’, ‘password’: ‘auto_password’}, ‘volvoData’: {‘username’: , ‘password’: ‘’, ‘vin’: ‘’, ‘vccapikey’: , ‘odometerMultiplier’: 1, ‘averageSpeedDivider’: 1, ‘averageFuelConsumptionMultiplier’: 1}}

I have now got this running, i just dont get any entities in mqtt

Okay I get 2 entitities, interior and exterior image of the car, but these are very hit and miss.

Did you get this working? Looks as though youve got extra double quote marks

Did you get this working in the end? I’m just setting it up and am getting the same error. I assume I managed to lock mine due to using the API portal password initially rather than the Volvo app one.

1 Like

Can tou somehow send a command to the car to force it to update the VOC values? My V60 T8 has such a delay that uou can’t trust that the values presented are current.

Still fighting with the invalid VCC-API-KEY issue.
These are the steps I have done:

  • Log in to Account | Volvo Cars Developer Portal via Github account
  • Create an API application and I got two API keys (primary and secondary)
  • Status is testing - according to some comments I do not need to publish this
  • I installed the add-on in Home Assistant and configured like this:
username: my mail used for Volvo App on iPhone - without any Quotes
password: my password used on Volvo App - without any Quotes
vin: ""
vccapikey:
  - 4a1753c3-blabla
  - 9689f3bff35-blabla
odometerMultiplier: 1
averageSpeedDivider: 1
averageFuelConsumptionMultiplier: 1

The I start the add-on and get this:

Jan 25 13:37:04 volvo2mqtt [106] - ERROR: API Call failed. Status Code: 401. Error: {  
                        "status": 401,
                        "error": {  
                            "message": "Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application."
                        }
                    }
Jan 25 13:37:04 volvo2mqtt [106] - INFO: Failed, Tire Rear Right is unfortunately not supported by your vehicle.
Jan 25 13:37:04 volvo2mqtt [106] - INFO: Success! Engine State is supported by your vehicle.
Jan 25 13:37:04 volvo2mqtt [106] - ERROR: API Call failed. Status Code: 401. Error: {  
                        "status": 401,
                        "error": {  
                            "message": "Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application."
                        }
                    }
Jan 25 13:37:04 volvo2mqtt [106] - INFO: Failed, Fuel Level is unfortunately not supported by your vehicle.
Jan 25 13:37:04 volvo2mqtt [106] - ERROR: API Call failed. Status Code: 401. Error: {  
                        "status": 401,
                        "error": {  
                            "message": "Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application."
                        }
                    }

after a restart of the add-on I get this:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Jan 25 14:15:38 volvo2mqtt [106] - INFO: Starting volvo2mqtt version v1.8.26
Jan 25 14:15:38 volvo2mqtt [106] - WARNING: VCCAPIKEY 4a1753c3c-blablac isn't working! Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.
Jan 25 14:15:38 volvo2mqtt [106] - WARNING: VCCAPIKEY 9689f3bff-blabla isn't working! Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.
Jan 25 14:15:38 volvo2mqtt [106] - WARNING: No working VCCAPIKEY found, waiting 10 minutes. Then trying again!

and so on
 No data


I waited now several days - no change. I created a new application - no change


What is wrong? Car/account is in Germany, I can log into my Volvo Account via the credentials of the app.

thanks for any suggestion

1 Like

I am sure I was getting that message and it was because I hadn’t completed the babel/locale section correctly in the Options at the top of the configuration.

I have tried both “de_DE” and “en_EN” for babel/locale.
Timezone is set to “Europe/Berlin”

From the list IBM Documentation

de_DE should work but for uk it is en_GB

you are right - en_GB
I just tried, but also no success

One addition:
In the description of the API there is a statement:

Create your own application with up to 10,000 API calls per day. To start with, you will be able to interact with a virtual car or with your own car(s) via Volvo ID. To access end-user cars you need to publish your application.

How does the API know, which cars belong to me? I connected to my Github Account - no link to my car or my Volvo ID.
Is there an additional step necessary?

You are providing your volvo car app credentials in the HA add on config. This is used in the API to fetch your car info.
With that said I also had a lot of issues before I got my API to work. I am not totally sure what solved it in the end
 But have you approved to share your data in the Volvo Car app under privacy settings? (


I think this was what solved my problems
 But would be nice if someone could confirm that this is an requirement or not.

I’m in Australia so maybe that’s the problem. I have tried all the fixes and suggestions above but nothing works for me. Always says VCC-API-KEY is invalid initially then eventually it works but Volvo2mqtt breaks when it finally gets down to the update_loop. I have attached a log output in case someone knows whats going on.

|date|            stream|content|
|---|---|---|
|2024-01-26 01:30:30|stderr|}|
|2024-01-26 01:30:30|stderr|  }|
|2024-01-26 01:30:30|stderr|    description : Does not belong to allowed markets|
|2024-01-26 01:30:30|stderr|    message : NOT_FOUND,|
|2024-01-26 01:30:30|stderr|  error : {|
|2024-01-26 01:30:30|stderr|Exception: Getting vehicle details failed. Status Code: 404. Error: {|
|2024-01-26 01:30:30|stderr|    raise Exception(Getting vehicle details failed. Status Code:  + str(response.status_code) +|
|2024-01-26 01:30:30|stderr|  File /volvoAAOS2mqtt/volvo.py, line 235, in get_vehicle_details|
|2024-01-26 01:30:30|stderr|    device = volvo.get_vehicle_details(vin)|
|2024-01-26 01:30:30|stderr|  File /volvoAAOS2mqtt/mqtt.py, line 350, in create_ha_devices|
|2024-01-26 01:30:30|stderr|    create_ha_devices()|
|2024-01-26 01:30:30|stderr|  File /volvoAAOS2mqtt/mqtt.py, line 222, in update_loop|
|2024-01-26 01:30:30|stderr|    update_loop()|
|2024-01-26 01:30:30|stderr|  File /volvoAAOS2mqtt/./main.py, line 16, in <module>|
|2024-01-26 01:30:30|stderr|Traceback (most recent call last):|
|2024-01-26 01:30:30|stdout|Jan 26 12:30:30 volvo2mqtt [1] - INFO: Failed, Warnings is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:30|stdout|                    }|
|2024-01-26 01:30:30|stdout|                        }|
|2024-01-26 01:30:30|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:30|stdout|                        error: {  |
|2024-01-26 01:30:30|stdout|                        status: 401,|
|2024-01-26 01:30:30|stdout|Jan 26 12:30:30 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - INFO: Success! Update Interval is supported by your vehicle.|
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - INFO: Success! API Backend status is supported by your vehicle.|
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - INFO: Failed, Washer Fluid Level warning is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:29|stdout|                    }|
|2024-01-26 01:30:29|stdout|                        }|
|2024-01-26 01:30:29|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:29|stdout|                        error: {  |
|2024-01-26 01:30:29|stdout|                        status: 401,|
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - INFO: Failed, Service warning status is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:29|stdout|                    }|
|2024-01-26 01:30:29|stdout|                        }|
|2024-01-26 01:30:29|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:29|stdout|                        error: {  |
|2024-01-26 01:30:29|stdout|                        status: 401,|
|2024-01-26 01:30:29|stdout|Jan 26 12:30:29 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Time to Service is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Distance to Service is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Hours to Service is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|}|
|2024-01-26 01:30:28|stdout|  }|
|2024-01-26 01:30:28|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:28|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:28|stdout|  error : {|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Average Speed is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Distance to Empty Battery is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Distance to Empty Tank is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Average Energy Consumption is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - INFO: Failed, Average Fuel Consumption is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:28|stdout|                    }|
|2024-01-26 01:30:28|stdout|                        }|
|2024-01-26 01:30:28|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:28|stdout|                        error: {  |
|2024-01-26 01:30:28|stdout|                        status: 401,|
|2024-01-26 01:30:28|stdout|Jan 26 12:30:28 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Fuel Level is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Engine State is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|}|
|2024-01-26 01:30:27|stdout|  }|
|2024-01-26 01:30:27|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:27|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:27|stdout|  error : {|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Tire Rear Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Tire Rear Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Tire Front Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Tire Front Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - INFO: Failed, Location is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:27 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Success! Force Update Data is supported by your vehicle.|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Lock state is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Success! Air Conditioning is supported by your vehicle.|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Sunroof is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Tank Lid is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:27|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Engine Hood is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:27|stdout|                    }|
|2024-01-26 01:30:27|stdout|                        }|
|2024-01-26 01:30:27|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:27|stdout|                        error: {  |
|2024-01-26 01:30:27|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Tailgate is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Door Rear Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Door Rear Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Door Front Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Door Front Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Window Rear Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Window Rear Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Window Front Right is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - INFO: Failed, Window Front Left is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:26|stdout|                    }|
|2024-01-26 01:30:26|stdout|                        }|
|2024-01-26 01:30:26|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:26|stdout|                        error: {  |
|2024-01-26 01:30:26|stdout|                        status: 401,|
|2024-01-26 01:30:26|stdout|Jan 26 12:30:26 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Success! Active schedules is supported by your vehicle.|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Success! Last Data Update is supported by your vehicle.|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Odometer is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|                    }|
|2024-01-26 01:30:25|stdout|                        }|
|2024-01-26 01:30:25|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:25|stdout|                        error: {  |
|2024-01-26 01:30:25|stdout|                        status: 401,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Estimated Charging Finish Time is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Charging Connection Status is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Charging System Status is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Estimated Charging Time is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Electric Range is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Battery Charge Level is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|                    }|
|2024-01-26 01:30:25|stdout|                        }|
|2024-01-26 01:30:25|stdout|                            message: Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:30:25|stdout|                        error: {  |
|2024-01-26 01:30:25|stdout|                        status: 401,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 401. Error: {  |
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - INFO: Failed, Battery Charge Level is unfortunately not supported by your vehicle.|
|2024-01-26 01:30:25|stdout|}|
|2024-01-26 01:30:25|stdout|  }|
|2024-01-26 01:30:25|stdout|    description : Does not belong to allowed markets|
|2024-01-26 01:30:25|stdout|    message : NOT_FOUND,|
|2024-01-26 01:30:25|stdout|  error : {|
|2024-01-26 01:30:25|stdout|  operationId : 766bcac0-c396-49e1-9e49-bf0d23290acf,|
|2024-01-26 01:30:25|stdout|  status : 404,|
|2024-01-26 01:30:25|stdout|Jan 26 12:30:25 volvo2mqtt [1] - ERROR: API Call failed. Status Code: 404. Error: {|
|2024-01-26 01:30:24|stdout|Jan 26 12:30:24 volvo2mqtt [1] - INFO: Vin: ['LYVUZxxxxxxxx3012'] found!|
|2024-01-26 01:30:24|stdout|Jan 26 12:30:24 volvo2mqtt [1] - INFO: Using VCCAPIKEY: 6c14ba459xxxxxxxxxx9dac3c|
|2024-01-26 01:30:22|stdout|Jan 26 12:30:22 volvo2mqtt [1] - INFO: Starting volvo2mqtt version v1.8.26|
|2024-01-26 01:29:40|stdout|Jan 26 12:29:40 volvo2mqtt [1] - WARNING: No working VCCAPIKEY found, waiting 10 minutes. Then trying again!|
|2024-01-26 01:29:40|stdout|Jan 26 12:29:40 volvo2mqtt [1] - WARNING: VCCAPIKEY 6c14ba45942cxxxxxxxxxxa9dac3c isn't working! Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.|
|2024-01-26 01:29:38|stdout|Jan 26 12:29:38 volvo2mqtt [1] - INFO: Starting volvo2mqtt version v1.8.26|
1 Like

To my knowledge, the API doesn’t work in Aus any longer. Mine stopped working weeks ago with this error :
“message” : “NOT_FOUND”,
“description” : “Does not belong to allowed markets”

I have the the exact same problem. From Sweden.
In the Volvo developer portal I can see that volvo2mqtt is making API calls since I get “Request today”.
I am using a Primary key from three different API applications.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Jan 26 07:15:20 volvo2mqtt [106] - INFO: Starting volvo2mqtt version v1.8.26
Jan 26 07:15:21 volvo2mqtt [106] - WARNING: VCCAPIKEY f595d82ff8fa4xxxxxca4dcfa7c28cb7 isn't working! Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.
Jan 26 07:15:21 volvo2mqtt [106] - WARNING: VCCAPIKEY ec0fc45292854exxxxxa3fc22ac47 isn't working! Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.
Jan 26 07:15:21 volvo2mqtt [106] - INFO: Using VCCAPIKEY: 2c4c64a47xxxxxx49126ae50c271e7
Traceback (most recent call last):
  File "/volvoAAOS2mqtt/main.py", line 15, in <module>
    authorize()
  File "/volvoAAOS2mqtt/volvo.py", line 56, in authorize
    get_vehicles()
  File "/volvoAAOS2mqtt/volvo.py", line 106, in get_vehicles
    raise Exception(
Exception: Error getting vehicles: 401. Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Whats weird is that I only seeing the last key being used in the Volvo developer portal
If volvo2mqtt is trying to use each key shouldn’t all keys be tested?

Yes I was getting the same behavior, I tried multiple primary keys from multiple API applications that I created and it would test several as invalid and then use one of them but give multiple invalid key messages when doing the api calls. I’m also getting the “requests today” count increasing.