OpenHAB Android App Issues: Notifications and UI Problems

Hello OpenHAB community,

I’m reaching out to seek some assistance with issues I’m encountering using the OpenHAB Android app. I’ve been using OpenHAB for a while now, and it’s been a fantastic setup, but these app-related problems are a bit of a hurdle for me.

First, let me describe my setup. I have OpenHAB 3.1 installed on an OpenHABian Raspberry Pi. I’ve configured remote access using Nginx with SSL and authentication, which works perfectly when I access the system through a browser, both locally and remotely. The Android app, however, is where I’m running into trouble.

The two main issues I’m facing are:

  1. Notification Error: Whenever I open the app, I receive an error message stating that notifications are not available. The error details mention something about a DOCTYPE string that can’t be converted to JSONObject. This is frustrating because I rely on notifications for certain events in my smart home setup.

  2. Blank OpenHAB 3 UI: When I click on the “OpenHAB 3 UI” option within the app, I’m presented with a blank screen. Despite the browser working fine, the app’s UI doesn’t load, which limits my ability to interact with the system on the go.

I’ve tried several troubleshooting steps to resolve these issues:

  • Ensuring the app is updated to the latest version.
  • Double-checking my Nginx configuration to confirm that the necessary ports and paths are correctly exposed.
  • Clearing the app’s cache and data on my phone.
  • Reinstalling the app.

Unfortunately, none of these steps have resolved the problems. I’m wondering if there’s something specific I might be missing in my setup or if there’s a known issue with the Android app that others have encountered and overcome.

Here’s a snippet of the error message I receive regarding the notifications:

Value <!doctype of type java.lang.String cannot be converted to JSONObject

And for the UI issue, the app simply doesn’t load any content, which is quite puzzling.

I would greatly appreciate any insights or suggestions from the community. Have others experienced similar issues? Are there any workarounds or fixes that I might not have considered yet?

Thank you in advance for your help and support!

Best regards,
[Your Name]