# Custom MainUI URL on the Android App for own cloud instances

**URL:** <https://community.openhab.org/t/custom-mainui-url-on-the-android-app-for-own-cloud-instances/167364>\
**Category:** Android App\
**Created:** [November 29, 2025, 10:41am UTC](https://community.openhab.org/t/custom-mainui-url-on-the-android-app-for-own-cloud-instances/167364 "2025-11-29T10:41:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcusspors](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@marcusspors](https://community.openhab.org/u/marcusspors)\
**Post date:** [November 29, 2025, 10:41am UTC](https://community.openhab.org/t/custom-mainui-url-on-the-android-app-for-own-cloud-instances/167364/1 "2025-11-29T10:41:34Z")

</div>

Hi dear community,

I want to use the openHAB Android app with my own cloud instance. I’ve successfully set up the cloud instance and would like to write a small overview of my setup for you (but that’s not part of this topic).

I have two domains:  
Frontend Cloud: **[openhab.example.com](http://openhab.example.com)**  
MainUI: **[home.openhab.example.com](http://home.openhab.example.com)**

If I enter **“[openhab.example.com](http://openhab.example.com)”** as the remote URL in the openHAB app, my push notification setup works correctly and the instance is recognized. However, when I open the “Main UI”, the app opens the MainUI WebView with the URL **“[openhab.example.com](http://openhab.example.com)”** (as I entered).

If I enter **“[home.openhab.example.com](http://home.openhab.example.com)”** as the remote URL, my push notifications no longer work, but the Main UI opens correctly.

Because of this, I took a quick look into the Android app and found the following:

**MainUIWebViewFragment:**

```yaml
override fun modifyUrl(orig: HttpUrl): HttpUrl {
        var modified = orig
        if (orig.host == "myopenhab.org") {
            modified = modified.newBuilder()
                .host("home.myopenhab.org")
                .build()
        }

```

This explains why the Android app works correctly in both cases when I enter **[myopenhab.org](http://myopenhab.org)** as the remote cloud instance.

Now my question:  
I would like to add a settings field in the app (similar to the frontail URL), where you can adjust the mainUI-URL for your own purposes.  
I also found these issues/PRs:  
[Main UI URL is hard-coded to home.myopenhab.org by lsafelix75 · Pull Request #3257 · openhab/openhab-android · GitHub](https://github.com/openhab/openhab-android/pull/3257) ← this one is closed, and I don’t understand what happened there  
[Allow custom Frontail URL by mueller-ma · Pull Request #3311 · openhab/openhab-android · GitHub](https://github.com/openhab/openhab-android/pull/3311) ← this is the frontail PR

I could also contribute and implement these changes for the Android app, but I’m not sure if I should (I’ve never done this before).

Could you guide me to the correct procedure?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dastrix80](https://community.openhab.org/user_avatar/community.openhab.org/dastrix80/32/20582_2.png) [@dastrix80](https://community.openhab.org/u/dastrix80)\
**Post date:** [April 1, 2026, 7:55am UTC](https://community.openhab.org/t/custom-mainui-url-on-the-android-app-for-own-cloud-instances/167364/2 "2026-04-01T07:55:29Z")

</div>

Crazy this hasnt been responded to, who the hell hardcodes URLs in applications!!
