Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android HomeAssistant app will not connect locally over WiFi to install Matter device. #4877

Open
EW5801 opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working webview

Comments

@EW5801
Copy link

EW5801 commented Dec 5, 2024

As a new Home Assistant user, I have a web interface that is working well using the local IP URL https://10.0.0.11:8123/ which defaults to non-secure mode.

My local connection problem is stopping me adding a Nest thermostat (Gen 1) via Matter. HA requires the Nest to be fully installed through Google Home (to view the Matter QR code), and then added to the configuration via HA app running on Android ver 14.

HA app connects to HA server (running in a ProxMox virtual environment 8.2.4) when connecting over wireless data through DuckDNS, but I cannot make it connect to HA server properly when switching to WiFi.

When the phone is WiFi, the phone can successfully ping the local IP address (10.0.0.11) and can ping server name homeassistant.local returning the local IP address (10.0.0.11)

In the HA App:
Home assistant URL set to https://xxxx.duckdns.org:8123/ (again - worked well on the carrier's data plan)
Home network WiFi SSID to the on-premises network SSID
Internal connection tried multiple ways to no avail:
http://homeassistant.local:8123/
Refreshing the internal connection returns "There was an error loading Home Assistant, please review the connection settings and try again...

Also, with the above setup, I can only connect when I turn off WiFi on the phone and connect using DuckDNS. i.e. When on WiFi, the app will only let me in the the settings which I've been trying various internal connection settings.

If important, the environment is in a Shaw/Rogers (Canada) environment that uses an ARRIS router/modem Model TG4482A (not in bridged mode). Also running Bitdefender security software on the remote PC (works fine), and on the phone.

Any suggestions would be greatly appreciated.

Home Assistant Android app version(s):

Android version(s):

Device model(s):

Home Assistant version:

Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:

Companion App Logs:


Screenshot or video of problem:

Additional information:

@EW5801 EW5801 added the bug Something isn't working label Dec 5, 2024
@dshokouhi
Copy link
Member

please provide the error you get in teh app logs when you see the pop-up, the logs were requested as part of the issue template which appears to be below everything you wrote. Please make sure to fill out the template completely as well.

@dshokouhi dshokouhi added the question Further information is requested label Dec 5, 2024
@EW5801
Copy link
Author

EW5801 commented Dec 5, 2024

Sorry. I hope this is what you need...
Thanks!

Home Assistant Android app version(s): 2024.10.3-full

Android version(s): 14

Device model(s): Google Pixel 6A

Home Assistant version:
Core 2024.11.3
Supervisor 2024.11.4
Operating System 14.0
Frontend 20241106.2

Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:

