# \[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:** 3

<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:** [September 19, 2021, 4:01pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/41 "2021-09-19T16:01:03Z")

</div>

I have published a test version that has the trigger cards for doors, deck lid, windows and sunroof opened and closed.

---

<div class="post-metadata">

**Author:** ![Tor\_Erling\_Julusmoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tor_erling_julusmoen/32/46747_2.png) [@Tor\_Erling\_Julusmoen](https://community.homey.app/u/Tor_Erling_Julusmoen)\
**Post date:** [September 23, 2021, 11:30am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/42 "2021-09-23T11:30:25Z")

</div>

I have some trouble with the app! Can you look into this?  
It worked a few days!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8eb6449f5c1ffc51b4176987c636f94b32b6ff9.jpeg)

---

<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:** [September 23, 2021, 12:28pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/43 "2021-09-23T12:28:54Z")

</div>

Hmm, I will need to check if can handle that error and reauthenticate.  
Could you try restarting the app from the Apps section to see if that will force a new login.  
I use the Homey OAUTH2 to create the connection so, as far as I know, there is bit of internal magic that should take care of that.

---

<div class="post-metadata">

**Author:** ![Tor\_Erling\_Julusmoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tor_erling_julusmoen/32/46747_2.png) [@Tor\_Erling\_Julusmoen](https://community.homey.app/u/Tor_Erling_Julusmoen)\
**Post date:** [September 23, 2021, 12:41pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/44 "2021-09-23T12:41:17Z")

</div>

Hehe already tried that! I’m running the experimental version. What is OAUTH2?

---

<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:** [September 23, 2021, 1:37pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/45 "2021-09-23T13:37:48Z")

</div>

OAUTH2 is an authentication protocol. It basically uses the keys you provided to get authorisation to use the account. Part of that process is to return a refresh token that is a one time token used to renew the authorisation when it expires. That way the original keys are not sent out again and therefore reduces the chance of hackers decoding them.  
The error message suggests that the authorisation has expired but the refresh token is not valid (maybe already used). The protocol then requires that a new login made with the keys.  
It seems that Homey is not doing that part but I don’t know if it is meant to do it automatically or if I need to add extra checks to do it.  
I will check the code when I get home this evening.

---

<div class="post-metadata">

**Author:** ![SossieNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sossienl/32/11341_2.png) [@SossieNL](https://community.homey.app/u/SossieNL)\
**Post date:** [September 23, 2021, 11:04pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/46 "2021-09-23T23:04:36Z")

</div>

Great app! I was using the HA app to control certain aspects. But if I can Lock/unlock the car with only this app, it would solve my case.

However I see the option to (in)lock the car. But when pressed in Homey it shows an alert: “Not allowed to change the lock state”. Does that mean this feature is not implemented?

---

<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:** [September 24, 2021, 10:10am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/47 "2021-09-24T10:10:14Z")

</div>

My app uses the official Mercedes API and they don’t allow the locks to be controlled. I hope that one day this will change but I am not sure it will happen. It has been in their experimental product for a long time but that is not available to users.

I think the HA implantation uses a hacked API from the phone app.

---

<div class="post-metadata">

**Author:** ![Tor\_Erling\_Julusmoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tor_erling_julusmoen/32/46747_2.png) [@Tor\_Erling\_Julusmoen](https://community.homey.app/u/Tor_Erling_Julusmoen)\
**Post date:** [September 28, 2021, 6:17am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/48 "2021-09-28T06:17:10Z")

</div>

Did you find out why the app stopped? Now it’s gone 10 days without 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:** [September 28, 2021, 7:11am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/49 "2021-09-28T07:11:35Z")

</div>

I haven’t found anything. As far as I can see the Homey OAUTH2 library should automatically handle that error.  
Could you try to regenerate the secret on the Mercedes portal and enter it into Homey again?

---

<div class="post-metadata">

**Author:** ![Tor\_Erling\_Julusmoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tor_erling_julusmoen/32/46747_2.png) [@Tor\_Erling\_Julusmoen](https://community.homey.app/u/Tor_Erling_Julusmoen)\
**Post date:** [September 28, 2021, 7:35am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/50 "2021-09-28T07:35:58Z")

</div>

Already done that without success… Hmmm strange!

---

<div class="post-metadata">

**Author:** ![Tor\_Erling\_Julusmoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tor_erling_julusmoen/32/46747_2.png) [@Tor\_Erling\_Julusmoen](https://community.homey.app/u/Tor_Erling_Julusmoen)\
**Post date:** [September 28, 2021, 7:46am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/51 "2021-09-28T07:46:57Z")

</div>

Ok found out! I have to erease the car in the units, then replace the car and then log in Mercedes me account.😊👍

---

<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:** [September 28, 2021, 8:13am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/52 "2021-09-28T08:13:21Z")

</div>

OK. Hope is keeps working now.

---

<div class="post-metadata">

**Author:** ![Homeyjoost](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homeyjoost/32/47807_2.png) [@Homeyjoost](https://community.homey.app/u/Homeyjoost)\
**Post date:** [November 26, 2021, 7:25am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/53 "2021-11-26T07:25:17Z")

</div>

Hi Adrian,

I followed your instructions, but get an “unknown error” when trying to create the app. I get past the point where i have to acknowledge what information is requested. The next screen should be the selections of functions i would like to see in Homey. That is the point where the “unknown error” is thrown.

Any idea’s? Am i bound to the build year of the car? I drive an C350e from 2015. I do use the [Mercedes.me](http://Mercedes.me) app and that works.

Greetings Joost

---

<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:** [November 26, 2021, 8:03am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/54 "2021-11-26T08:03:10Z")

</div>

Could you send me the log from the More \> Apps \> Mercedes Me \> Configure app \> Log tab. Click on the Send button.

---

<div class="post-metadata">

**Author:** ![Homeyjoost](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homeyjoost/32/47807_2.png) [@Homeyjoost](https://community.homey.app/u/Homeyjoost)\
**Post date:** [November 26, 2021, 9:29am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/55 "2021-11-26T09:29:37Z")

</div>

Hi Adrian,

Log has been sent a minute ago. Thanks for your follow up!

Greetings Joost

---

<div class="post-metadata">

**Author:** ![Homeyjoost](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homeyjoost/32/47807_2.png) [@Homeyjoost](https://community.homey.app/u/Homeyjoost)\
**Post date:** [November 27, 2021, 9:03am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/56 "2021-11-27T09:03:21Z")

</div>

Hi Adrian,

Found out what the issue was:

 ![image.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a23ee926271fca9d4f19f92f6d66c0968743b5de.png)

“Interface to third party providers” need to be enabled in the [mercedes.me](http://mercedes.me) app.

Works now 🙂

Greetings Joost

---

<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:** [November 27, 2021, 9:41am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/57 "2021-11-27T09:41:57Z")

</div>

Good find. I think I set that option so long ago I had forgotten all about it.

---

<div class="post-metadata">

**Author:** ![Homeyjoost](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homeyjoost/32/47807_2.png) [@Homeyjoost](https://community.homey.app/u/Homeyjoost)\
**Post date:** [November 27, 2021, 10:33am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/58 "2021-11-27T10:33:02Z")

</div>

The app did not retrieve any data, sent you the log again.

Maybe things need to be enabled in a specific order? I deleted and recreated the project, now i’m stuck with an empty log and the following error:

 ![image0.jpg](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/67339765df152e2e53b35281574182704112ddb4.jpeg)

---

<div class="post-metadata">

**Author:** ![Homeyjoost](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homeyjoost/32/47807_2.png) [@Homeyjoost](https://community.homey.app/u/Homeyjoost)\
**Post date:** [November 27, 2021, 10:40am UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/59 "2021-11-27T10:40:28Z")

</div>

Okay, uninstalled the app in Homey and reinstall did the trick. Don’t see any data yet, going to take the car for a spin, maybe the car didn’t sent any data to the servers yet.

Keep you posted 😉

---

<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:** [November 27, 2021, 1:52pm UTC](https://community.homey.app/t/app-pro-mercedes-me-app-release-1-0-3/46414/60 "2021-11-27T13:52:16Z")

</div>

I finally got around to looking at your log, sorry it took me so long.  
Basically it is saying that the server is not supplying any data for any of the features.  
Hopefully once the car starts to send data now the options are enabled it will start to filter through to Homey.

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

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