ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
168 stars 32 forks source link

All sensors "unavailable" #106

Closed scaarup closed 1 year ago

scaarup commented 1 year ago

Hi.

This morning all mbapi sensors are unavailable. The MercedesMe app on my phone, is displaying and getting data fine.

This is a log from a HA restart with debug enabled:

2023-01-25 08:18:28.946 INFO (MainThread) [homeassistant.setup] Setting up mbapi2020
2023-01-25 08:18:28.946 INFO (MainThread) [homeassistant.setup] Setup of domain mbapi2020 took 0.0 seconds
2023-01-25 08:18:28.959 INFO (MainThread) [custom_components.mbapi2020.client] WSL not detected - running in rlock mode
2023-01-25 08:18:28.959 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:28.960 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:50.998 DEBUG (MainThread) [custom_components.mbapi2020] VIN not found in masterdata. Used FIN WDD2132041A161309 instead.
2023-01-25 08:18:50.999 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:51.145 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:51.326 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:52.489 DEBUG (MainThread) [custom_components.mbapi2020] RCP supported for car WDD2132041A161309: False
2023-01-25 08:18:52.490 DEBUG (MainThread) [custom_components.mbapi2020] Init - car added - WDD2132041A161309
2023-01-25 08:18:52.490 DEBUG (MainThread) [custom_components.mbapi2020.client] start update_poll_states
2023-01-25 08:18:52.490 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:52.639 DEBUG (MainThread) [custom_components.mbapi2020.api] Traceback (most recent call last):
  File "/config/custom_components/mbapi2020/api.py", line 84, in _request
2023-01-25 08:18:52.641 DEBUG (MainThread) [custom_components.mbapi2020.oauth] Start async_get_cached_token()
2023-01-25 08:18:52.643 INFO (MainThread) [custom_components.mbapi2020.websocket] Connecting to wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/ws
2023-01-25 08:18:53.410 INFO (MainThread) [custom_components.mbapi2020.websocket] Connected to mercedes websocket at wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/ws
2023-01-25 08:18:53.420 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: debugMessage
2023-01-25 08:18:53.420 DEBUG (MainThread) [custom_components.mbapi2020.client] debugMessage - Data: Registering User with ciamID: 0015060635ff5a96 and App-UUID: e8763dfd-46ad-45ca-a739-863108b6116e
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: debugMessage
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.client] debugMessage - Data: app twin actor was initialized
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 932
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:18:53.421 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 932
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 5065
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:18:57.555 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 5066
2023-01-25 08:19:01.911 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:01.911 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:19:01.912 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 9422
2023-01-25 08:19:01.946 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:01.946 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:19:01.947 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - False - Counter({'f': 0, 'p': 0}) - 9457
2023-01-25 08:19:04.069 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: vepUpdates
2023-01-25 08:19:04.069 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2023-01-25 08:19:04.069 DEBUG (MainThread) [custom_components.mbapi2020.client] Full Update. WDD2132041A161309
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Odometer for WDD2132041A161309 called
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Tires for WDD2132041A161309 called
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Doors for WDD2132041A161309 called
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Location for WDD2132041A161309 called
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.070 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values BinarySensors for WDD2132041A161309 called
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Windows for WDD2132041A161309 called
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Electric for WDD2132041A161309 called
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values Auxheat for WDD2132041A161309 called
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] get_car_values WDD2132041A161309 has incomplete update set - attributes not found
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_vep_updates - WDD2132041A161309 - complete: True - Counter({'f': 1, 'p': 0})
2023-01-25 08:19:04.071 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 0
2023-01-25 08:19:07.670 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:07.670 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2023-01-25 08:19:07.670 DEBUG (MainThread) [custom_components.mbapi2020.client] _process_assigned_vehicles - WDD2132041A161309 - True - Counter({'f': 1, 'p': 0}) - 3601
2023-01-25 08:19:07.671 INFO (MainThread) [custom_components.mbapi2020] Car Load complete - start sensor creation
2023-01-25 08:19:07.673 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mbapi2020
2023-01-25 08:19:07.677 INFO (MainThread) [homeassistant.components.lock] Setting up lock.mbapi2020
2023-01-25 08:19:07.680 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mbapi2020
2023-01-25 08:19:07.683 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mbapi2020
2023-01-25 08:19:07.685 INFO (MainThread) [homeassistant.components.switch] Setting up switch.mbapi2020
2023-01-25 08:19:07.715 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:14.583 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:14.620 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:22.881 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:22.916 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:32.832 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:32.875 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:44.777 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:44.818 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:19:59.110 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:19:59.150 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:20:14.115 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:20:14.153 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:20:29.112 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:20:29.153 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:20:44.113 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:20:44.154 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:20:59.113 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:20:59.155 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:21:14.115 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:21:14.155 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:21:29.121 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:21:29.157 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:21:44.123 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:21:44.157 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:21:59.123 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:21:59.158 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:22:14.124 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:22:14.159 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:22:29.125 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:22:29.160 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:22:44.127 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:22:44.162 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:22:59.126 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:22:59.163 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:23:14.127 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:23:14.164 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:23:29.127 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:23:29.165 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:23:44.129 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:23:44.165 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:23:59.130 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:23:59.171 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:24:14.131 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:24:14.167 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:24:29.133 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:24:29.168 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:24:44.134 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:24:44.170 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:24:59.134 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:24:59.173 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:25:14.135 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:25:14.174 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:25:29.140 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:25:29.176 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request
2023-01-25 08:25:44.141 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: assigned_vehicles
2023-01-25 08:25:44.178 DEBUG (MainThread) [custom_components.mbapi2020.websocket] Got notification: apptwin_pending_command_request

Can't see any errors, so I am wondering.

There is this one sensor which may be populated, sensor.dc13703_car:

image

leovj commented 1 year ago

Me too same thing. I think it depends on some update..

scaarup commented 1 year ago

Ah okay. Let's wait and see what happens then.

Dario82 commented 1 year ago

me too

ReneNulschDE commented 1 year ago

Hi, I have the same problem with few of my cars. Currently, I would say this is a problem on the MB Server side. The MB-app does not work for me too.

Background: A lot of the MB Services running on Microsoft Azure and Microsoft has a global outage today. Lets wait

Azadk commented 1 year ago

Hi, I have the same problem with few of my cars. Currently, I would say this is a problem on the MB Server side. The MB-app does not work for me too.

Background: A lot of the MB Services running on Microsoft Azure and Microsoft has a global outage today. Lets wait

Same here. The app doesn't fully work either. Some functionalities are limited.

ReneNulschDE commented 1 year ago

my cars are back after a HA restart now

scaarup commented 1 year ago

Not my car ...

ReneNulschDE commented 1 year ago

see my comments in the forum - still some issues - lets wait...

leovj commented 1 year ago

I have restart HA now, and it's OK! Thanks!

scaarup commented 1 year ago

A simple reload of the integration, did the trick here.