yes, I already have some zones defined in the MB App, at least “home” and “office”, but additionally I use the GPS data from the device_tracker of your Mercedes Me Component
and lookup the real address using geopy when subscribing the mqtt messages in a python daemon process running on my smarthome server. Thats for sure not the most lightweight solution - I would more appreciate to use the MB API directly, but its no more free for private use, as far as I know. Thanks anyway for your great Mercedes Me Component
from geopy.geocoders import Nominatim
...
geolocator = Nominatim(user_agent="geoapiExercises")
location = geolocator.reverse((latitude, longitude), exactly_one=True)
if location and 'address' in location.raw:
address = location.raw['address']
road = address.get('road', 'Street not found')
city = address.get('city', address.get('town', 'City not found'))
...
Also, rear_left seems to be the driver’s seat (front_left works also).
No idea how to change the rear right seat.
Also: The MercedesMe app has the option of “set all temperatur to the same value”. Do you know if that is a separate call, or just literally setting the same temperature on all seats?
Hi Thomas,
thanks for your feedback. Looks like I have to check this again. Can I send some commands to your car? I don’t have a car with this feature anymore (but time now ;-))
In all my tests this was only only one call, the app is managing this somehow… (there are cars with only front-seat support and other cars like yours with four seat support) I would need more cars to check this in detail.
do you know what the “Datenfreigabe für unabhängige Service Dienstleister” within the Mercedes Dashboard is?
Is is something that could be used when/if Mercedes decides to revamp their MercedesMe API to such an extend that you are not able to reverse-engineer it anymore?
I don’t see any value but I’m also not 100% sure - I tested it with my cars and the dataset of the API was the same. I assume that this is more GDPR related or when you use third party apps (B2B-API)
06:50pm: Does anyone here gets a “ERROR (MainThread) [custom_components.mbapi2020.websocket] Other error 429, message=‘Invalid response status’,…” error since 6:40pm CET?
07:05pm: mobile app is not working too (at least the relevant car api functions)
Nothing on my end, both the integration, and the app works fine (at least I could open/close windows, unlock/lock doors - both from the app and from HA).
Update:
This morning, sensors and commands are not working on the integration, app works.
Only error I could see was: ERROR (MainThread) [custom_components.mbapi2020.websocket] remote websocket connection closed: Cannot write to closing transport
The carsensor Last message received was 04:19:37 this morning.
I have lost the connection too, but it did not help to restart Hass. I tried to update from HACS as well, the version info is v0.19.1. Is that the latest version, and is there anything else I could try? I don’t see anything in the logs except for the standard warning about using a custom integration.
Edit: Never mind, it suddenly came back, without me doing anything.
At this point (approx.), the MB Fahrtenbuch Service (incl. iOS app) also expired and I had not extended it. Could there be a relation or any other reason?