Okay, I think I’ve got something that works.
First, it turns out that I wasn’t using 0.9.27 on my Fire HD 10. I was using 0.9.27pre. I guess I didn’t update when it was finalized.
I installed the 0.9.27pre version on my Android 14 phone, and it also crashed when I tried to edit the control/sensor items. However, I was able to update to the 0.9.27 version on my Fire HD 10 without issue.
I couldn’t get the HPV.prefs file to work on another device, and I suspect that was due to the encryption. So, I took a chance and wiped the HPV data on my Fire HD 10 to start fresh with no encryption. This time, I was able to import the HPV.prefs file onto my Android 14 phone. After I restarted the app, everything worked.
Here’s the file to try it yourself. HPV.prefs.txt (2.1 KB)
While doing this, I discovered that HPV can’t import settings unless I’ve exported first. I think this is why I wasn’t able to see the HPV.prefs file before (and possibly the same for you). I had to export to a folder, then replace the file in the exact same folder. Then I was able to import it.
When I tried to edit the file in Notepad, I wasn’t able to import it into the app. I assume that’s due to Notepad messing up the encoding. So, I added the following items:
String HabPanelViewer_Control
- for sending commands to HPV
Switch HabPanelViewer_Display
- reports whether the display is on or off
DateTime HabPanelViewer_Start
- reports when the app was last started
Number HabPanelViewer_Battery
- reports battery state
Number HabPanelViewer_Brightness
- reports display brightness
DateTime HabPanelViewer_Connected
- reports when the app last connected to the server
I don’t actually use most of these items, but figured it would be better to include them. Then they can just be added in openHAB and HPV.prefs doesn’t need to be edited.
There are other sensors that I don’t have on my tablet, so I can’t add them. Also, I didn’t add motion detection, because I remember it not working very well for me.
So, I think what we know is:
- HPV works from Android 9-14 if you only want to connect to openHAB and display a UI
- We can only edit the control/sensor items if we’re on Android 9 (and maybe Android 10?)
- In Android 11+, the control/sensor items might work by importing my HPV.prefs file and then using the items I’ve defined above.