Hey! I’ve managed to get it working with my EX30 on the first try. The amount of data is amazing!
On the Volvo Dev website (https://developer.volvocars.com/apis/energy/v1/overview/) they also mention that the API has access through the Charging current limit. Would there be a way to control this setting with this addon, such that I can limit my charging rate from HA? I have not found the Charging current limit entity in the module (yet).
Hi! The bad news is that the API user I’m using has no access to that value (see #101).
The good news is that I’m working on a core version where we will have access to more data. Patience is key here.
Hi. Did a reboot (due to no network connection in the car) of the screen (play/pause button) and now the integration shows the horn and blink etc.
Interesting. I effectively due a system reboot every other day due to the software issues…and hadn’t looked at the device in HA until just now and guess what?!?
Flash and Honk are back!
Hi Thomas,
Since the latest version, I’ve been getting a notification almost every week (in the integration setup) that I need to re-authenticate with my Volvo portal credentials. Additionally, about once every few weeks, I get a message saying that a new OTP code needs to be generated.
Do you have any idea what might be causing this?
Best regards,
Sietse
Hi! Could be due to timeouts. Would you be able to provide some logs from the period around the re-authentication notification?
Also make sure you don’t exceed the 10.000 requests per day limit.
Provide logs, off course. From where?
10.000 requests, I will check that
Yesterday evening at 23:54, the integration stopped working.
No API call overload (7806 calls)
Where can i get details logs?
To get logs, navigate to Settings > System > Logs
. At the top right hand side, there is a download button (arrow down). Keep in mind that this will download all logs since last restart of HA.
You can extract only the logs of interest if you know where to look. Or you can upload the entire file. Probably best to send it privately to my dropbox at https://www.dropbox.com/request/SdxkVf0OIWJCDjgcKtRj.
Ideally you enable debug logging first (System > Devices > Volvo Cars > Enable debug logging) and then wait for the issue to happen again. That provides a more detailed log.
EDIT: I’m also seeing some connection errors, but they always seem to be resolved before the token expires.
ahh check, thanks.
In the main log:
2025-05-19 21:54:02.885 ERROR (MainThread) [custom_components.volvo_cars.coordinator] 01JHA5ZM2NR60CMS2WDFTFK3SC - Authentication failed. Forbidden
NoneType: None
2025-05-19 21:54:02.892 ERROR (MainThread) [custom_components.volvo_cars.coordinator] Authentication failed while fetching 01JHA5ZM2NR60CMS2WDFTFK3SC data: Authentication failed. Forbidden
i will enable debug log Above error probably is to general.
Hi Thomas, i’ve uploaded the log!
Some strange behaviour (in my opinion)
I Think you’re right about the disconnection has something todo with the api call quota > see log
10.000 is the max per day isn’t it?
Yesterday evening again…
This time also with the new needed OTP code.
I have checkt sensor.volvo_volvoex30_api_request_count. Exactly at 21:50 (same time when quota error occurs) your entity has value 7159.
Hopefully you will be able to create a fix for this.
Thanks in advance
I have examined your logs and can’t pin point the problem yet.
The counter seems to be correct. You can count how many times “GET https://api.volvocars.com” (and “POST https://api.volvocars.com” if you also send commands) occurs in the logs.
Your log doesn’t include the full day, but if extrapolate it, it does seem to stay under 10.000 requests.
Keep in mind that the timestamp in the log is UTC, so in the HA graphs you need to add 2 hours (guessing based on your language).
Unfortunately the Volvo developer portal doesn’t show the count anymore, making it harder to know how many requests you have actually made.
I’ve also enabled debug logging for the past few days and I don’t encounter this issue. However, my interval is still at the default of 135 seconds. I’ll change it to 120 seconds like you have, and keep an eye on what’s happening.
One question though: are you using the same API key for something else as well? For instance volvo2mqtt still being active or evcc.io.
Hi Thomas,
I have used volvo2mqtt. I disabled al volvo2mqtt entities. Should this be enough to disable this connection to the Volvo portal?
No, you must disable or shutdown the add-on. Also make sure it is not set to auto-start when HA boots.
You could also create a second API key on the developer portal and use that one for this integration.
Bummer that the API doesn’t provide access to the schedule settings, because I’m also living in Belgium and it would be great to adjust the timeslot to charge with solar energy (shift timeslot based on sun shining to simulate a start stop).
It’s probably the same limitiation with start/stop charging?
The Volvo App has both schedule and start/stop optiosn so weird that the API doesn’t support this (cfr the climate start/stop)
My charger is not smart so I cannot use that