@ashishtank Hi! Unfortunatly it didn’t :/ Mercedes are looking at this matter and they will get back to me normally on Monday.
Thanks again for your help and I’ll keep you informed!
@ashishtank Hi! Unfortunatly it didn’t :/ Mercedes are looking at this matter and they will get back to me normally on Monday.
Thanks again for your help and I’ll keep you informed!
@ashishtank Remove and did a brand new app on console. Removed tokens.json and reboot…Same problem
There is one thing that is on your step (Right from step 1) saying:
AUTH CALLBACK URL: http://localhost
Where that needs to be introduced?
Not working…But it seems that the Bearer is not generated properly. If I try the test curl provided by the Mercedes Dev, it does work…
Thanks! Great that YOU point it out! I cheated a bit and directly put the “fuel” on the URL as so
https://developer.mercedes-benz.com/products/fuel_status/get_access?pm=free
I just added it and I’ll try now.
@ashishtank Thanks for the reply!
I have erased token and reboot it with Diesel…Still the same issue but this time it goes to the correct URL
[08.04.2021 13:38.22.939] [LOG] Handle OAuth request
[08.04.2021 13:38.22.946] [LOG] https://id.mercedes-benz.com/as/authorization.oauth2?response_type=code&client_id=c****************4a&&redirect_uri=http://localhost:8080/MMM-MercedesMe/callback&scope=mb:vehicle:mbdata:vehiclestatus offline_access&state=d*************************e
[08.04.2021 13:38.25.124] [INFO] Newsfeed-Fetcher: Broadcasting 66 items.
[08.04.2021 13:38.26.049] [LOG] Handle OAuth callback
[08.04.2021 13:38.26.982] [LOG] OAuth callback Success
[08.04.2021 13:38.34.388] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/W1****************9/containers/fuelstatus
[08.04.2021 13:38.35.647] [LOG] 403 - Forbidden
It is still saying error 403
@ashishtank Just one thing that I saw…Step 7 has your Client ID and Secret uncovered. I highly recommend to blur it if it’s still an active account :/
@ashishtank Thanks for your reply!
I think I was looking the finger instead of the sky…I found the issue but couldn’t resolve it. It request EV while I have a petrol (But my config as you saw earlier was correct). On the logs I have that part saying:
[07.04.2021 22:13.34.301] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/W1************9/containers/electricvehicle
Then I missed that part (That I thought was for another modules):
[07.04.2021 22:13.34.785] [LOG] 403 - Forbidden
On request it says:
[07.04.2021 21:53.39.767] [LOG] Handle OAuth request
[07.04.2021 21:53.39.784] [LOG] https://id.mercedes-benz.com/as/authorization.oauth2?response_type=code&client_id=d***********eb&&redirect_uri=http://localhost:8080/MMM-MercedesMe/callback&scope=mb:vehicle:mbdata:vehiclestatus offline_access&state=7********************************f
[07.04.2021 21:53.41.314] [LOG] Handle OAuth callback
[07.04.2021 21:53.41.844] [LOG] OAuth callback Success
Meaning that now the token is indeed good but it request EV status rather then the rangeliquid and tankvalue (as mentioned here: https://developer.mercedes-benz.com/products/fuel_status/docs). M’I missing something?
Hi @ashishtank
Yes I did reboot and it ask to authenticate everytime that I reboot it. I have to click on it then it goes blank page and the picture I’ve sent appear