You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experience this unsolved error as described in issue 3235 .
I'm using latest Home Assistant and Companion Android app from F-Droid.
Whenever I change networks (e.g. go off wi-fi, onto mobile, and then turn VPN on) Home Assistant Companion will connect to my home network's (internal IP) Home Assistant server just fine. Same is true when I return home and VPN goes off as the phone connects to wi-fi.
HOWEVER, notifications sent with notify.notify do not reach the phone anymore, and sometimes there's a nasty traceback in the log (see below). Only a force stop and then restart of the app re-establishes the local push token, leading to notifications working again.
It is important to know that the app is functioning properly after changing networks — but the local push notifications feature is not.
Previous Author: Rudd-O on 17.01.2023
Jan 17 18:30:35 assistant hass[1184825]: 2023-01-17 18:30:35.720 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [126709766522672] Error handling message: Unknown error (unknown_error) from 10.250.4.18 (Home Assistant/LOCAL-1 (Android 13; Pixel 6 Pro))
Jan 17 18:30:35 assistant hass[1184825]: Traceback (most recent call last):
Jan 17 18:30:35 assistant hass[1184825]: File "/opt/assistant/lib64/python3.10/site-packages/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
Jan 17 18:30:35 assistant hass[1184825]: await func(hass, connection, msg)
Jan 17 18:30:35 assistant hass[1184825]: File "/opt/assistant/lib64/python3.10/site-packages/homeassistant/components/mobile_app/websocket_api.py", line 106, in handle_push_notification_channel
Jan 17 18:30:35 assistant hass[1184825]: await registered_channels[webhook_id].async_teardown()
Jan 17 18:30:35 assistant hass[1184825]: File "/opt/assistant/lib64/python3.10/site-packages/homeassistant/components/mobile_app/push_notification.py", line 92, in async_teardown
Jan 17 18:30:35 assistant hass[1184825]: await asyncio.gather(*cancel_pending_local_tasks)
Jan 17 18:30:35 assistant hass[1184825]: File "/opt/assistant/lib64/python3.10/site-packages/homeassistant/components/mobile_app/push_notification.py", line 55, in handle_push_failed
Jan 17 18:30:35 assistant hass[1184825]: await fallback_send(data)
Jan 17 18:30:35 assistant hass[1184825]: File "/opt/assistant/lib64/python3.10/site-packages/homeassistant/components/mobile_app/notify.py", line 144, in _async_send_remote_message_target
Jan 17 18:30:35 assistant hass[1184825]: push_token = app_data[ATTR_PUSH_TOKEN]
Jan 17 18:30:35 assistant hass[1184825]: KeyError: 'push_token'
Log from Companion App:
--------- beginning of main
01-18 00:54:09.199 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:09.199 25933 25966 D UrlRepository: Using external URL
01-18 00:54:09.201 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:09.202 25933 25966 D UrlRepository: Using external URL
01-18 00:54:09.336 25933 26003 D TrafficStats: tagSocket(76) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:09.399 25933 26003 D WebSocketRepository: Websocket: onOpen
01-18 00:54:09.399 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:09.400 25933 26003 D WebSocketRepository: Message number null received
01-18 00:54:09.400 25933 25966 D WebSocketRepository: Auth Requested
01-18 00:54:09.444 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:09.445 25933 26003 D WebSocketRepository: Message number null received
01-18 00:54:09.445 25933 25966 D WebSocketRepository: Sending message 688: {type=supported_features, id=688, features={coalesce_messages=1}}
01-18 00:54:09.445 25933 25966 D WebSocketRepository: Resubscribing to active subscriptions...
01-18 00:54:09.445 25933 25966 D WebSocketRepository: Sending message 689: {type=mobile_app/push_notification_channel, webhook_id=e7d9da9b68f9966eb470d93858a55c6676765aeab7992d444b52cd1cd38f0228, support_confirm=true, id=689}
01-18 00:54:09.446 25933 25966 D WebSocketRepository: Message number 689 sent
01-18 00:54:09.484 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:09.484 25933 26003 D WebSocketRepository: Message number 688 received
01-18 00:54:09.535 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:09.535 25933 26003 D WebSocketRepository: Message number 689 received
01-18 00:54:10.687 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999641496, currentMillis: 1673999650687)
01-18 00:54:11.205 25933 25933 I Choreographer: Skipped 61 frames! The application may be doing too much work on its main thread.
01-18 00:54:11.217 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999641496, currentMillis: 1673999651217)
01-18 00:54:11.843 25933 25933 D UrlRepository: Using external URL
01-18 00:54:12.300 25933 25933 D IntegrationRepository: setSessionExpireMillis(): 1673999653300
01-18 00:54:12.300 25933 25933 D IntegrationRepository: setAppActive(): false
01-18 00:54:12.306 25933 25933 D WebviewActivity: Matter commissioning status changed to NOT_STARTED
01-18 00:54:12.306 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999653300, currentMillis: 1673999652306)
01-18 00:54:12.390 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.391 25933 25982 I WM-Processor: Moving WorkSpec (1f505530-4aa5-4e9c-b297-d29357a7f522) to the foreground
01-18 00:54:12.394 25933 25966 D SensorWorker: Updating all Sensors in foreground.
01-18 00:54:12.399 25933 25933 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android.minimal/androidx.work.impl.foreground.SystemForegroundService (has extras) }
01-18 00:54:12.407 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.412 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.448 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999653300, currentMillis: 1673999652448)
01-18 00:54:12.451 25933 25933 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.451 25933 25933 D UrlRepository: Using external URL
01-18 00:54:12.539 25933 2569 D TrafficStats: tagSocket(177) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:12.617 25933 26124 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":9}
01-18 00:54:12.622 25933 25933 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.632 25933 25966 E AudioManager: updatePortConfig port not found for handle: 14
01-18 00:54:12.674 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.676 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.679 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.682 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.753 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.757 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.759 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.761 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.820 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.822 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.824 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.826 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.898 25933 25968 D OpenGLRenderer: endAllActiveAnimators on 0xb400c14255f52f00 (RippleDrawable) with handle 0xb400c0260b598a20
01-18 00:54:12.957 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.959 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.961 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:12.963 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.034 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.039 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.044 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.049 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.114 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.116 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.119 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.121 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.171 25933 26124 D WebviewActivity: External bus {"type":"theme-update","id":10}
01-18 00:54:13.175 25933 25933 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
01-18 00:54:13.175 25933 25933 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
01-18 00:54:13.176 25933 26029 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
01-18 00:54:13.176 25933 26029 I WebViewPresenterImpl: Found color -15720924.
01-18 00:54:13.177 25933 26029 D WebViewPresenterImpl: Try getting color from webview color "#111111".
01-18 00:54:13.177 25933 26029 I WebViewPresenterImpl: Found color -15658735.
01-18 00:54:13.180 25933 25966 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:13.210 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:13.285 25933 25962 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=1f505530-4aa5-4e9c-b297-d29357a7f522, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
01-18 00:54:13.989 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:13.995 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:13.995 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.011 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.011 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.035 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.035 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.053 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:14.053 25933 29643 E BLASTBufferQueue: [VRI[WebViewActivity]#133](f:0,a:4) Faking releaseBufferCallback from transactionCompleteCallback
01-18 00:54:16.130 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:16.132 25933 26003 D WebSocketRepository: Message number 689 received
01-18 00:54:16.135 25933 25966 D WebSocketRepository: Sending message 690: {type=mobile_app/push_notification_confirm, webhook_id=e7d9da9b68f9966eb470d93858a55c6676765aeab7992d444b52cd1cd38f0228, confirm_id=b45bc86546e28f4baedbd07c6f645034, id=690}
01-18 00:54:16.136 25933 25966 D WebSocketRepository: Message number 690 sent
01-18 00:54:16.178 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:16.178 25933 26003 D WebSocketRepository: Message number 690 received
01-18 00:54:16.185 25933 25933 D MessagingService: Creating notification with following data: {message=test}
01-18 00:54:16.194 25933 25933 D MessagingService: Show notification with tag "null" and id "-1037589255"
01-18 00:54:26.420 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:26.420 25933 25966 D WebSocketRepository: Sending message 691: {type=ping, id=691}
01-18 00:54:26.420 25933 25966 D WebSocketRepository: Message number 691 sent
01-18 00:54:26.527 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:26.528 25933 26003 D WebSocketRepository: Message number 691 received
01-18 00:54:27.221 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999653300, currentMillis: 1673999667221)
01-18 00:54:27.227 25933 25933 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:27.228 25933 25933 D UrlRepository: Using external URL
01-18 00:54:32.254 25933 25933 D SensorReceiver: Received intent: android.net.wifi.WIFI_STATE_CHANGED
01-18 00:54:32.515 25933 25933 D SensorReceiver: Received intent: android.net.wifi.WIFI_STATE_CHANGED
01-18 00:54:32.828 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:32.828 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:32.870 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:32.877 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:32.957 25933 2056 D TrafficStats: tagSocket(94) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:32.991 25933 25998 E AudioManager: updatePortConfig port not found for handle: 14
01-18 00:54:33.143 25933 25998 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:33.193 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:33.218 25933 25997 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:33.243 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:34.724 25933 25933 D IntegrationRepository: setSessionExpireMillis(): 1673999675724
01-18 00:54:34.724 25933 25933 D IntegrationRepository: setAppActive(): false
01-18 00:54:34.725 25933 25933 D IntegrationRepository: setSessionExpireMillis(): 1673999675725
01-18 00:54:34.725 25933 25933 D IntegrationRepository: setAppActive(): false
01-18 00:54:34.729 25933 25933 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
01-18 00:54:34.732 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:34.736 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:34.806 25933 25997 E AudioManager: updatePortConfig port not found for handle: 14
01-18 00:54:34.863 25933 25997 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:34.881 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
01-18 00:54:35.151 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.158 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.162 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.347 25933 25998 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:35.367 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.373 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.376 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.379 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.435 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.444 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.547 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.551 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.564 25933 25998 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:35.586 25933 25998 D SensorReceiver: Nothing to update
01-18 00:54:35.700 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.701 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.756 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.764 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.771 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.789 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:35.812 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:35.855 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:36.050 25933 25966 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:36.069 25933 25933 D TrafficStats: tagSocket(100) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:36.078 25933 25997 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:36.150 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:36.174 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:36.200 25933 25999 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:36.252 25933 25998 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:36.258 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:36.284 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:37.631 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:37.645 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:37.651 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:37.651 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:37.717 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:37.718 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:37.724 25933 25933 D TrafficStats: tagSocket(100) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:37.806 25933 25933 D TrafficStats: tagSocket(100) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:37.843 25933 25998 E AudioManager: updatePortConfig port not found for handle: 14
01-18 00:54:37.858 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:37.863 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:37.867 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:37.902 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:37.907 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:38.168 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.168 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.171 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.172 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.209 25933 25998 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.210 25933 25966 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.211 25933 25965 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.312 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:38.328 25933 25933 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
01-18 00:54:38.359 25933 25998 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.360 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.362 25933 26030 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.364 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.366 25933 26029 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.390 25933 26029 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.392 25933 26030 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.398 25933 2568 D TrafficStats: tagSocket(100) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:38.535 25933 25999 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.536 25933 25997 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.631 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.632 25933 25999 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: false
01-18 00:54:38.733 25933 25966 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.740 25933 25965 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:38.765 25933 25933 D TrafficStats: tagSocket(179) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:38.831 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:38.887 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:46.109 25933 26124 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":11}
01-18 00:54:46.110 25933 26003 E WebSocketRepository: Websocket: onFailure
01-18 00:54:46.110 25933 26003 E WebSocketRepository: java.net.SocketException: Software caused connection abort
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.net.SocketInputStream.socketRead0(Native Method)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.net.SocketInputStream.socketRead(SocketInputStream.java:118)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.net.SocketInputStream.read(SocketInputStream.java:173)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.net.SocketInputStream.read(SocketInputStream.java:143)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okio.InputStreamSource.read(JvmOkio.kt:94)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:125)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okio.RealBufferedSource.request(RealBufferedSource.kt:206)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okio.RealBufferedSource.require(RealBufferedSource.kt:199)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okio.RealBufferedSource.readByte(RealBufferedSource.kt:209)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
01-18 00:54:46.110 25933 26003 E WebSocketRepository: at java.lang.Thread.run(Thread.java:1012)
01-18 00:54:49.792 25933 25933 D WebviewActivity: Matter commissioning status changed to NOT_STARTED
01-18 00:54:49.792 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999675725, currentMillis: 1673999689792)
01-18 00:54:49.843 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:49.845 25933 25970 I WM-Processor: Moving WorkSpec (f1f3f95c-1c3f-4e32-ba8b-d512d9fc994f) to the foreground
01-18 00:54:49.849 25933 25966 D SensorWorker: Updating all Sensors in foreground.
01-18 00:54:49.851 25933 25933 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android.minimal/androidx.work.impl.foreground.SystemForegroundService (has extras) }
01-18 00:54:49.853 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:49.861 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:49.861 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999675725, currentMillis: 1673999689861)
01-18 00:54:49.867 25933 25933 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:49.867 25933 25933 D UrlRepository: Using external URL
01-18 00:54:49.910 25933 2568 D TrafficStats: tagSocket(94) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:49.933 25933 26124 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":12}
01-18 00:54:49.951 25933 25966 E AudioManager: updatePortConfig port not found for handle: 14
01-18 00:54:50.026 25933 25933 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:50.063 25933 25966 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:54:50.101 25933 25966 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:50.276 25933 25971 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=f1f3f95c-1c3f-4e32-ba8b-d512d9fc994f, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
01-18 00:54:50.970 25933 26124 D WebviewActivity: External bus {"type":"theme-update","id":13}
01-18 00:54:50.983 25933 25933 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
01-18 00:54:50.983 25933 25933 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
01-18 00:54:50.983 25933 25965 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
01-18 00:54:50.984 25933 25965 I WebViewPresenterImpl: Found color -15720924.
01-18 00:54:50.987 25933 25965 D WebViewPresenterImpl: Try getting color from webview color "#111111".
01-18 00:54:50.987 25933 25965 I WebViewPresenterImpl: Found color -15658735.
01-18 00:54:56.124 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:56.124 25933 25965 D UrlRepository: Using external URL
01-18 00:54:56.133 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:56.133 25933 25965 D UrlRepository: Using external URL
01-18 00:54:56.141 25933 26003 D TrafficStats: tagSocket(108) with statsTag=0xffffffff, statsUid=-1
01-18 00:54:56.157 25933 26003 D WebSocketRepository: Websocket: onOpen
01-18 00:54:56.158 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:56.158 25933 26003 D WebSocketRepository: Message number null received
01-18 00:54:56.158 25933 25965 D WebSocketRepository: Auth Requested
01-18 00:54:56.165 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:56.166 25933 26003 D WebSocketRepository: Message number null received
01-18 00:54:56.166 25933 25966 D WebSocketRepository: Sending message 692: {type=supported_features, id=692, features={coalesce_messages=1}}
01-18 00:54:56.166 25933 25966 D WebSocketRepository: Resubscribing to active subscriptions...
01-18 00:54:56.167 25933 25966 D WebSocketRepository: Sending message 693: {type=mobile_app/push_notification_channel, webhook_id=e7d9da9b68f9966eb470d93858a55c6676765aeab7992d444b52cd1cd38f0228, support_confirm=true, id=693}
01-18 00:54:56.167 25933 25966 D WebSocketRepository: Message number 693 sent
01-18 00:54:56.173 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:56.173 25933 26003 D WebSocketRepository: Message number 692 received
01-18 00:54:56.181 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:56.181 25933 26003 D WebSocketRepository: Message number 693 received
01-18 00:54:56.181 25933 26029 E WebSocketRepository: Issue re-registering subscription with {type=mobile_app/push_notification_channel, webhook_id=e7d9da9b68f9966eb470d93858a55c6676765aeab7992d444b52cd1cd38f0228, support_confirm=true}
01-18 00:54:56.536 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:54:56.536 25933 25965 D WebSocketRepository: Sending message 694: {type=ping, id=694}
01-18 00:54:56.536 25933 25965 D WebSocketRepository: Message number 694 sent
01-18 00:54:56.545 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:54:56.546 25933 26003 D WebSocketRepository: Message number 694 received
01-18 00:55:00.006 25933 25933 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
01-18 00:55:00.009 25933 25997 I SensorReceiver: Skipping faster update because not charging/different preference
01-18 00:55:12.803 25933 25954 I io.homeassistant.companion.android.minimal: Background concurrent copying GC freed 1222458(41MB) AllocSpace objects, 40(3664KB) LOS objects, 75% free, 19MB/79MB, paused 48us,65us total 122.624ms
01-18 00:55:12.854 25933 25956 W System : A resource failed to call destroy.
01-18 00:55:26.554 25933 25997 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:55:26.554 25933 25997 D WebSocketRepository: Sending message 695: {type=ping, id=695}
01-18 00:55:26.554 25933 25997 D WebSocketRepository: Message number 695 sent
01-18 00:55:26.649 25933 26003 D WebSocketRepository: Websocket: onMessage (text)
01-18 00:55:26.650 25933 26003 D WebSocketRepository: Message number 695 received
01-18 00:55:37.289 25933 26124 D WebviewActivity: External bus {"type":"config_screen/show","id":14}
01-18 00:55:37.297 25933 25933 D IntegrationRepository: setSessionExpireMillis(): 1673999738297
01-18 00:55:37.297 25933 25933 D IntegrationRepository: setAppActive(): false
01-18 00:55:37.298 25933 25933 D IntegrationRepository: setSessionExpireMillis(): 1673999738298
01-18 00:55:37.298 25933 25933 D IntegrationRepository: setAppActive(): false
01-18 00:55:37.312 25933 25933 D UrlRepository: Using internal URL
01-18 00:55:37.312 25933 25933 D UrlRepository: Using internal URL
01-18 00:55:37.317 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999738298, currentMillis: 1673999737317)
01-18 00:55:37.320 25933 25933 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
01-18 00:55:37.323 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:55:37.326 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:55:37.349 25933 25933 D UrlRepository: Using external URL
01-18 00:55:37.377 25933 25933 D UrlRepository: Using external URL
01-18 00:55:37.414 25933 25965 D NextAlarm: No alarm is scheduled, sending unavailable
01-18 00:55:37.437 25933 25965 D UrlRepository: localUrl is: false, usesInternalSsid is: true, usesWifi is: true
01-18 00:55:37.460 25933 25933 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1673999738298, currentMillis: 1673999737460)
01-18 00:55:42.187 25933 25966 D LogcatReader: Read logcat for pid 25933
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (mobile_app) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of mobile_app can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign mobile_app Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
I experience this unsolved error as described in issue 3235 .
@dshokouhi is mentioning that it could be a HA core bug.
Because it is still an error and @jpelgrom was asking for a new issue, I created this.
I've been using Home Assistant for a week. It's fantastic. Thank you for making this incredible software.
If you need more information like logs etc. I can provide more if those from the previous post are not enough.
What version of Home Assistant Core has the issue?
2025.1.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
push_notification.py & notify.py
Link to integration documentation on our website
https://github.com/home-assistant/core/blob/dev/homeassistant/components/mobile_app/notify.py#L136
Diagnostics information
Errormessage from Companion App:
Log from Companion App:
Example YAML snippet
No response
Anything in the logs that might be useful for us?
See Analysis from @dshokouhi
Additional information
Components in case of the origial post from Jan'2023 and matching with the mentioned logs:
Home Assistant Android version:
2022.12.0-minimal
Android version:
13
Phone model:
Pixel 6 Pro
Home Assistant version:
2023.1
In my case in Jan'2025
Home Assistant Android version:
2024.12.1-minimal
Android version:
15 (GrapheneOS)
Phone model:
Google Pixel 8
System Information
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
The text was updated successfully, but these errors were encountered: