Phone network switch causes sitemap to show in stead of main ui + empty row above main ui

Hi all,

I have two problems with the main ui only within the android app. The second problem occured while trying to solve the first problem with help from Gemini. Unfortunately, Gemini began to hallucinate and can’t help me anymore.

I’m running Openhab 5.1.0 on a rpi5 with android 16 on a pixel 6 with the latest app version. But these problems occured with previous android versions, previous openhab versions and previous app versions.

I configured the app to start with the main ui with the overview page (/page/overview), but also tested this with other pages, and this works fine until…

Since i can remember the android app has the following problem. When the app is open (or running in the background memory) and the network connection changes from wifi to 5g or reverse, or there is just a hickup in the network connection. The app refreshes and shows the default sitemap. When I close the app and restart it (or just go to the hamburger menu and open main ui), the main ui is shown. So sometimes, when the app is running in the background and I open it after a certain network change, I see the sitemap in stead of the main ui.

So trying to solve this, i globaly did the following:

  • removed the sitemaps
  • changed the default sitemap in openhab config to ““ in (/var/lib/openhab/config/org/openhab/basicui.config) and basicui.cfg en classicui.cfg

In between all the changes I restarted openhab and cleared cache and data from the app. It did work for a bit but the app was acting strange on network change. Sometimes main ui was shown correct after network change but sometimes it just showed the interface but the items wheren’t up to date. So this didn’t fix the problem. So I reverted to my normal setup, changed everything back to normal, cleared cache from openhab, restarted openhab, cleared cache and data from app. The app reacts again, after changing network, I see the sitemap unfortunately.

But now the second problem, I have a empty line above the main ui. It’s an extra row, as high as the title where also the hamburger menu is. I can remove it by adding code to the page a shown below but now I have to add that to every page I open with main ui. And I think it’s a global setting somewhere and adding this code to every page isn’t something I want.

style: --f7-safe-area-top: 0px

The strange thing is, when I open the main ui in the browser on the phone or the computer, the empty bar isn’t there.

I tested this on a iphone, the empty bar is there but the network switching > sitemap loading does not occur on iOS.

What could be the problem here for the Empty line above the main ui? And is this network change switch to sitemap normal behaviour on the android app?

Hope someone can point me in the right direction. :smiley:

This is the empy bar: