HABPanelViewer 0.9.27

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

Hi ,

i using the latest debug apk 0.9.27pre . And with OH3.
The commands which i Send with :frowning:
Tablet_Command.sendCommand("RESTART");

are not received on tablet ?
Item:
String Tablet_Command

is there a problem with OH3 ?

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.

Hi.

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.

Oh i see.
No I don’t use that functionality.

is anyone able to edit the panels once switched to OH3?
I don’t have the pencil icon.

If you open the MainUI and log in with your user and then switch to habpanel it should be editable.

(solution found, see end of post)

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?

Screenshot_2021-01-02-18-59-26
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.
Screenshot_2021-01-02-19-32-41

Also log is full of SseConnection exceptions, don’t know if that’s relevant but command topic works, thanks!
Screenshot_2021-01-02-19-30-58
(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:
Screenshot_2021-01-03-13-04-15
Other things to mention:
Tablet is configured for swipe unlock
I disabled quite many of the installed apps so they don’t interfere

Open the menu in HPV and select System Information.

Screenshot_2021-01-05-15-13-031

I have just updated the apk. Can you please install and confirm that the problem is fixed?

Confirmed - thank you very much!
Screenshot_2021-01-05-15-49-351

Hi vbier,
I have installed 0.9.27pre and everything works fine with OH3

  • installation with the apk (without stopping the application before)
  • credential encryption
  • receiving commands.

Thanks for your great work!