Should not be a general problem. My test cars are updated. Do you use the current version? Enable the debug log. Keep it running for a while or open/close the doors/lock and send the log [email protected].
Working fine here too.
Could be that your account is blocked. Check again in 24h. Or your account has no cars assigned.
I would propose that you delete the integration. Make sure you are running the latest version. Restart HA. Add the integration again and use the new token helper to create a new token set.
I deleted the token restarted HA. Used helper to create a token and restart, Still same issue. Happend right after APP update from Mercedes authentic app,.
I will try to delete the integration and resinstall per your instructions. Thanks for your help.
With delete and reinstall, same error. Account blocked. If I remember correctly, the account will be reset at midnight (from previous fixes) Ill try it after midnight and report back. Thanks again.
NOTE: The North America region is not working since this morning.
Error: [custom_components.mbapi2020.websocket] WSS Connection blocked: 412, message='Invalid response status', url='wss://websocket.amap-prod.mobilesdk.mercedes-benz.com/v2/ws', retry in 10 seconds...
Github Issue: #315
As said, I’m on vacation and I’ll try to solve it but it will take some time…
Thank you. At least Im not nuts (well, at least not about this)
Are you in North Amerika too?
I have published a new bugfix release “v0.23.1 - Fix North America Region - Websocket Error”
Fixes:
- Error “MB-API access blocked. 412, message=‘Invalid response status’” - Region North America (Fixes: #315)
Thanks for helping us while on vacation. Your dedication is so truly appreciated. How would I survive if I couldnt press a button on my HA app to turn on my car heater when I get up. Would I actually have to open the Mercedes app like a neanderthal? NO WAY. Thanks again for all your help and dedication!
Thanks for your great work on the project.
Needed new access_token
and refresh_token
today but only had a Chromebook on my hands. Got them using Chrome and Postman like so and thought it might be helpful for others and/or a good addition to the Wiki page.
Steps:
- Open a Chromium-based browser
- Open Developer Tools (Ctrl+Shift+I), select “Network” tab and click “Doc” filter
- Load this URL:
- Enter your MB login credentials and submit
- Watch Developer Tools for a new entry named
login-callback?code=...
. Click it and keep thecode
value from the “Header” tab. - Open Postman for Web or your HTTP request tool of choice and submit a new
POST
query like so:
URL:
Headers:
Content-Type: application/x-www-form-urlencoded
Body:
grant_type:authorization_code
client_id:62778dc4-1de3-44f4-af95-115f06a3a008
code:[CODE_FROM_FIRST_STEP]
redirect_uri:rismycar://login-callback
- Copy
access_token
andrefresh_token
from the response
Anyone having to put in their 4 digit access code to lock and unlock doors? That’s new to me as of yesterday.
Time to say a heartfelt THX to the creator of the Mercedes Me Component. I now own a Mercedes EQE 300 for 4 days after having driven 2 Tesla’s for 7 years. Since 3 years I was planning the charging of the Tesla’s via HA. Moving to Mercedes made me loose a lot of integrations and some I now gained back from your integration.
I have home batteries and a dynamic electricity plan and with your integration I am now able to : a) make sure the car does not charge out of the home batteries but from the Sun or net. b) I get a warning if the Amps hit 20 and I can manually pauze or end the charing of the EQE. C) I also make the home batteries go to IDLE on charging the car and and set them back automatically to their nomal program after charging ends.
What am I missing and I believe it is not within the possibilities of the Mercedes software and your integration… if the AMPs get too high…on my Tesla integration I could tell the car to automatically lower the charging speed anywhere between 16A to 3A…am I correct that I do not have that option on the EQE component? Also…their does not seem to be a way for HA to automatically start or stop a charge via the component, correct? Anyone able to specify specific charging hours within HA? My home charger is a non internet connected Tesla Home charger.
Again very grateful for your work on this and keep up the awesome work please, Axel
Hi @Pjarbit ,
this is a normal behavior (or a limitatian of HA) - Please add your 4-digit MB-security code to the options of the component.
Hi @alexaldi ,
welcome to the club. Great to hear that you could solve some of your asks so far.
The “inofficial” API (Push API in the MB-wording) that I use for this component, has some options to manage the open points. However, I have not implemented these functions mainly because I don’t own an EQ*
There are options in an old version of the API desciption to set
- “ChargeControlConfigure” - We can set the maxChargingPower (between -100 and something unknown. -100 means 0 KW) and we can set a min soc value. I assume this is the minumum soc state to start loading. (If we set minsoc and maxsoc to 50 → charging should never happen)
- “ChargingBreakClocktimerConfigure” - Here we can define Charging breaks.
Again, this is all not implemented in the component yet and as we not have an actual api description some things may not work.
But let me know if you are open to test stuff and what has the highest priority on your list.
And this will not happen over night, I can work on this when I’m back from the summer-side of this crazy planet… end of this month. (but at least you made a wise decision with your new car )
Best
Rene
Hi @whyclaus,
thanks writing down this description. This is one of the other ways to get a token and it has given set of complexity :-), thatswhy I have not added it to the docs yet. But you should be able to provide a PR on the wiki docs too.
Hi Rene would love to help with testing stuff on my EQE 300. Maybe best to take this 1 on 1. Kind regards Axel
Enjoy the vacation.
Whishlist: 1) based on AMP values from HA I would love to lower the charging speed of my EQE until it is safely below 25A which is my max on each of the 3 Phases.
2) I would love to be able to start a charge process remotely at “best electric prices” and stop when it gets out of that window (dynamic prices).
I think here you can make some tests already. There is HA-service/action “MercedesME 2020: Charging Break Clocktimer Configure” (mbapi2020.charging_break_clocktimer_configure) where you can set charging breaks.
hhmm I believe Mercedes calls these charging breaks. Which means I can define when not to charge, but what I was looking for was a “charge now” forced start. The only thing I can do today:
a) what is my SOC (state of charge) now, let us say 50% (of a 90kwh accu)
b) to what SOC do I want to charge? Let us say 80%, or to 72 kwh
c) from 50% or 45kwh to 72% at 11kw/h speed takes roughly 2 1/2 hours.
d) if cheap charging hours are from 1:00 to 4:00 in the morning the Mercedes logic is: Do not charge between “right now” and 1:30. And specify you want to leave at 4:00 and better to also specify not to charge at 4:00 onwards.
That is what I can and must do…your action call as I understand it is “ranges when not to charge” phantastic would we “range to charge in”.
I use the charging breaks (availability depends on your car model) together with GitHub - jonasbkarlsson/ev_smart_charging: Electric vehicle smart charging for Home Assistant. to do exactly what you want to achieve.
Basically you make sure your charger is active. When you don’t want to charge, you activate a charge break. When you want to charge, you deactivate the charge break.