Mercedes Me (Connected Vehicle)
Moderator: leecollings
-
- Posts: 32
- Joined: Monday 20 March 2017 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Mercedes Me (Connected Vehicle)
hi All,
I am a proud owner of a new 2021 C-class
I have setup a developer account and followed all the steps.
however I keep getting errors in my logs of domoticz (have it set to run every minute).
as you can see below the errors are different every minute and I have no clue what is going wrong as the behavior is different every minute.
anybody with a clue?
2021-11-01 20:34:27.004 Error: Mercedes: Failed to get resource data readingLampFrontRight.
2021-11-01 20:37:28.879 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:38:32.180 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:38:32.180 Error: Mercedes: Failed to get resource data rangeliquid.
2021-11-01 20:39:32.747 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:39:32.748 Error: Mercedes: Failed to get data vehiclelockstatus.
2021-11-01 20:39:32.927 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:39:32.927 Error: Mercedes: Failed to get data payasyoudrive.
2021-11-01 20:40:34.028 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:40:34.028 Error: Mercedes: Failed to get data payasyoudrive.
2021-11-01 20:41:35.621 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:41:35.621 Error: Mercedes: Failed to get resource data positionHeading.
2021-11-01 20:42:36.749 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:42:36.749 Error: Mercedes: Failed to get resource data doorlockstatusgas.
2021-11-01 20:43:37.297 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:43:37.297 Error: Mercedes: Failed to get data vehiclelockstatus.
2021-11-01 20:44:38.382 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.639 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.992 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.992 Error: Mercedes: Failed to get data vehiclelockstatus.
ps I am running Version: 2021.1 on Ubuntu.
I am a proud owner of a new 2021 C-class
I have setup a developer account and followed all the steps.
however I keep getting errors in my logs of domoticz (have it set to run every minute).
as you can see below the errors are different every minute and I have no clue what is going wrong as the behavior is different every minute.
anybody with a clue?
2021-11-01 20:34:27.004 Error: Mercedes: Failed to get resource data readingLampFrontRight.
2021-11-01 20:37:28.879 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:38:32.180 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:38:32.180 Error: Mercedes: Failed to get resource data rangeliquid.
2021-11-01 20:39:32.747 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:39:32.748 Error: Mercedes: Failed to get data vehiclelockstatus.
2021-11-01 20:39:32.927 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:39:32.927 Error: Mercedes: Failed to get data payasyoudrive.
2021-11-01 20:40:34.028 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:40:34.028 Error: Mercedes: Failed to get data payasyoudrive.
2021-11-01 20:41:35.621 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:41:35.621 Error: Mercedes: Failed to get resource data positionHeading.
2021-11-01 20:42:36.749 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:42:36.749 Error: Mercedes: Failed to get resource data doorlockstatusgas.
2021-11-01 20:43:37.297 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:43:37.297 Error: Mercedes: Failed to get data vehiclelockstatus.
2021-11-01 20:44:38.382 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.639 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.992 Error: Mercedes: Failed to perform GET request (403)!
2021-11-01 20:44:38.992 Error: Mercedes: Failed to get data vehiclelockstatus.
ps I am running Version: 2021.1 on Ubuntu.
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
A 403 code means Access Denied…
Check the log if the module has successfully retrieved an Access Token (which I think it did otherwise also other errors should be visible). To be sure.
If it did get an Access Token, then probably you did not get access to certain information/API’s because either you have not activated them or during sign-in you haven’t requested all corresponding claims.
Make sure all API’s are active and claimed.
Check the log if the module has successfully retrieved an Access Token (which I think it did otherwise also other errors should be visible). To be sure.
If it did get an Access Token, then probably you did not get access to certain information/API’s because either you have not activated them or during sign-in you haven’t requested all corresponding claims.
Make sure all API’s are active and claimed.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 32
- Joined: Monday 20 March 2017 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Mercedes Me (Connected Vehicle)
Hi thanks for responding,
As I receive data, I assume my access token is working
I used this url to get the correct claims:
https://id.mercedes-benz.com/as/authori ... %20consent
and within the developer portal I have added the following products to my project:
Electric Vehicle Status
Fuel Status
Pay As You Drive Insurance
Vehicle Lock Status
Vehicle Status
all with the OAuth Credentials (Authorization Code Flow) and BYOCAR
looking into my latest logs I still get some errors know and then, however that is not everytime the data is being polled, and sometimes I get a 401, and other times a 502 error message...
2021-11-03 10:02:43.270 Error: Mercedes: Failed to perform GET request (401)!
2021-11-03 10:10:55.696 Error: Mercedes: Failed to perform GET request (502)!
2021-11-03 10:10:55.696 Error: Mercedes: Failed to get resource data odo.
so can anyone explain what is causing this?
As I receive data, I assume my access token is working
I used this url to get the correct claims:
https://id.mercedes-benz.com/as/authori ... %20consent
and within the developer portal I have added the following products to my project:
Electric Vehicle Status
Fuel Status
Pay As You Drive Insurance
Vehicle Lock Status
Vehicle Status
all with the OAuth Credentials (Authorization Code Flow) and BYOCAR
looking into my latest logs I still get some errors know and then, however that is not everytime the data is being polled, and sometimes I get a 401, and other times a 502 error message...
2021-11-03 10:02:43.270 Error: Mercedes: Failed to perform GET request (401)!
2021-11-03 10:10:55.696 Error: Mercedes: Failed to perform GET request (502)!
2021-11-03 10:10:55.696 Error: Mercedes: Failed to get resource data odo.
so can anyone explain what is causing this?
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
Hi @K0enH,
Looking at the info provide, it looks you are doing everything correctly
So I took a look at my own logs and see exactly the same messages appearing. I see that some sensors are still frequently updated, but some are not.
Didn't spend the time (yet) to figure out if the sensors that are not update are related to 1 or more specific API's (Vehicle Lock Status, etc.), but it sure looks that way. I guess that some API's are not behaving as they should (unless Mercedes changed things that we are not yet aware of) or maybe the proxies in front are misbehaving or something along those lines.
Hopefully Mercedes does see these errors as well (they are the ones returning these response codes so they could/should, so hopefully @mbdeveloper is reading along ) and will react on it.
The API status does not show any issues at the moment.
Looking at the info provide, it looks you are doing everything correctly
So I took a look at my own logs and see exactly the same messages appearing. I see that some sensors are still frequently updated, but some are not.
Didn't spend the time (yet) to figure out if the sensors that are not update are related to 1 or more specific API's (Vehicle Lock Status, etc.), but it sure looks that way. I guess that some API's are not behaving as they should (unless Mercedes changed things that we are not yet aware of) or maybe the proxies in front are misbehaving or something along those lines.
Hopefully Mercedes does see these errors as well (they are the ones returning these response codes so they could/should, so hopefully @mbdeveloper is reading along ) and will react on it.
The API status does not show any issues at the moment.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 32
- Joined: Monday 20 March 2017 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Mercedes Me (Connected Vehicle)
thanks for explaining @ kidigital!
are you also aware if the location status issue is still applicable?
eg the state device in domoticz only shows value (0) Not Home.
and read in this topic earlier that this was due to the fact that Mercedes was not providing the location correctly!?
are you also aware if the location status issue is still applicable?
eg the state device in domoticz only shows value (0) Not Home.
and read in this topic earlier that this was due to the fact that Mercedes was not providing the location correctly!?
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
Indeed, currently the API does not provide any location information. The Mercedes module uses the eVehicle framework which has a ‘Home’ location but that is not something that can be populated at the moment.
There is a feature request outstanding at Mercedes to at least provide the ‘area’ information (as one can currently define in the MercedesMe app). But if/when is not defined…
There is a feature request outstanding at Mercedes to at least provide the ‘area’ information (as one can currently define in the MercedesMe app). But if/when is not defined…
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
can someone help me out
I still got this error steps i did
register a app
Get client id en secret.
Go to the url with the client id
logged in with my account
Get a authentication code
Paste ID:Secret into domotoicz
PAste auth into domoticz
into Me settings remote retrevale is active
I already try 3 different auth codes
I still got this error steps i did
register a app
Get client id en secret.
Go to the url with the client id
logged in with my account
Get a authentication code
Paste ID:Secret into domotoicz
PAste auth into domoticz
into Me settings remote retrevale is active
I already try 3 different auth codes
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Mercedes Me (Connected Vehicle)
It seems that somehow the code is not accepted as a valid code.
Make sure you have activated all (5) API’s. Can you show a screenshot of the Mercedes Dev portal with all your licenses? (Like at the top of this post)
Make sure you have activated all (5) API’s. Can you show a screenshot of the Mercedes Dev portal with all your licenses? (Like at the top of this post)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
hello
here is a screenshot of the dev console.
I try to remove the spec module but cannot do this because it's still pending.
here is a screenshot of the dev console.
I try to remove the spec module but cannot do this because it's still pending.
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
i just made a new project with only the 5 products.
Register en create my token.
Still a error but now a 401 instead of a 400
Try it with postman but also a connection refused
Register en create my token.
Still a error but now a 401 instead of a 400
Code: Select all
2022-02-28 15:49:54.198 Status: Mercedes: Worker stopped...
2022-02-28 15:49:54.199 Status: Mercedes: Using Domoticz home location as car's home location.
2022-02-28 15:49:54.199 Status: Mercedes: Worker started...
2022-02-28 15:49:55.199 Mercedes: Attempting login (using provided Authorization code).
2022-02-28 15:49:55.567 Status: Mercedes: Received 401.. During authorisation proces. Aborting!
2022-02-28 15:49:55.567 Error: Mercedes: Failed to get token.
2022-02-28 15:49:55.567 Error: Mercedes: Login unsuccessful!
2022-02-28 15:49:56.567 Mercedes: Attempting login (using provided Authorization code).
2022-02-28 15:49:56.767 Status: Mercedes: Received 401.. During authorisation proces. Aborting!
2022-02-28 15:49:56.767 Error: Mercedes: Failed to get token.
2022-02-28 15:49:56.767 Error: Mercedes: Login unsuccessful!
2022-02-28 15:49:57.767 Mercedes: Attempting login (using provided Authorization code).
2022-02-28 15:49:57.956 Status: Mercedes: Received 401.. During authorisation proces. Aborting!
2022-02-28 15:49:57.956 Error: Mercedes: Failed to get token.
2022-02-28 15:49:57.956 Error: Mercedes: Login unsuccessful!
2022-02-28 15:49:58.956 Mercedes: Attempting login (using provided Authorization code).
2022-02-28 15:49:59.146 Status: Mercedes: Received 401.. During authorisation proces. Aborting!
2022-02-28 15:49:59.146 Error: Mercedes: Failed to get token.
2022-02-28 15:49:59.146 Error: Mercedes: Login unsuccessful!
2022-02-28 15:49:59.146 Error: Mercedes: Aborting due to too many failed authentication attempts (and prevent getting blocked)!
Last edited by Gianni on Monday 28 February 2022 16:08, edited 1 time in total.
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
How does the url look like to get the token? Maybe something wrong with the claims?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
Last edited by Gianni on Sunday 21 August 2022 21:49, edited 1 time in total.
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
That look like a valid response, but I meant the URL to start the login/token procedure.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
and this is my postman token config
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
You did not replace the clientid in the URL! This should be the client ID of the new project you just created.Gianni wrote: ↑Monday 28 February 2022 16:18 heeheh here you go
https://id.mercedes-benz.com/as/authori ... %20consent
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 230
- Joined: Saturday 21 July 2018 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Home@Belgium
- Contact:
Re: Mercedes Me (Connected Vehicle)
i replaced <client id> with my client id but i removed it here to post it
- rolandbreedveld
- Posts: 156
- Joined: Wednesday 09 March 2016 11:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Contact:
Re: Mercedes Me (Connected Vehicle)
Hi
since a while I get these errors in the Domoticz log file
as you see, Battery level and others are working fine, but not all, like "vehiclelockstatus" :
vehiclelockstatus, is there in my mercedes-me console.
other stuff like automatic token refresh is working fine.
2022-06-15 10:33:12.859 Status: EQA250: Executing command: Get All states
2022-06-15 10:33:13.631 Error: EQA250: Failed to perform GET request (403)!
2022-06-15 10:33:13.631 Status: EQA250: Received 403.. Access has been denied!
2022-06-15 10:33:13.632 Error: EQA250: Failed to get data vehiclelockstatus.
2022-06-15 10:33:13.632 Status: EQA250: Access has been denied to the VehicleLockStatus data!
2022-06-15 10:33:15.923 EQA250: General/Percentage (EQA250 Battery Level)
2022-06-15 10:33:15.992 EQA250: General/Custom Sensor (EQA250 Odometer)
2022-06-15 10:33:16.055 EQA250: General/Alert (EQA250 Open Alert)
2022-06-15 10:33:16.130 EQA250: Light/Switch (EQA250 decklidstatus)
since a while I get these errors in the Domoticz log file
as you see, Battery level and others are working fine, but not all, like "vehiclelockstatus" :
vehiclelockstatus, is there in my mercedes-me console.
other stuff like automatic token refresh is working fine.
2022-06-15 10:33:12.859 Status: EQA250: Executing command: Get All states
2022-06-15 10:33:13.631 Error: EQA250: Failed to perform GET request (403)!
2022-06-15 10:33:13.631 Status: EQA250: Received 403.. Access has been denied!
2022-06-15 10:33:13.632 Error: EQA250: Failed to get data vehiclelockstatus.
2022-06-15 10:33:13.632 Status: EQA250: Access has been denied to the VehicleLockStatus data!
2022-06-15 10:33:15.923 EQA250: General/Percentage (EQA250 Battery Level)
2022-06-15 10:33:15.992 EQA250: General/Custom Sensor (EQA250 Odometer)
2022-06-15 10:33:16.055 EQA250: General/Alert (EQA250 Open Alert)
2022-06-15 10:33:16.130 EQA250: Light/Switch (EQA250 decklidstatus)
Raspberry Pi(SSD)+UPS HAT,Dashticz on WallTablet,HomeBridge, P1, HarmonyHub,FritzBox,API to 123Solar+ABB-PowerOne+SMA,ESP-Leds(flashed LSC),Tasmota,Shelly,MQTT,Mosquito,Node-Red,http://wiki.breedveld.net/index.php?title=RPiWaterMeter, Mercedes-Me
-
- Posts: 10
- Joined: Friday 12 February 2021 17:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Mercedes Me (Connected Vehicle)
Hi,
I started to get these "403, Access has been denied!" messages since Jul 1.
It has continued from there on, I don't get any data to Domoticz.
At Jul1, first, some "Received 500/503, Service not available" for ten minutest, then few timeouts to requests.
After that, "Received 403" for pretty much everything that Domoticz tries to access from Mercedes server.
Then after minute or two, "Received 400/401", and automatic re-authorization happens.
re-authorization seems to be ok, "Login credentials Refresh successful."
But, after that, only "Received 403", it has continued after that.
I did manual re-authorization few times, re-authorization seem to be ok according to log message.
I also upgraded Domoticz to latest stable version, re-authorized again, again re-authorization seems to go ok.
But...."Received 403" continues.
There were message in Mercedes site that some reconfiguration happens 28-29 Jun.
Is Domoticz Mercedes Me Connect plugin still working ok for somebody?
I started to get these "403, Access has been denied!" messages since Jul 1.
It has continued from there on, I don't get any data to Domoticz.
At Jul1, first, some "Received 500/503, Service not available" for ten minutest, then few timeouts to requests.
After that, "Received 403" for pretty much everything that Domoticz tries to access from Mercedes server.
Then after minute or two, "Received 400/401", and automatic re-authorization happens.
re-authorization seems to be ok, "Login credentials Refresh successful."
But, after that, only "Received 403", it has continued after that.
I did manual re-authorization few times, re-authorization seem to be ok according to log message.
I also upgraded Domoticz to latest stable version, re-authorized again, again re-authorization seems to go ok.
But...."Received 403" continues.
There were message in Mercedes site that some reconfiguration happens 28-29 Jun.
Is Domoticz Mercedes Me Connect plugin still working ok for somebody?
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Mercedes Me (Connected Vehicle)
Just checked and I still receive data, last data from a few hours ago.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
Who is online
Users browsing this forum: No registered users and 0 guests