-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBAPI2020 is not working as before #126
Comments
Hi, this is an problem with HA-core. What is your system setup? HA finds hassio but can't get the information about hassio. |
Good morning, thank you for your fast response. I guess you are right, because somehow at 1 AM (1-2 hours after my opened issue) the problem was solved without anything doing on my side and the integration is working again ;-) Actually I was hoping this issue is automatically solved in the last 1-2 weeks. I observed over the last month, that the sensor.VIN_charging_power is often "nicht verfügbar" / not available. How can I provide you the dignaose information to you (because there is the VIN included) or other informations that you can take a look into? I use Raspberry PI 4 8GB with raspberry OS and an supervised installtion in docker container. I know this approach is officially not supported, but it works now for years pretty well. |
Hi, is charging power not available on startup or are the values not updated when you charge the car? Are the values available in the mb-mobile-app at the same time ? |
I have added a workaround for the HA system_info bug. |
Hi, the charging power is not available on startup of HA and also when I charge the car. The values are available in the mb-moblie-app at the same time. I observed it is not a internet connection problem of the car connectivity. I use the integration for around 2 month, and I observed only 2 times the sensor charging power was shown for maybe 1-2 hours (without any change on my side). |
Hi, OK - this is nothing that I can see with my cars or was reported on scale so far. Let us dive deeper if you want. To collect some more data do the following:
then I can take a detailed look. |
Do you want to provide more feedback? Otherwise I'll close this issue. |
Sorry for the delay, it took a while to collect this information, because sometimes the value (mb power charging) was displayed and sometimes not (when I had not time to work on it). I send you the requested files and I hope this helps to find out the root cause. Let me know if you need further informations. |
Any news on this topic? I'm experiencing the same issue: |
Yes, this is still open as I can't reproduce this with my account/cars. Background: For some users (not for me), chargingPower is not delivered by the MBAPI at HA startup. The sensors are created only if a value is present at startup. The attributes are created dynamically whenever the values is delivered via the API. For next version, I plan to create the sensor for any car (even the car has no options to charge) just to check the behavior. |
Fixed with release v0.9.9 |
First I want to say thank you for integration for Mercedes cars.
Since a couple days the integration shows an error. I already deleted the token and restarted homeassistant, but the problem still is the same after deleting and adding the integration. The 6-digit PIN is send from Mercedes and added to the integration wizard successfully. Maybe the following error message is helpful, or did I oversee any thing? Thx for your help!
2023-04-05 23:48:42.666 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mbapi2020 for mbapi2020
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/mbapi2020/init.py", line 80, in async_setup_entry
await mercedes.client.set_rlock_mode()
File "/config/custom_components/mbapi2020/client.py", line 923, in set_rlock_mode
info = await system_info.async_get_system_info(self._hass)
File "/usr/src/homeassistant/homeassistant/helpers/system_info.py", line 57, in async_get_system_info
info_object["supervisor"] = info.get("supervisor")
AttributeError: 'NoneType' object has no attribute 'get'
The text was updated successfully, but these errors were encountered: