Read the statement by Michael Teeuw here.
MMM-MercedesMe
-
@kar1507 Good to know that issues is solved, may be it was temporary issue from Mercedes Api, they have some downtime every now and then. Also I noticed that you have not included offline_access scope in config ? if you do not include that then refresh token will not be generated and thus you will need to re login again and again once the access token is expirers.
-
@kar1507
cen you post a picture of the screen??? -
@ashishtank
That explains why I always had Authenticate there. I’ve added it now. Thank you very much. -
@kar1507 Nice. that is the same as over her white the electric car.
Thanks for the screen view -
Hi,
First of all Thank you for this module. I followed the full setup and unfortunately I have no update.
Here is my setup:
{ module: 'MMM-MercedesMe', position: 'bottom_left', header: 'Mercedes Fuel', config: { client_id: '**********************************************', client_secret: '**************************************************', vehicleType: 'Petrol', scope: 'mb:vehicle:mbdata:vehiclestatus offline_access', vehicleId: 'W*****************************9', displayStyle: 'twodial', updateInterval: 300000, debug: true, maxRange: 520 }
},
On the log I do have this error:
[05.04.2021 23:33.58.329] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/W**************9/containers/electricvehicle
[05.04.2021 23:33.58.575] [LOG] 403 - ForbiddenDespite it says electricvehicule the setup on MercedesMe Dev is exactly as per the instruction.
I’m a bit lost at this point.
Thank you in advance for any help!
-
-
@pyrophoenix can you please restart the mirror and check if it works ? did you login to get the token ?
-
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
-
@pyrophoenix can you delete the tokens.json file in MercedesMe directory and then restart the mirror ? it should show you login button and then you should be able to login and get token. after that check if tokens.json file is created or not…
-
@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?