There is a newer version available, see the link in the first post. But I doubt that it fixes your problem. It should improve things when you see a red border around the screen. But feel free to try it.
If the HABPanel page stops updating, then the webview seems to have some problem. Which android version do you have on your device?
I have installed the version you pointed to (14/11/2020), but as you expected it doesnāt solve to problem.
Am I running Android 8.1.0.
I donāt see a red border around the screen - even when it is stock?
I think the tablet is loosing the internet connection shortly sometimes - can the HPV reconnect if this happens?
/Michael
HPV has a dedicated connection to openHAB for receiving commands. If this is disconnected you will see the red border. It should reconnect.
The web page itself has a connection for getting value updates. This has nothing to do with HPV, but is managed by HabPanel running inside the Webview (which is a chrome browser that can be embedded into android apps). But whenever HabPanel is disconnected, it should show a message in the bottom of the screen.
Does this only happen after waking up the tablet after a longer sleep period? Then try enabling āPause webview when screen is offā. Or try to enable HW acceleration if it is disabled.
I have now tried various settings for some days.
The HW acceleration didnāt help.
If I enable 'pause webview when sreen is off", then it reloads the whole screen each time it wake up. It however still stops updating some times, but after it falls a sleep the reload will get it to work again.
/Michael
I used the time I had in the last days to upgrade to OH3. It was a little bit rough and I am not sure that I can recommend the upgrade at the current time, but most of my stuff works again.
It looks like openHAB devs made a lot more incompatible changes than they described in the release notes. One of the changes was that they renamed the rest event topics, which broke HPV.
They completely forgot the HabPanel upgrade, so when you upgrade as described in the release notes, HabPanel is gone and you have to restore your backup. So in case you upgrade, do not forget to export your HabPanel content before upgrading. Restore from the export afterwards and you are fine.
I have now adapted HPV to OH3. The current master version linked on the first post should work with OH3. I have also added credential encryption with a master password and made some other minor improvements. This is not completely tested, but should work. So in case you have migrated to OH3, install master and report any problems you have so I can fix them for 0.9.27.
I upgraded to OH3 as well and HPV 0.9.26 was working straight away.
So the ārest event topicsā change you mention didnāt seem to impact me.
One thing however is that Iām no longer to edit the habpanel from HPV itself.
I have to use a laptop browser for that.
That ist a little bit surprising. Are you sure you can send commands to HPV? This is where the topics come into play, everything else should work with 0.9.26.
Thanks for the new version - I also found out that HABPanelViewer doesnāt receive commands after I upgraded to OH3, and thus wanted to test your new version - but sadly I canāt install it. Something seems to be wrong with that *.apk
I download app-debug.apk as usual using the browser, but clicking it just produces message āCanāt open fileā (this worked earlier for installing F-Droid).
If I locate this file using File Manager he asks me if I want to install an update of HABPanelViewer, I click INSTALL, he says Installing⦠and then he prompts me App not installed. (nothing more, no error messageā¦). What can be wrong?
Iām using it on a Teclast TPad P80h, Android 5.1, Kernel 3.10.72 and could reproduce it on a second tablet (basically same hardware)
Edit: Already found solution: You have to uninstall F-Droid version of HABPanelViewer, and then install of that version works!
Found a small bug/problem in 0.9.27pre (12/27/20 11:25): Iām āonlyā using HABPanelViewer as app to always display my BasicUI interface, so I donāt need that credential storage (is this new?) and press [CANCEL] during setup. After a restart of HABPanelViewer I have to unlock device and still get prompted to assign a password instead of my BasicUI getting shown.
Even if I assign a password, behavior doesnāt change.
Also log is full of SseConnection exceptions, donāt know if thatās relevant but command topic works, thanks!
(donāt know how to export as text, usual Android functions doesnāt work)
HPV always had credential storage, it creates a database on startup. Formerly, this was unencrypted, this is why you were not asked for a password.
For the new version, you should specify a password on start as this encrypts the database. If you do not use it, you will never be asked for the password again. I have installed the new version on several of my devices, entered a password and have not been not asked for it on subsequent starts.
I will have to investigate why it behaves differently for you.
Do you see the exaxt same message from screenshot 1 every time you start HPV? And it does not make a difference if you enter a password or not? Can you check system information for the entry about credentials storage? What does it say?
The exceptions are no real execeptions, but generated in the code to easily get a stack trace in the logs. They will be remove before the 0.9.27 is released. You can safely ignore them.
Yes I see this every time I press āRestartā in menu (or send Restart command), or reboot the tablet. (I set this app as Launcher app, so it runs most of the time and I have do do this actions to provoke a ārealā start)
No, I tried short or long passwords or pressing cancel - it always behaves the same.
Where can I find this? In Android Settings I have āAccountsā which is empty and āStorageā which is only used space.
This is the storage the app uses:
Other things to mention:
Tablet is configured for swipe unlock
I disabled quite many of the installed apps so they donāt interfere