openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
214 stars 235 forks source link

Improve handling of lost connection to openHAB #904

Open eikowagenknecht opened 3 years ago

eikowagenknecht commented 3 years ago

The problem

When the connection to openHAB is lost the MainUI goes into a weird state where it seems like it's loading something but never finishes:

image

.. but this never stops, not even after minutes when OH is reachable again.

Your suggestion

When the connection is lost (e.g. timeout of 10s or something like that), replace the whole app screen with something that shows the user what the problem is, e.g.:

Your environment

OH 3.0.1

thomaszlow commented 3 years ago

I can confirm this issue in OH 3.0.1.

I'd like to add that in my case Crtl+R doesn't solve the issue, especially when several instances are open in several tabs. Only closing all tabs and opening OpenHab in a new tab solves the issue.