Companion App Logs:
--------- beginning of main
12-04 16:40:48.512 7407 7407 D ServerConnectionInfo: Using internal URL
12-04 16:40:48.525 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@7941bd6
12-04 16:40:48.527 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efca20490 (RippleDrawable) with handle 0xb400006d3ca98820
12-04 16:40:48.533 7407 7407 E WebviewActivity: onReceivedError: errorCode: -2 url:http://homeassistant.local:8123/?external_auth=1
12-04 16:40:48.537 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:48.576 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:40:48.582 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:48.582 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359248582)
12-04 16:40:48.591 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:48.591 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:48.591 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:48.591 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:48.728 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:48.728 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:48.734 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:48.734 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:48.734 7407 7407 D WebviewActivity: Callback null
12-04 16:40:48.735 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:40:48.735 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:40:49.567 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:49.572 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@ec6cf3d
12-04 16:40:49.575 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efca49ba0 (RippleDrawable) with handle 0xb400006d3cac9210
12-04 16:40:49.606 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:49.606 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359249606)
12-04 16:40:49.609 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:49.609 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:49.610 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:49.610 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:49.678 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:49.678 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:49.684 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:49.684 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:49.685 7407 7407 D WebviewActivity: Callback null
12-04 16:40:49.688 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:40:49.688 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:40:49.689 7407 7455 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:40:49.689 7407 7455 I WebViewPresenterImpl: Found color -15720924.
12-04 16:40:49.689 7407 7455 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:40:49.689 7407 7455 I WebViewPresenterImpl: Found color -15658735.
12-04 16:40:51.946 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:51.946 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:51.954 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:51.954 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:51.954 7407 7407 D WebviewActivity: Callback null
12-04 16:40:51.954 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:40:51.954 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:40:51.954 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:40:51.954 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:40:51.955 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:40:51.955 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:40:53.779 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:53.779 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:53.782 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:53.782 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:53.784 7407 7407 D WebviewActivity: Callback null
12-04 16:40:53.784 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:40:53.784 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:40:54.993 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:54.993 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:54.996 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:54.996 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:54.997 7407 7407 D WebviewActivity: Callback null
12-04 16:40:54.997 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:40:54.997 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:40:57.777 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:40:57.777 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:40:57.780 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:57.780 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:57.781 7407 7407 D WebviewActivity: Callback null
12-04 16:40:57.781 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:40:57.781 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:40:58.529 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:59.568 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@e0464bb
12-04 16:40:59.587 7407 7407 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
12-04 16:40:59.617 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:59.618 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359259618)
12-04 16:40:59.622 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:59.622 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:40:59.623 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:40:59.623 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:00.831 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:00.831 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:00.834 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:00.834 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:00.835 7407 7407 D WebviewActivity: Callback null
12-04 16:41:00.835 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:41:00.835 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:41:07.029 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:07.029 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359267029)
12-04 16:41:07.033 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:07.033 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:07.034 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:07.034 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:08.574 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:08.575 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:08.581 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:08.581 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:08.581 7407 7407 D WebviewActivity: Callback null
12-04 16:41:08.583 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:08.583 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:08.583 7407 7431 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:08.583 7407 7431 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:08.584 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:08.584 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:09.594 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:11.151 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:11.153 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@68ac47b
12-04 16:41:11.156 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efcad6f30 (RippleDrawable) with handle 0xb400006d3ca5b320
12-04 16:41:11.190 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:11.191 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359271191)
12-04 16:41:11.195 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:11.195 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:11.195 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:11.195 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:11.272 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:11.273 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:11.281 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:11.281 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:11.283 7407 7407 D WebviewActivity: Callback null
12-04 16:41:11.285 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:11.285 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:11.286 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:11.286 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:11.286 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:11.286 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:14.359 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:14.359 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:14.362 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:14.362 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:14.364 7407 7407 D WebviewActivity: Callback null
12-04 16:41:14.364 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:41:14.364 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:41:20.048 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:20.048 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:20.051 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:20.051 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:20.051 7407 7407 D WebviewActivity: Callback null
12-04 16:41:20.052 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:20.052 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:20.052 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:20.052 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:20.052 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:20.052 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:21.153 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:21.280 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:21.280 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:21.299 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:21.299 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:21.299 7407 7407 D WebviewActivity: Callback null
12-04 16:41:21.299 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:21.299 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:21.299 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:21.299 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:21.299 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:21.300 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:25.200 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:25.203 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@6e4daca
12-04 16:41:25.205 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efca5ca30 (RippleDrawable) with handle 0xb400006d3cac62a0
12-04 16:41:25.242 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:25.242 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359285242)
12-04 16:41:25.245 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:25.246 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:25.246 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:25.246 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:25.286 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:25.287 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:25.290 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:25.290 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:25.297 7407 7407 D WebviewActivity: Callback null
12-04 16:41:25.297 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:25.297 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:25.297 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:25.297 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:25.297 7407 7431 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:25.297 7407 7431 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:35.204 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:37.449 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:37.453 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@3a8d939
12-04 16:41:37.464 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efcbd6d70 (RippleDrawable) with handle 0xb400006d3cacc2d0
12-04 16:41:37.502 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:37.503 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359297503)
12-04 16:41:37.512 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:37.512 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:37.513 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:37.513 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:37.554 7407 9466 D WebviewActivity: External bus {"type":"config/get","id":1}
12-04 16:41:37.554 7407 7407 D WebviewActivity: externalBus({"id":1,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true,"canCommissionMatter":true,"canImportThreadCredentials":true,"hasAssist":true,"hasBarCodeScanner":1,"canSetupImprov":true}});
12-04 16:41:37.558 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:37.558 7407 7407 D ServerConnectionInfo: Using external URL
12-04 16:41:37.559 7407 7407 D WebviewActivity: Callback null
12-04 16:41:37.559 7407 7407 E WebviewActivity: Cannot set status bar color. Skipping coloring...
12-04 16:41:37.559 7407 7407 E WebviewActivity: Cannot set navigation bar color. Skipping coloring...
12-04 16:41:44.931 7407 9466 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":2}
12-04 16:41:44.934 7407 7407 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:48.004 7407 9466 D WebviewActivity: External bus {"type":"theme-update","id":3}
12-04 16:41:48.065 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:48.065 7407 7407 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-04 16:41:48.065 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-04 16:41:48.065 7407 7450 I WebViewPresenterImpl: Found color -15720924.
12-04 16:41:48.066 7407 7450 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-04 16:41:48.066 7407 7450 I WebViewPresenterImpl: Found color -15658735.
12-04 16:41:59.196 7407 9466 D WebviewActivity: External bus {"type":"config_screen/show","id":4}
12-04 16:41:59.217 7407 7407 D IntegrationRepository: setAppActive(): false
12-04 16:41:59.219 7407 7407 D IntegrationRepository: setAppActive(): false
12-04 16:41:59.226 7407 7407 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
12-04 16:41:59.230 7407 7450 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:59.258 7407 7431 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:59.259 7407 7431 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:59.303 7407 7407 I ContentCaptureHelper: Setting logging level to OFF
12-04 16:41:59.303 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359319303)
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.346 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.347 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.347 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.347 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:41:59.349 7407 7431 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:41:59.365 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:41:59.369 7407 7407 D SettingsWearDetection: API unavailable for discovering nodes (no Wear)
12-04 16:41:59.504 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359183272, currentMillis: 1733359319504)
12-04 16:41:59.504 7407 7407 D IntegrationRepository: setAppActive(): true
12-04 16:41:59.875 7407 7407 D VRI[WebViewActivity]: visibilityChanged oldVisibility=true newVisibility=false
12-04 16:41:59.923 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback$1@5392624
12-04 16:42:00.738 7407 9466 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":5}
12-04 16:42:01.272 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.324 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.391 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.473 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.555 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.609 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.707 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:01.825 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:02.092 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:02.661 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:03.197 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:03.298 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:03.370 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:04.166 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:04.569 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:04.886 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:05.723 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:06.760 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:06.945 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:07.879 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:07.981 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:08.082 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:08.200 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:09.154 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:10.289 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:10.389 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:10.525 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:10.659 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:11.377 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:11.532 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:13.741 7407 27386 D TrafficStats: tagSocket(147) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:13.754 7407 29444 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:13.993 7407 29447 D TrafficStats: tagSocket(315) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:14.005 7407 29448 D TrafficStats: tagSocket(321) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:14.245 7407 29449 D TrafficStats: tagSocket(323) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:14.497 7407 29450 D TrafficStats: tagSocket(326) with statsTag=0xffffffff, statsUid=-1
12-04 16:42:15.155 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:15.155 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:15.155 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:15.155 7407 7407 E mpanion.android: Invalid resource ID 0x00000000.
12-04 16:42:17.031 7407 7431 D LogcatReader: Read logcat for pid 7407
12-04 16:42:17.093 7407 7431 D LogcatReader: Done reading logcat for pid 7407
12-04 16:42:30.907 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:42:34.331 7407 7450 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
12-04 16:42:34.469 7407 7450 I SensorReceiver: Sensor updates and sync completed
12-04 16:42:34.622 7407 7407 D LogFragment: User want to share log
12-04 16:42:34.640 7407 7407 I LogFragment: Create log file to: /storage/emulated/0/Android/data/io.homeassistant.companion.android/cache/logs/homeassistant_companion_log_11-4-2024_16-42-34.txt
12-04 16:42:34.654 7407 7407 I LogFragment: Open share dialog with log file
12-04 16:42:34.678 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@735d72a
12-04 16:42:34.682 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efcb5b520 (RippleDrawable) with handle 0xb400006d3cadcf20
12-04 16:42:34.686 7407 7407 D IntegrationRepository: setAppActive(): false
12-04 16:42:34.686 7407 7407 D IntegrationRepository: setAppActive(): false
12-04 16:42:34.712 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1733359355686, currentMillis: 1733359354712)
12-04 16:42:34.713 7407 7407 D IntegrationRepository: setAppActive(): true
12-04 16:43:21.431 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1733359355686, currentMillis: 1733359401431)
12-04 16:43:21.454 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1733359355686, currentMillis: 1733359401454)
12-04 16:43:21.454 7407 7407 D IntegrationRepository: setAppActive(): true
12-04 16:43:25.153 7407 7407 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
12-04 16:43:25.165 7407 7407 W Choreographer: Frame time is 0.114702 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
12-04 16:43:27.877 7407 7407 W LogFragment: User don't want to share the log
12-04 16:43:27.877 7407 7407 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@1fef2c0
12-04 16:43:27.884 7407 9373 D HWUI : endAllActiveAnimators on 0xb400006efcc34960 (RippleDrawable) with handle 0xb400006d3cad89f0
12-04 16:43:27.937 7407 7407 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1733359355686, currentMillis: 1733359407937)
12-04 16:43:27.937 7407 7407 D IntegrationRepository: setAppActive(): true
12-04 16:43:28.904 7407 7431 D LogcatReader: Read logcat for pid 7407

