Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New endpoints in Energy API

FireWizard52 opened this issue · comments

@Dielee,

Hi Linus,

For your information!

  1. Volvo actually activated 2FA, today at approx. 11 h. If you log-out from your Volvo Cars app and log-in afterwards a Volvo ID-verification code has to be submitted. This code you receive by email ( maybe sms as well ??).

  2. New endpoints for new functionality in the Energy API.
    See the Energy API, but new are:

  • Get charging current limit
  • Get target battery charge level

However, these new endpoints have also new "scopes" (energy:charging_current_limit and energy:target_battery_level)
These scopes are not in the list of scopes and so I have not been able to test already.

Regards

Yeah, thanks for this information.

  1. I already developed the 2FA login for my plugin. Are you able to test the changes ?

  2. I will take a look the the new endpoints tomorrow. If they work, I will add two new sensors.

Hi Linus, you said:

I already developed the 2FA login for my plugin. Are you able to test the changes ?

I saw it, and that you wanted also testers, but as you maybe know I do not use Home Assistant and I'm not a big fan of Docker either. So I'm afraid I will not be of much help.

I work with Node RED and all my automation's are done with that, but as I push them to MQTT, more or less all Home Automation system can be used.
Regarding this 2FA I currently work in a little bit different direction.

  1. Check the output from the Volvo Server and in case the Volvo ID verification code is requested, I
  2. Check my email and
  3. Parse the verification code
  4. Put it into the verification flow on the right place.

But cannot test it yet, as Volvo ID server is not working

But let me know if the new sensors work, as my PHEV is still not supported.

Regards

Check the output from the Volvo Server and in case the Volvo ID verification code is requested, I Check my email and Parse the verification code Put it into the verification flow on the right place

This is what I have done with my last changes.

I'm happy to support with testing if needed.

@FireWizard52,
I am also using this Tool without HA and without Docker. I just used the folder src and entered my data manually in the const file. Not a big issue.

I'm also happy to Support.

The new endpoint scopes are currently not working.
Sorry guys, we have to wait.

The requested scope is invalid, unknown, malformed, or exceeds that which the client is permitted to request.

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Keep it open.

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.

Hi Dielee,

The new endpoints should be available and work now.
Would you be so kind to update the endpoints?

{
"status": 200,
"data": {
"chargingCurrentLimit": {
"value": "32",
"unit": "ampere",
"timestamp": "2024-05-17T17:42:30Z"
}
},

Hi Dielee,

The new endpoints should be available and work now. Would you be so kind to update the endpoints?

{ "status": 200, "data": { "chargingCurrentLimit": { "value": "32", "unit": "ampere", "timestamp": "2024-05-17T17:42:30Z" } },

Still does not work at my end. When generating a token for scope energy:charging_current_limit or energy:target_battery_level I still get response:

{
    "error_description": "The requested scope is invalid, unknown, malformed, or exceeds that which the client is permitted to request.",
    "error": "invalid_scope"
}

I only get it working when generating test access tokens on developer.volvocars.com