I’ve been trying, for days now, to include this horseshoe tinghy in my Car pop-screen. Unfortunately, I’m always getting an error : invalid configuration and I can’t find the issues. I nested the card into a picture-elements card, but still resulting in errors:
hello since yesterday the Mercedes 2000 integration no longer works, does it happen to you too?
I enter the data but I have no result, can you help me solve it? Tanks
I would like to know if we can extract the amount of KWh that the car has been charged with per session/day/…
Problem is that I can measure the power from my charger, ONLY, if I disconnect from the mgmt platform and connect to HA.
Same to me. Just received this error about a couple of hours ago. I have everything up and running for almost a year already. It looks like that API path is no longer a thing.
I have created a new release 0.6.0 to address this error.
unfortunatly, the release contains tons of other changes and it could be that some other problems are in the code even that I run this version on my systems since 4 weeks.
click on update information if Hacs does not show the update:
Known Problems:
LiquidRangeCritical is not reported by the MB API currently. The sensor will show unavailable or is not present when you have a fresh installation
Thanks for the prompt action on fixing this problem. I’ve just tried updating to the latest version and as you predicted there’s another problem.
File "/home/homeassistant/.homeassistant/custom_components/mbapi2020/__init__.py", line 23, in <module>
from .const import (
File "/home/homeassistant/.homeassistant/custom_components/mbapi2020/const.py", line 7, in <module>
from homeassistant.const import (
ImportError: cannot import name 'Platform' from 'homeassistant.const' (/home/homeassistant/.local/lib/python3.8/site-packages/homeassistant/const.py)
This is the stacktrace I receive in the logs. I actually have a look at the homeassistant.const file and indeed there isn’t any constant called Platform defined there to import. My Hassio version is core-2021.11.3.
EDIT: The Platform class const is only added from 2021.12.9. That explains why it’s missing from mine. Is there any alternative that I could do without having to upgrade my Hass version? The main reason why I cant do it now is that 2021.12.x requires python 3.9 while I’m on RaspOS so can’t yet find a way to have the desired version installed.
I seem to be getting a problem that has borked this integration:
2022-01-19 09:45:48 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mbapi2020 for mbapi2020
Traceback (most recent call last):
File "/config/custom_components/mbapi2020/api.py", line 73, in _request
resp.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://bff-prod.risingstars.daimler.com/v1/vehicle/self/masterdata')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/mbapi2020/__init__.py", line 118, in async_setup_entry
masterdata = await mercedes.client.api.get_user_info()
File "/config/custom_components/mbapi2020/api.py", line 83, in get_user_info
return await self._request("get", "/v1/vehicle/self/masterdata")
File "/config/custom_components/mbapi2020/api.py", line 76, in _request
raise RequestError(f"Error requesting data from {url}: {err}")
custom_components.mbapi2020.errors.RequestError: Error requesting data from https://bff-prod.risingstars.daimler.com/v1/vehicle/self/masterdata: 404, message='Not Found', url=URL('https://bff-prod.risingstars.daimler.com/v1/vehicle/self/masterdata')
2022-01-19 12:17:01 ERROR (MainThread) [homeassistant.components.system_health] Error fetching info
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 68, in get_integration_info
data = await registration.info_callback(hass)
File "/config/custom_components/mbapi2020/system_health.py", line 21, in system_health_info
client = hass.data[DOMAIN]
KeyError: 'mbapi2020'
Hi Richard, please update to the latest version. See the messages from last Friday. MB has changed the API and the new version is available since Friday too.