Unable to connect through myopenhab

Android app has trouble connecting to my openhab from myopenhab.org. It will receive my notifications just fine but it won’t load my sitemap. It says “openhab returned empty sitemap list”. It shows my local sitemap just fine when I am at home. Remote just suddenly stopped working.

Running App: 2.18.0
Server: 3.1

App log

-----------------------
Device information
Model: ASUS_Z01RD
Manufacturer: asus
Brand: asus
Device: ASUS_Z01R_1
Product: WW_Z01RD
OS: 10
Display: 1080x2052, 2.2250001 density
Data usage policy: DataUsagePolicy(canDoLargeTransfers=true, loadIconsWithState=true, autoPlayVideos=true, canDoRefreshes=true), data saver: 1, battery saver: false
-----------------------

--------- beginning of main
07-17 20:12:16.403  3847  3847 D MainActivity: onStart()
07-17 20:12:16.407  3847  3847 D PageConnectionHolderFragment: onStart(), started false
07-17 20:12:16.416  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:16.419  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:16.422  3847  3847 D MainActivity: onActiveConnectionChanged()
07-17 20:12:16.433  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:16.433  3847  3847 D MainActivity: Cannot auto select server: No server with configured wifi
07-17 20:12:16.433  3847  3847 D MainActivity: onResume()
07-17 20:12:17.218  3847  3847 D MainActivity: onOptionsItemSelected()
07-17 20:12:19.534  3847  3847 D MainActivity: onPause()
07-17 20:12:19.550  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@19f3e92
07-17 20:12:19.560  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:19.560  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:19.876  3847  8276 D OpenGLRenderer: endAllActiveAnimators on 0x76fe8f6e00 (NavigationMenuItemView) with handle 0x76fe8e97a0
07-17 20:12:19.897  3847  3847 D MainActivity: onStop()
07-17 20:12:19.897  3847  3847 D PageConnectionHolderFragment: onStop()
07-17 20:12:19.897  3847  3847 D MainActivity: onSaveInstanceState()
07-17 20:12:19.901  3847  3847 D ContentController: onSaveInstanceState()
07-17 20:12:22.299  3847  3847 D MainActivity: onStart()
07-17 20:12:22.300  3847  3847 D PageConnectionHolderFragment: onStart(), started false
07-17 20:12:22.304  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:22.312  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:22.313  3847  3847 D MainActivity: onActiveConnectionChanged()
07-17 20:12:22.326  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:22.326  3847  3847 D MainActivity: Cannot auto select server: No server with configured wifi
07-17 20:12:22.327  3847  3847 D MainActivity: onResume()
07-17 20:12:23.117  3847  3847 D MainActivity: onOptionsItemSelected()
07-17 20:12:23.766  3847  3847 D MainActivity: onPause()
07-17 20:12:23.783  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@af656f6
07-17 20:12:23.833  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:23.833  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:23.865  3847  3847 D Ringtone-debug: setUri+mUri=content://settings/system/notification_sound
07-17 20:12:23.875  3847  3847 D RingtoneManager: getActualDefaultRingtoneUri+uriString=content://media/internal/audio/media/46,type=2
07-17 20:12:23.928  3847  3847 D Ringtone: Successfully created local player
07-17 20:12:23.928  3847  3847 D RingtoneManager: getActualDefaultRingtoneUri+uriString=content://media/internal/audio/media/46,type=2
07-17 20:12:23.940  3847  3847 D PreferencesActivity: Removing notification prefs for < 25
07-17 20:12:23.948  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:24.008  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:24.011  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:24.035  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:24.036  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:24.314  3847  3847 D MainActivity: onStop()
07-17 20:12:24.314  3847  3847 D PageConnectionHolderFragment: onStop()
07-17 20:12:24.314  3847  3847 D MainActivity: onSaveInstanceState()
07-17 20:12:24.314  3847  3847 D ContentController: onSaveInstanceState()
07-17 20:12:25.200  3847  3861 V MediaPlayer: resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
07-17 20:12:25.200  3847  3861 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
07-17 20:12:26.173  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@9847850
07-17 20:12:26.178  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:26.178  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:26.228  3847  3847 D LogActivity: onCreateOptionsMenu()
07-17 20:12:26.244  3847  4012 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:26.510  3847  8276 D OpenGLRenderer: endAllActiveAnimators on 0x76ff607b00 (RippleDrawable) with handle 0x770ce256a0
07-17 20:12:27.714  3847  3847 D LogActivity: onOptionsItemSelected()
07-17 20:12:27.761  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:28.960  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@eb001fd
07-17 20:12:28.965  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:28.965  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:28.994  3847  3847 D LogActivity: onCreateOptionsMenu()
07-17 20:12:29.019  3847  4012 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:29.285  3847  8276 D OpenGLRenderer: endAllActiveAnimators on 0x76ff607b00 (RippleDrawable) with handle 0x770ce25640
07-17 20:12:30.065  3847  3847 D LogActivity: onOptionsItemSelected()
07-17 20:12:30.070  3847  4012 I LogActivity: Log was cleared
07-17 20:12:31.655  3847  3847 D LogActivity: onOptionsItemSelected()
07-17 20:12:31.681  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:32.581  3847  3847 D MainActivity: onActivityResult() requestCode = 1001, resultCode = -1
07-17 20:12:32.583  3847  3847 D MainActivity: onStart()
07-17 20:12:32.584  3847  3847 D PageConnectionHolderFragment: onStart(), started false
07-17 20:12:32.589  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:32.591  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:32.593  3847  3847 D MainActivity: onActiveConnectionChanged()
07-17 20:12:32.599  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:32.600  3847  3847 D MainActivity: Cannot auto select server: No server with configured wifi
07-17 20:12:32.600  3847  3847 D MainActivity: onResume()
07-17 20:12:33.647  3847  3847 D ContentController: clearServerCommunicationFailure()
07-17 20:12:33.647  3847  3847 D PageConnectionHolderFragment: updateActiveConnections: URL list [], connection org.openhab.habdroid.core.connection.DefaultConnection@82fd1bc
07-17 20:12:33.649  3847  3847 D BackgroundTasksManager: triggerPeriodicWork()
07-17 20:12:33.649  3847  3847 D BackgroundTasksManager: Periodic workers are not needed, canceling...
07-17 20:12:33.649  3847  3847 I chatty  : uid=10135(org.openhab.habdroid) identical 2 lines
07-17 20:12:33.649  3847  3847 D BackgroundTasksManager: Periodic workers are not needed, canceling...
07-17 20:12:33.665  3847 11907 I okhttp.OkHttpClient: --> GET https://<openhab-remote-address-Home>/rest/
07-17 20:12:33.665  3847 11907 I okhttp.OkHttpClient: User-Agent: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19
07-17 20:12:33.665  3847 11907 I okhttp.OkHttpClient: Cache-Control: no-cache
07-17 20:12:33.665  3847 11907 I okhttp.OkHttpClient: --> END GET
07-17 20:12:35.089  3847 11907 I okhttp.OkHttpClient: <-- 200 OK https://<openhab-remote-address-Home>/rest/ (1424ms)
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Server: nginx/1.18.0 (Ubuntu)
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Date: Sun, 18 Jul 2021 01:12:35 GMT
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Content-Type: application/json
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Transfer-Encoding: chunked
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Connection: keep-alive
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: X-Powered-By: Express
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Set-Cookie: ██
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: Set-Cookie: ██
07-17 20:12:35.090  3847 11907 I okhttp.OkHttpClient: <-- END HTTP
07-17 20:12:35.096  3847  3847 I ServerProperties: Server has rest api version 4
07-17 20:12:35.098  3847 11907 I okhttp.OkHttpClient: --> GET https://<openhab-remote-address-Home>/rest/sitemaps
07-17 20:12:35.098  3847 11907 I okhttp.OkHttpClient: User-Agent: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19
07-17 20:12:35.098  3847 11907 I okhttp.OkHttpClient: Cache-Control: no-cache
07-17 20:12:35.098  3847 11907 I okhttp.OkHttpClient: --> END GET
07-17 20:12:35.561  3847 11907 I okhttp.OkHttpClient: <-- 200 OK https://<openhab-remote-address-Home>/rest/sitemaps (462ms)
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Server: nginx/1.18.0 (Ubuntu)
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Date: Sun, 18 Jul 2021 01:12:36 GMT
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Content-Length: 0
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Connection: keep-alive
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: X-Powered-By: Express
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Set-Cookie: ██
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: Set-Cookie: ██
07-17 20:12:35.562  3847 11907 I okhttp.OkHttpClient: <-- END HTTP
07-17 20:12:35.574  3847  3847 E ServerProperties: Failed parsing sitemap JSON
07-17 20:12:35.574  3847  3847 E ServerProperties: org.json.JSONException: End of input at character 0 of 
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.json.JSONTokener.syntaxError(JSONTokener.java:460)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.json.JSONTokener.nextValue(JSONTokener.java:101)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.json.JSONArray.<init>(JSONArray.java:94)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.json.JSONArray.<init>(JSONArray.java:110)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.openhab.habdroid.model.ServerProperties$Companion.loadSitemapsFromJson(ServerProperties.kt:202)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.openhab.habdroid.model.ServerProperties$Companion.access$loadSitemapsFromJson(ServerProperties.kt:53)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at org.openhab.habdroid.model.ServerProperties$Companion$fetchSitemaps$1.invokeSuspend(ServerProperties.kt:174)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at android.os.Handler.handleCallback(Handler.java:883)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at android.os.Handler.dispatchMessage(Handler.java:100)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at android.os.Looper.loop(Looper.java:235)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at android.app.ActivityThread.main(ActivityThread.java:7441)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at java.lang.reflect.Method.invoke(Native Method)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
07-17 20:12:35.574  3847  3847 E ServerProperties: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
07-17 20:12:35.574  3847  3847 D ServerProperties: Server returned sitemaps: []
07-17 20:12:35.574  3847  3847 E MainActivity: openHAB returned empty Sitemap list
07-17 20:12:35.575  3847  3847 D ContentController: Indicate server failure (message openHAB returned empty Sitemap list)
07-17 20:12:36.566  3847  3847 D MainActivity: onOptionsItemSelected()
--------- beginning of events
07-17 20:12:38.385  3847  3847 I am_on_top_resumed_lost_called: [0,org.openhab.habdroid.ui.MainActivity,topStateChangedWhenResumed]
07-17 20:12:38.385  3847  3847 D MainActivity: onPause()
07-17 20:12:38.386  3847  3847 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,performPause]
07-17 20:12:38.403  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@74e900e
07-17 20:12:38.408  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:38.408  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:38.412  3847  3847 I am_on_create_called: [0,org.openhab.habdroid.ui.AboutActivity,performCreate]
07-17 20:12:38.414  3847  3847 I am_on_start_called: [0,org.openhab.habdroid.ui.AboutActivity,handleStartActivity]
07-17 20:12:38.415  3847  3847 I am_on_resume_called: [0,org.openhab.habdroid.ui.AboutActivity,RESUME_ACTIVITY]
07-17 20:12:38.419  3847  3847 I am_on_top_resumed_gained_called: [0,org.openhab.habdroid.ui.AboutActivity,topStateChangedWhenResumed]
07-17 20:12:38.706  3847  8276 D OpenGLRenderer: endAllActiveAnimators on 0x76fe8f6e00 (NavigationMenuItemView) with handle 0x775a421200
07-17 20:12:38.719  3847  3847 D MainActivity: onStop()
07-17 20:12:38.719  3847  3847 D PageConnectionHolderFragment: onStop()
07-17 20:12:38.719  3847  3847 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,STOP_ACTIVITY_ITEM]
07-17 20:12:38.719  3847  3847 D MainActivity: onSaveInstanceState()
07-17 20:12:38.719  3847  3847 D ContentController: onSaveInstanceState()
07-17 20:12:39.566  3847  3847 I am_on_top_resumed_lost_called: [0,org.openhab.habdroid.ui.AboutActivity,topStateChangedWhenResumed]
07-17 20:12:39.569  3847  3847 I am_on_paused_called: [0,org.openhab.habdroid.ui.AboutActivity,performPause]
07-17 20:12:39.582  3847  3847 I am_on_restart_called: [0,org.openhab.habdroid.ui.MainActivity,performRestartActivity]
07-17 20:12:39.584  3847  3847 D MainActivity: onStart()
07-17 20:12:39.584  3847  3847 D PageConnectionHolderFragment: onStart(), started false
07-17 20:12:39.591  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:39.595  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:39.596  3847  3847 D MainActivity: onActiveConnectionChanged()
07-17 20:12:39.604  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:39.604  3847  3847 D MainActivity: Cannot auto select server: No server with configured wifi
07-17 20:12:39.605  3847  3847 I am_on_start_called: [0,org.openhab.habdroid.ui.MainActivity,handleStartActivity]
07-17 20:12:39.605  3847  3847 D MainActivity: onResume()
07-17 20:12:39.608  3847  3847 I am_on_resume_called: [0,org.openhab.habdroid.ui.MainActivity,RESUME_ACTIVITY]
07-17 20:12:39.608  3847  3847 I am_on_top_resumed_gained_called: [0,org.openhab.habdroid.ui.MainActivity,topWhenResuming]
07-17 20:12:40.068  3847  3847 I am_on_stop_called: [0,org.openhab.habdroid.ui.AboutActivity,LIFECYCLER_STOP_ACTIVITY]
07-17 20:12:40.070  3847  3847 I am_on_destroy_called: [0,org.openhab.habdroid.ui.AboutActivity,performDestroy]
07-17 20:12:40.175  3847  3847 D MainActivity: onOptionsItemSelected()
07-17 20:12:40.924  3847  3847 I am_on_top_resumed_lost_called: [0,org.openhab.habdroid.ui.MainActivity,topStateChangedWhenResumed]
07-17 20:12:40.925  3847  3847 D MainActivity: onPause()
07-17 20:12:40.925  3847  3847 I am_on_paused_called: [0,org.openhab.habdroid.ui.MainActivity,performPause]
07-17 20:12:40.941  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@45889f1
07-17 20:12:40.945  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:40.945  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:40.948  3847  3847 I am_on_create_called: [0,org.openhab.habdroid.ui.PreferencesActivity,performCreate]
07-17 20:12:40.950  3847  3847 D Ringtone-debug: setUri+mUri=content://settings/system/notification_sound
07-17 20:12:40.951  3847  3847 D RingtoneManager: getActualDefaultRingtoneUri+uriString=content://media/internal/audio/media/46,type=2
07-17 20:12:40.964  3847  3847 D Ringtone: Successfully created local player
07-17 20:12:40.964  3847  3847 D RingtoneManager: getActualDefaultRingtoneUri+uriString=content://media/internal/audio/media/46,type=2
07-17 20:12:40.970  3847  3847 D PreferencesActivity: Removing notification prefs for < 25
07-17 20:12:40.973  3847  3847 D ServerConfiguration: load: ServerConfiguration(id=1, name=Home, localPath=ServerPath(url=https://<openhab-local-address-Home>:8443/, userName=<none>, password=<none>), remotePath=ServerPath(url=https://<openhab-remote-address-Home>/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=null, wifiSsid=)
07-17 20:12:40.974  3847  3847 I am_on_start_called: [0,org.openhab.habdroid.ui.PreferencesActivity,handleStartActivity]
07-17 20:12:40.974  3847  3847 I am_on_resume_called: [0,org.openhab.habdroid.ui.PreferencesActivity,RESUME_ACTIVITY]
07-17 20:12:40.978  3847  3847 I am_on_top_resumed_gained_called: [0,org.openhab.habdroid.ui.PreferencesActivity,topStateChangedWhenResumed]
07-17 20:12:41.007  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:41.009  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:41.027  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:41.028  3847  3847 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
07-17 20:12:41.040  3847  3861 V MediaPlayer: resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
07-17 20:12:41.040  3847  3861 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
07-17 20:12:41.304  3847  3847 D MainActivity: onStop()
07-17 20:12:41.304  3847  3847 D PageConnectionHolderFragment: onStop()
07-17 20:12:41.305  3847  3847 I am_on_stop_called: [0,org.openhab.habdroid.ui.MainActivity,STOP_ACTIVITY_ITEM]
07-17 20:12:41.305  3847  3847 D MainActivity: onSaveInstanceState()
07-17 20:12:41.305  3847  3847 D ContentController: onSaveInstanceState()
07-17 20:12:43.023  3847  3847 I am_on_top_resumed_lost_called: [0,org.openhab.habdroid.ui.PreferencesActivity,topStateChangedWhenResumed]
07-17 20:12:43.023  3847  3847 I am_on_paused_called: [0,org.openhab.habdroid.ui.PreferencesActivity,performPause]
07-17 20:12:43.027  3847  3847 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@891aba6
07-17 20:12:43.032  3847  3847 V Monotype: SetAppTypeFace- try to flip, app = org.openhab.habdroid
07-17 20:12:43.032  3847  3847 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
07-17 20:12:43.042  3847  3847 I am_on_create_called: [0,org.openhab.habdroid.ui.LogActivity,performCreate]
07-17 20:12:43.043  3847  3847 I am_on_start_called: [0,org.openhab.habdroid.ui.LogActivity,handleStartActivity]
07-17 20:12:43.044  3847  3847 I am_on_resume_called: [0,org.openhab.habdroid.ui.LogActivity,RESUME_ACTIVITY]
07-17 20:12:43.049  3847  3847 I am_on_top_resumed_gained_called: [0,org.openhab.habdroid.ui.LogActivity,topStateChangedWhenResumed]
07-17 20:12:43.068  3847  3847 D LogActivity: onCreateOptionsMenu()

Edit: Connecting through myopenhab website and clicking on view “openhab dashboard” I get “504 Gateway Time-out”

Can you go to http://your-openhab:8080/#!/settings/services/org.openhab.openhabcloud and make sure it’s set to “Notifications & Remote Access”?

Yes.

It is set to both notifications and remote access. For me it just suddenly stopped working for me few days ago while I was using it.