Dynamic Items Auto-Refresh Issue Solved

I’ve been experiencing an issue with my OpenHAB setup where dynamic elements on my Basic UI pages stop auto-refreshing after about 5 minutes. This has been a bit frustrating, especially since I rely on real-time updates for monitoring my smart home devices. I noticed that after entering a page, everything works fine for the first 5 minutes, but then the dynamic elements like icons and numbers freeze. Refreshing the page manually with Ctrl-R fixes it temporarily, but it’s not a sustainable solution, especially when using my phone on the go.

After some research and trial and error, I found a workaround for desktop browsers: pressing Ctrl-Shift-R enables an “auto-refresh every minute” feature. This completely solves the 5-minute timeout issue on my computer. Unfortunately, this fix doesn’t work on mobile browsers, which is a bit of a letdown since I primarily use my phone to interact with OpenHAB.

I’ve been digging through the configuration files to see if there’s a timeout parameter I can adjust to fix this issue permanently. I’ve tried tweaking settings in Thing.json, org.ops4j.pax.web.cfg, and jetty.xml, but nothing seems to work. I can see the correct events in events.log, so the problem isn’t with data collection but rather with the UI not refreshing after the initial period.

One thing I’ve noticed is that exiting and re-entering the page resets the auto-refresh feature, which works for another 5 minutes. It’s a bit of a hassle, but it’s better than nothing. I’m hoping the OpenHAB community can shed some light on this issue or suggest any other configuration changes that might help.

In the meantime, I’ll keep experimenting with different settings and keep an eye out for any updates or patches that might address this. If anyone else has encountered this problem or knows of a solution, I’d love to hear about it! Thanks in advance for any help or insights you can provide.