Screenshot or video of problem:

Additional information:

@dshokouhi
Copy link
Member

12-04 16:40:48.533 7407 7407 E WebviewActivity: onReceivedError: errorCode: -2 url:http://homeassistant.local:8123/?external_auth=1

error -2 is a host look up error, may be having an issue with your local DNS

https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_HOST_LOOKUP

this is not an error the app can solve, what is your networking setup like? that may help narrow down the issue

you can also just use the IP directly if the local host name does not work out in your network

@dshokouhi dshokouhi added webview and removed question Further information is requested labels Dec 5, 2024
@EW5801
Copy link
Author

EW5801 commented Dec 8, 2024

Found the problem. Matter enabled devices need the HA App to be connected to the same network as the Matter device. You either need your HA ecosystem to be LAN (WiFi) only (mine was not), or if you want secured access via DuckDNS for remote acceess, you then need to setup a temporary reverse proxy using the NGINX addon. Once configured, your phone can connect over WiFi to the HA server which then allows you to add the Matter enabled device. Once the devices is added, I was able to disable NGINX and go back my secured access over DuckDNS when then allowed me to access HA from my phone over the carrier's data network and securely from a web browser. Bit of a pain in the neck, but with some instructions from K Peyanski, it seems to have worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working webview
Projects
None yet
Development

No branches or pull requests

2 participants