I have a tabbed page as my main view on a wall mounted device (iOS). All pages are fixed grid layout pages. I am on OH3.1M3.
After a while MainUI is not updating widgets based on their item states anymore.
Did anybody noticed that also?
I am using widgets for all my elements and I am using the new stylesheet property of pages to change properties like button background color like below.
@hubsif : may I point you to this thread. Could this behaviour be related to your extension of layout pages?
Actually, I can’t see how the layout pages could be related to this.
I would guess that the eventsource connection gets lost for some reason (I think I’ve read another forum post with someone having that issue). Not sure how to debug that on an iPad without an active Safari debugging connection, though. I would probably try checking for existing connections on the server while it works and see if those are lost when the issue comes up. Perhaps there’s even a server side logging for evensources that can be enabled.
@Oliver2 Oh! Your original post didn’t mention that this only occurs with “fixed layout” pages! Is that the case? And it works just fine for responsive layouts?
I think you can easily find out if it’s related to custom stylesheets by simply removing them and observe if the widgets still stop updating. If not, I’ll have a closer look at what could be the cause for this.
Saw that, but it actually doesn’t imply that it only occurs with fixed grid layout pages .
I’ll see if I can get to the root of this. And I’ll be happy for any additional information, like: “it always stops after x minutes”, or: “it only occurs on iOS devices”, or: “it only occurs with these widgets being present”. Even though I doubt it’s related to stylesheets, you could also check by removing them for a while.
as you can see in my initial post, I am using a style sheet for general button settings and an active/inactive stylesheet depending on the state (see here).
after a while (can be 3 minutes, can be one hour - I cannot reproduce this) the highlighted buttons (i.e. those with stylesheet cssbuttonactive) freeze. I can still click on the button and the action is executed, but it does not get highlighted.
My device is an iPad.
Ok, thanks for that info.
Are there any other item states shown on your screen? If so, do they still update after the buttons freeze?
If not, could you add one (e.g. shutter state or temperature) and check if it still updates?
the screen is embedded in a tabbed page. all widget stop freezing at the same time (at least at the time I notice the freeze, none of the elements work anymore).
here is the latest screenshot to see all of the items:
I understand that this issue is not related to the fixed layout anymore then, is that correct?
Does the issue also occur on “normal” (Desktop) browsers or just on iPad? Can you please test with your SNMP items, @Oliver2 ? And if it also stops working on desktop browsers, please share the console output.