# \[APP\]\[Pro\] Mercedes Me App (Release 1.0.3)

**URL:** <https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414>\
**Category:** Apps\
**Tags:** homey-pro\
**Created:** [April 18, 2021, 5:18pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414 "2021-04-18T17:18:48Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 2:24pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/184 "2023-01-30T14:24:59Z")

</div>

yes as you can see it got a value and it was updated successfully. Suddenly it stopped working. I changed nothing on the REST API side since the big change last november.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 30, 2023, 2:40pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/185 "2023-01-30T14:40:25Z")

</div>

Well looking on the Mercedes developer portal, it seems the EV section is still available to BYOC. So, as it was working and suddenly stopped, it’s probably a server issue at Mercedes.  
You could try the repair option on the Homey device to ensure it has a valid token but if that doesn’t fix it then I’m not sure what else to suggest.

You could try to contact Mercedes via the portal to ask if there is a known problem, stating the call to get the EV data was working but now returns a “Forbidden” error.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 2:43pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/186 "2023-01-30T14:43:33Z")

</div>

It must be available as I’m reading that out with [evcc.io](http://evcc.io) as well. To make sure that there aren’t any interferences I’ve stopped [evcc.io](http://evcc.io)… but at the moment no change.  
Repair option doesn’t help, I tried that multiple times. As the HV battery output works with the other application it can’t be a general issue.  
My assumption is that the token for the EV part token doesn’t get updated. Can we check that somehow?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 30, 2023, 3:50pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/187 "2023-01-30T15:50:21Z")

</div>

There is only one token. When the access token is generated by logging in to your Mercedes account, you agree to the permissions the token is valid for.  
It’s possible that by having two apps accessing the data it has exceeded the limit of 1 access per 2 minutes. The Homey app will poll the EV data every 30 minutes when things are working. I have now noticed though that when it fails it will try again in 10 seconds, so maybe there is a cascade issue. E.g. if it fails the retry is to soon.

Could you disable the app for about an hour and then start it again to see if it recovers?

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 3:54pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/188 "2023-01-30T15:54:22Z")

</div>

Ok, so one token for all. Permission has been granted for everything during setup, so this couldn’t be the issue.  
I’ve disabled the app now (and my second application is stopped as well). Will try to start it this evening again.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 9:25pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/189 "2023-01-30T21:25:17Z")

</div>

I’ve reenabled the app again and it has been recovered. So it seems to be related to the short retries in case of a failure.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 30, 2023, 9:38pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/190 "2023-01-30T21:38:01Z")

</div>

Ok, thanks for testing that theory. I will take a look at how I can get around that. I guess I will need to delay the retries based on the type of error, so network errors retry quicker than forbidden errors.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 9:38pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/191 "2023-01-30T21:38:53Z")

</div>

yepp exactly. And my earlier request related to the timer settings within the app are even more important 🙂 Would really be a huge benefit if the user can set them manually.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 30, 2023, 9:56pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/192 "2023-01-30T21:56:16Z")

</div>

Although in this case the app only updates every 30 minutes and the allowance is every 2 minutes, so the other app must be using all the allowance. What would you set the update rate too?

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 10:05pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/193 "2023-01-30T22:05:05Z")

</div>

My first try would go to 2 minutes, the same as with my other application and check whether it works or not. 2min works like a charm with my other application… but of course I don’t know whether the 2min limit is per car or per app/token. Even 5min would be sufficient, but 30min is far to high for my hybrid car as a full load takes less then 2 hours.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 10:08pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/194 "2023-01-30T22:08:40Z")

</div>

I don’t think that the other app has eaten up all the allowance to poll the REST API. I’ve stopped the other app and even then the homey app wasn’t been able to poll. So I would assume that it is just related to the fast retry mechanism which is currently in place.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 30, 2023, 10:35pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/195 "2023-01-30T22:35:14Z")

</div>

Well, it seems to have had a problem at 30 minutes, so 2 minutes would be even worse.  
I agree that once it tipped over the retries probably made the problem persist, but what caused it to tip over in the first place?  
That makes me believe the rate is per car, but the documentation is not clear on that.

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [January 30, 2023, 10:38pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/196 "2023-01-30T22:38:07Z")

</div>

Correct, I don’t know why it happened and you are right, it could be a correlation with the other app, I can test that but I need the option to set the timers in your app (including the retry timers)…

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [February 1, 2023, 6:25am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/197 "2023-02-01T06:25:33Z")

</div>

I have the same issue with the HV battery status. Has not upodated for 4 days. Making problems for my charge flow, and I had to temporarily rewrite my script in order to smart charge.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [February 1, 2023, 6:30am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/198 "2023-02-01T06:30:31Z")

</div>

I’ve also tried the repair option. But no luck. My symphtoms ar similar to R5Turbo. only the HV battery status do not update. All other paramameters are OK.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [February 1, 2023, 6:50am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/199 "2023-02-01T06:50:59Z")

</div>

In my case there is no other app other than mercedes me itself connected.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [February 1, 2023, 7:00am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/200 "2023-02-01T07:00:57Z")

</div>

In my case there is no other app other than mercedes me itself connected.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [February 1, 2023, 7:13am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/201 "2023-02-01T07:13:31Z")

</div>

I will have some time today to work on the app, so I will modify the retry time to give the API time to recover.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [February 1, 2023, 7:44am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/202 "2023-02-01T07:44:03Z")

</div>

in my case, deactivating the app for one hour helped nothing. Still no update.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [February 1, 2023, 8:06am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/203 "2023-02-01T08:06:28Z")

</div>

Could you send me your log so I can verify it is the same error.

[Previous page](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414.md?page=9)

[Next page](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414.md?page=11)
