just updated to version 4296d0b. great work!
I’m from the UK and this is what I can see in the logs:
Logger: aiohttp.server
Source: custom_components/mbapi2020/client.py:67
First occurred: 1:20:55 (3 occurrences)
Last logged: 8:32:38
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 155, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/mbapi2020/config_flow.py", line 62, in async_step_user
client = Client(session=session, hass=self.hass, config_entry=config_entry)
File "/config/custom_components/mbapi2020/client.py", line 67, in __init__
if self._config_entry.options:
AttributeError: 'dict' object has no attribute 'options'
Its a bug that I integrated last night. Give me some minutes.
Hi,
please pull the latest code or refresh in HACS. Bug should be fixed.
Sorry
BR
Rene
Now works perfectly!! Thank you so much
This is great thank you. I can finally retire my janky node red flow.
Working in Ireland. I did have an issue where it would pull in my 2 cars as devices but not create any entities. One of my cars is not enabled for mercedes me (but registered to my account) so I excluded this and updated my country in the option and my entities were then created.
Is not in add-ons
Try in HACS, Integrations, Custom repositories (tree dots in uper right corner)
As a smart fortwo EQ owner, I am following this thread because my car is visible in
my mercedes.me account! I installed your component without issues and everything looks fine, although I do not get any entities. If you have a spare moment, could you look if it is possible to support the Smart Cars? Ofcourse if I can help or test, please let me know! Thank you!
@ReneNulschDE fyi so far looking really good! a small error fyi:
Logger: custom_components.mbapi2020.client
Source: custom_components/mbapi2020/client.py:175
Integration: MercedesME 2020 (documentation, issues)
First occurred: 0:22:45 (1 occurrences)
Last logged: 0:22:45
Error with the websocket connection: Received message 257:None is not bytes
I even managed to get a small card up already ;-). Keep up the good work!
any chance you could share your card setup? it looks nice
Hi,
I will, give me a bit of time to clean it up a bit and make it better ;-). I will post it in this forum.
your work is very great!
Great work! Works good with an E300de and I can throw away the Node-RED implementation.
The new version is working great with my C300de as well.
The only question I have is how to interpret the state values of the attribute chargingstatus in the range_electric sensor. Maybe I’ve overlooked it, but I could not find any description.
At the moment the state is 3 = charging finished(?). The mercedes me app describes the status as “charging cable disconnected”.
Edit:
I discovered the values on my car by comparing with the app:
chargingstatus = 0 means charging
chargingstatus = 1 means charging finished
chargingstatus = 2 ?? unknown
chargingstatus = 3 means charging cable disconnected
@ReneNulschDE - It will work for US region and for 2017 vehicles ? What are the minimum requirements ?!
Thank you.
I guess the minimum requirement would be that you can use the Mercedes Me app to access your car’s data.
@robertklep -
Mercedes US Region has two different apps/platforms for different years models (excluding 2013-2015 witch is using first version of mbrace):
- 2016 to 1018 is using Mercedes ME - mbrace for 2016-2018 Models | Mercedes-Benz USA (mbusa.com)
- 2019 to present is using Mercedes me connect - Mercedes me connect | Mercedes-Benz USA (mbusa.com)
So my question was if mbrace for 2016-2018 vehicules will work with this component.
Also - to answer to your statement - Yes - I can access my vehicle’s data with my Mercedes ME app for mbrace but my goal is to integrate my 2017 GLS450’s data into my HA - if possible.
Thanks.
I have a 2016/17 c350e and it works fine for me…
Hi @DerekO -
Perfect - great news - are you in US region ?
After I have installed the custom repo under HACS - and installed the integration under Configuration > Integrations - this is what I see:
It is there something that needs to be done prior ? I have followed all the integration install/config instructions line by line…