OpenHab starts with Sitemap instead with MainUI

In my Android openHAB app, the start page is set to MainUI. However, it quite often starts with the Sitemap instead. This definitely happens when the app switches between local and remote connections, but I think it also occurs even when I stay constantly on the local network. When this happens, I have to close the app and restart it. This is really an annoying behavior and shouldn’t happen in a properly functioning app. Does anyone have an idea or a workaround to force openHAB to always start with the MainUI?

  • Platform information:
    • Hardware: Raspberry Pi 4
    • OS: Linux openhabian 6.12.25+rpt-rpi-v8
    • Java Runtime Environment: openjdk version “21.0.9” 2025-10-21 LTS
    • openHAB version: OH 5.2.1
    • Mobile Phone: Galaxy A34 5G, Android Version 16

@sengscfr

I saw this the other day - I do not have an Android available but there is a setting in the Android app to tell it to Start Main UI or Sitemap

I.e. there are at least 2 Settings

  1. use MainUI or SiteMap

  2. the start Page(this is where you set your default page)

Sorry I cannot be more specific but I had the opportunity to help someone and happened to see it.

Same here, it is a small but annoying friction point in the day to day use of the application.
I was never able to pinpoint the conditions, and your finding about switching network is a good hint to hunt the issue.
I added this to the already existing issue in github .

It happens to me as well regularly. I can pull down the side menu and switch to MainUI quite often, but it’s still annoying. It would be great to have this setting always honored. Maybe it’s a fallback mechanism or something and my start page on MainUI is pretty big so there may be a timeout and fallback to Sitemap, but I don’t know. I suppose I could dig through the code but hopefully someone here actually knows.

It also happens on my Android phone (Samsung S22}) quite often. I found a work around which works mostly on my phone.

When the OpenHAB app shows up the sitemap instead of the MainUI, simply flipping the phone into horizontal position will load the MainUI again which remain visible after flipping back to vertical position.

Probably this could be a hint to find the root cause of the annoying behavior.

I would open up a issue at Issues · openhab/openhab-android · GitHub , and reference this thread.

Thanks for posting this. I also see this regularly. Sometimes when opening the app, and it will sometimes happen mid-session if the network changes. Occasionally the hamburger menu will be there to allow a switch to MainUI, but most often I need to exit the app and reopen it.

I tried that on my Pixel 8 Pro phone and I get the same behavior. As soon as it rotates it repaints with the MainUI.