Home Assistant Android app not updating sensors after reverse proxy enable

Hi,

I’m running HA on a ESXi machine using the OVA.
my router is based on OPNsense and is also running as a VM on the same ESXi host.
I use the NGINX plugin that is available in OPNsense to get SSL via Let’s Encrypt.

Before I enabled the reverse proxy I had everything working, all sensors (especially my location) worked on my Android 11 OnePlus8T phone (same story for my wife’s phone (all the same)).

But after changing everything to my domain name (I have split DNS set up, so my domain for HA resolves to internal IP on my internal network) (and enabling WebSockets) all seems to work fine, until I noticed my location sensor wasn’t updating anymore, again everyting else seems to work just fine. It does NOT matter if I’m on my local LAN or not.

I checked to app logs and it’s filled with this error (changed some privacy bits…):

--------- beginning of perf
07-31 13:15:34.711  7092  7576 I 111     :  OptJank - continuously drops frames:4
07-31 13:18:26.729  7092  7576 I 111     :  OptJank - continuously drops frames:4
07-31 13:30:15.240  7092  7576 I 111     :  OptJank - continuously drops frames:4
07-31 13:30:15.266  7092  7576 I 111     :  OptJank - continuously drops frames:4
--------- beginning of main
07-31 13:33:22.453  7092 13788 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:33:22.466  7092  7092 D ViewRootImpl[WebViewActivity]: windowFocusChanged hasFocus=false inTouchMode=true
07-31 13:33:22.468  7092 13788 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:33:22.589  7092 18670 D SensorWorker: Updating all Sensors.
07-31 13:33:22.590  7092 19047 I WM-Processor: Moving WorkSpec (e6646f84-37dd-4502-8163-b987c057843f) to the foreground
07-31 13:33:22.593  7092  7092 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
07-31 13:33:22.626  7092  7092 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
07-31 13:33:22.639  7092  7092 D LocBroadcastReceiver: Not requesting accurate location, last accurate location was too recent
07-31 13:33:22.666  7092 18670 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:33:22.709  7092 18670 E SensorReceiver: Exception while updating sensors.
07-31 13:33:22.709  7092 18670 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: retrofit2.HttpException: HTTP 403 
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateSensors(IntegrationRepositoryImpl.kt:519)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateSensors$1.invokeSuspend(Unknown Source:15)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
07-31 13:33:22.709  7092 18670 E SensorReceiver: Caused by: retrofit2.HttpException: HTTP 403 
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-31 13:33:22.709  7092 18670 E SensorReceiver: 	at java.lang.Thread.run(Thread.java:923)
07-31 13:33:22.711  7092 19046 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=e6646f84-37dd-4502-8163-b987c057843f, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
07-31 13:33:22.713  7092  7092 I WM-SystemFgDispatcher: Stopping foreground service
07-31 13:33:24.456  7092 13788 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:33:24.462  7092 13788 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Got single accurate location update: Location[fused 10,517606,3,876328 hAcc=12 et=+46d2rye4m12s658ms alt=20.80231479884924 vel=0.044443576 bear=122.52486 vAcc=22 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}]
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Location accurate enough, all done with high accuracy.
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Last Location: 
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Coords:(20.5176063, 10.8763277)
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Accuracy: 30.053
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Bearing: 115.52486
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
07-31 13:33:41.070  7092  7092 D LocBroadcastReceiver: Received location that is 1224 milliseconds old, 162774419846 compared to 162441221070 with source fused
07-31 13:33:41.071  7092 18670 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:33:41.079  7092  7092 D LocBroadcastReceiver: Received location update.
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Last Location: 
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Coords:(42.5176116, 41.8763221)
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Accuracy: 4.228
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Bearing: 0.0
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
07-31 13:33:41.081  7092  7092 D LocBroadcastReceiver: Skipping old location update since time is before the last one we sent, received: 162773111324 last sent: 16274441221070
07-31 13:33:41.097  7092  7092 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: Could not update location.
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: Error calling integration request update_location
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateLocation(IntegrationRepositoryImpl.kt:184)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateLocation$1.invokeSuspend(Unknown Source:15)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
07-31 13:33:41.133  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
07-31 13:34:01.045  7092  7092 D LocBroadcastReceiver: Received location update.
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Last Location: 
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Coords:(10.5176038, 4.8763263)
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Accuracy: 24.253
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Bearing: 15.51984
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
07-31 13:34:01.053  7092  7092 D LocBroadcastReceiver: Received location that is 16053 milliseconds old, 14444000 compared to 1444731241053 with source fused
07-31 13:34:01.055  7092 18670 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: Could not update location.
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: Error calling integration request update_location
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateLocation(IntegrationRepositoryImpl.kt:184)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateLocation$1.invokeSuspend(Unknown Source:15)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
07-31 13:34:01.096  7092 18670 E LocBroadcastReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
07-31 13:34:01.153  7092  7092 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
07-31 13:34:06.653  7092  7092 D DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@54ggg6c[WebViewActivity]
07-31 13:34:06.654  7092  7092 D ViewRootImpl[WebViewActivity]: windowFocusChanged hasFocus=true inTouchMode=true
07-31 13:34:06.662  7092  7092 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:34:06.662  7092  7092 D UrlRepository: Using external URL
07-31 13:34:06.707  7092 18670 D SensorWorker: Updating all Sensors.
07-31 13:34:06.708  7092 17201 I WM-Processor: Moving WorkSpec (95fa12e8-2bda-4g4d-a932-0cdf45yfghgf7c1) to the foreground
07-31 13:34:06.712  7092  7092 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
07-31 13:34:06.745  7092  7092 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
07-31 13:34:06.770  7092  7092 D LocBroadcastReceiver: Not requesting accurate location, last accurate location was too recent
07-31 13:34:06.792  7092 18670 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:34:06.833  7092 18670 E SensorReceiver: Exception while updating sensors.
07-31 13:34:06.833  7092 18670 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: retrofit2.HttpException: HTTP 403 
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateSensors(IntegrationRepositoryImpl.kt:519)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateSensors$1.invokeSuspend(Unknown Source:15)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
07-31 13:34:06.833  7092 18670 E SensorReceiver: Caused by: retrofit2.HttpException: HTTP 403 
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-31 13:34:06.833  7092 18670 E SensorReceiver: 	at java.lang.Thread.run(Thread.java:923)
07-31 13:34:06.835  7092 19046 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=95fa12e8-2gff-468d-a932-0chdfgg1, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
07-31 13:34:06.836  7092  7092 I WM-SystemFgDispatcher: Stopping foreground service
07-31 13:34:09.546  7092  7766 D WebviewActivity: External bus {"type":"config_screen/show","id":7}
07-31 13:34:09.569  7092 14266 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:34:09.574  7092 14266 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:34:09.591  7092  7092 D UrlRepository: Using external URL
07-31 13:34:09.591  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 2 lines
07-31 13:34:09.591  7092  7092 D UrlRepository: Using external URL
07-31 13:34:09.594  7092  7092 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:34:09.649  7092  7092 E SettingsPresenter: Unable to get core version.
07-31 13:34:09.649  7092  7092 E SettingsPresenter: io.homeassistant.companion.android.common.data.integration.IntegrationException: retrofit2.HttpException: HTTP 403 
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.getHomeAssistantVersion(IntegrationRepositoryImpl.kt:400)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$getHomeAssistantVersion$1.invokeSuspend(Unknown Source:14)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at io.homeassistant.companion.android.settings.SettingsPresenterImpl.nfcEnabled(SettingsPresenterImpl.kt:191)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at io.homeassistant.companion.android.settings.SettingsFragment.onCreatePreferences(SettingsFragment.kt:129)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:160)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.Fragment.performCreate(Fragment.java:2685)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:280)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1255)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentTransition.calculateFragments(FragmentTransition.java:1138)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentTransition.startTransitions(FragmentTransition.java:136)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2001)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1959)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1861)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2641)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2589)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:247)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:541)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:210)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1525)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.Activity.performStart(Activity.java:8030)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3637)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2246)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.os.Handler.dispatchMessage(Handler.java:106)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.os.Looper.loop(Looper.java:233)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at android.app.ActivityThread.main(ActivityThread.java:8010)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at java.lang.reflect.Method.invoke(Native Method)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: Caused by: retrofit2.HttpException: HTTP 403 
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-31 13:34:09.649  7092  7092 E SettingsPresenter: 	at java.lang.Thread.run(Thread.java:923)
07-31 13:34:09.650  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.655  7092  7092 V ViewRootImpl: The specified message queue synchronization  barrier token has not been posted or has already been removed
07-31 13:34:09.655  7092 14266 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:34:09.659  7092 14266 E sqlite3_android: ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
07-31 13:34:09.663  7092  7092 D ViewRootImpl[WebViewActivity]: windowFocusChanged hasFocus=false inTouchMode=true
07-31 13:34:09.699  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.702  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 42 lines
07-31 13:34:09.702  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.706  7092  7092 W Choreographer: Already have a pending vsync event.  There should only be one at a time.
07-31 13:34:09.707  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.709  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 20 lines
07-31 13:34:09.709  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.721  7092 18678 D SensorWorker: Updating all Sensors.
07-31 13:34:09.721  7092 17214 I WM-Processor: Moving WorkSpec (52968022-ab5d-4b54-8bc9-86bfa8dgfdgdfg6e8a) to the foreground
07-31 13:34:09.728  7092  7092 D DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@8dfgdfg858b[SettingsActivity]
07-31 13:34:09.729  7092  7092 D ViewRootImpl[SettingsActivity]: windowFocusChanged hasFocus=true inTouchMode=true
07-31 13:34:09.742  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.752  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 32 lines
07-31 13:34:09.752  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.752  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.753  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 8 lines
07-31 13:34:09.753  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.761  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.763  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 20 lines
07-31 13:34:09.763  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:09.767  7092  7092 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
07-31 13:34:09.792  7092  7092 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
07-31 13:34:09.810  7092  7092 D LocBroadcastReceiver: Not requesting accurate location, last accurate location was too recent
07-31 13:34:09.836  7092 17210 D UrlRepository: localUrl is: false and usesInternalSsid is: true
07-31 13:34:09.874  7092 17210 E SensorReceiver: Exception while updating sensors.
07-31 13:34:09.874  7092 17210 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: retrofit2.HttpException: HTTP 403 
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateSensors(IntegrationRepositoryImpl.kt:519)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateSensors$1.invokeSuspend(Unknown Source:15)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
07-31 13:34:09.874  7092 17210 E SensorReceiver: Caused by: retrofit2.HttpException: HTTP 403 
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-31 13:34:09.874  7092 17210 E SensorReceiver: 	at java.lang.Thread.run(Thread.java:923)
07-31 13:34:09.876  7092 19047 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=52968022-afffd-4b54-8bc9-86bdfgdfgc66e8a, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
07-31 13:34:09.878  7092  7092 I WM-SystemFgDispatcher: Stopping foreground service
07-31 13:34:10.216  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:10.220  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 24 lines
07-31 13:34:10.221  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:10.221  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:10.223  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 16 lines
07-31 13:34:10.223  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.817  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.883  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 177 lines
07-31 13:34:11.884  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.884  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.887  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 17 lines
07-31 13:34:11.887  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.892  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.900  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 22 lines
07-31 13:34:11.900  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.901  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.928  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 81 lines
07-31 13:34:11.928  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.928  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.929  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 1 line
07-31 13:34:11.929  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.933  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.951  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 64 lines
07-31 13:34:11.951  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:11.958  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:12.001  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 122 lines
07-31 13:34:12.001  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:12.001  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:12.001  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:12.077  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 203 lines
07-31 13:34:12.077  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:15.872  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:15.872  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:15.902  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:15.902  7092  7092 E mpanion.androi: Invalid ID 0x00000000.
07-31 13:34:15.935  7092  7092 I chatty  : uid=10321(io.homeassistant.companion.android) identical 3 lines

some helpful tips here: https://companion.home-assistant.io/docs/troubleshooting/networking

Hi,

I read it, no new insights tho…

Same problem here, with OPNSense.
I had it working before with raw nginx configuration, but the default config from OPNSense seems to be the problem.

I think there is some kind of protection triggered by OPNSense, but for now, I haven’t found the source. I will try some direct config file modification and update this post if I find any meaningful results.

1 Like

Ah, great to hear I’m not the only one!

Ok, that was really quick :smiley:
I had this problem for weeks now, and just because I found only your post with the same log error, I managed to find the solution. Thank you very much !

Go to the Nginx > Configuration
HTTP(S) > HTTP Server
Edit your homeassistant server configuration
Check “Advanced mode” on top
Check “Disable Bot Protection”

Save, Appyl, enjoy !

1 Like

YEEEEEES! thank you!