Hey Guys,
I am using OpenHab for several years now, as well as the Android App. So far everything is super. Some time ago my P30 was updated to Android 10 and I think after that update, (it might also be an App update of the OpenHab app afterwards) the app cannot connect anymore via WLAN after a while. I have to disable the WLAN and reenable it. Then the app connects normally. I have activated the extended protocol and error messages, showing the error above. This is what I found in the log:
10-13 09:54:55.599 22691 22691 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
10-13 09:54:55.603 22691 22691 I FirebaseInitProvider: FirebaseApp initialization successful
10-13 09:54:55.619 22691 22715 I AndroidSecurityKeyStore: keystore characteristics promise future onFinished.
10-13 09:54:55.625 22691 22715 I AndroidSecurityKeyStore: keystore operation promise future onFinished.
10-13 09:54:55.639 22691 22691 I EngineFactory: Provider GmsCore_OpenSSL not available
10-13 09:54:55.641 22691 22691 I ConnectivityManager: requestNetwork and the calling app is: org.openhab.habdroid
10-13 09:54:55.694 22691 22691 I ActivityThread: finishPreloaded end mPreloadStatus 0
10-13 09:54:55.694 22691 22691 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a0c295c
10-13 09:54:55.740 22691 22691 I RmeSchedManager: init Rme, version is: v1.0
10-13 09:54:55.760 22691 22750 W Gralloc3: mapper 3.x is not supported
10-13 09:54:55.772 22691 22691 I HwViewRootImpl: removeInvalidNode jank list is null
10-13 09:54:55.775 22691 22691 W InputMethodManager: startInputReason = 1
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/api/v1/settings/notifications
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:55.779 22691 22691 W InputMethodManager: startInputReason = 5
10-13 09:54:55.947 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/api/v1/settings/notifications
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:56.243 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/rest/
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:58.297 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.301 22691 22691 E MainActivity: Error: org.openhab.habdroid.util.HttpClient$HttpException: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.301 22691 22691 E MainActivity: HTTP status code: 500
10-13 09:55:00.587 22691 22691 I AwareBitmapCacher: init lrucache size: 2097152 pid=22691
10-13 09:55:20.363 22691 22691 I Hwaps : APS: EventAnalyzed: initAPS: version is 10.1.0.18
10-13 09:55:20.365 22691 22691 I hwaps : HwAps: JNI_OnLoad
10-13 09:55:20.369 22691 22691 W Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
10-13 09:55:21.308 22691 22691 W HiTouch_PressGestureDetector: Touch pointer move a lot. The moving distance of X is:1.0, limit is:51The moving distance of Y is:51.475952, limit is:51
10-13 09:55:21.414 22691 22691 W HwApsManager: HwApsManagerService, registerCallback, start !
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/rest/
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:55:28.351 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:55:28.352 22691 22691 E MainActivity: Error: org.openhab.habdroid.util.HttpClient$HttpException: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:55:28.352 22691 22691 E MainActivity: HTTP status code: 500
10-13 09:55:28.376 22691 22691 I HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
As I am not sure if the local address is removed only from the logs (in the app it shows the correct hostname in the error message) or if it does not set the correct hostname in the request, I hope you could help me.
Thanks and best regards
Peter