android icon indicating copy to clipboard operation
android copied to clipboard

Duplicate Notifications when using persistent connection (websocket)

Open joshuazd opened this issue 1 year ago • 75 comments

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

Android version(s): 16

Device model(s): Pixel 7

Home Assistant version: core-2025.11.2

Last working Home Assistant release (if known):

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

Notifications sent to phone via the companion app are duplicated.

action: notify.mobile_app_phone
data:
  message: Hello

Companion App Logs:

11-18 12:56:20.760  2345 27819 D LocationSensorManager: High accuracy mode disabled, because not in zone [1_zone.home_expanded]
11-18 12:56:21.027  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.027  2345 27819 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.031  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.031  2345 27819 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.032  2345 27819 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.032  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.034  2345 27819 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.035  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.230  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.230  2345 14365 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:21.232  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.232  2345 14365 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:21.256  2345   423 I SensorReceiverBase: Sensor updates and sync completed
11-18 12:56:21.265  2345 14365 I SensorReceiverBase: Sensor updates and sync completed
11-18 12:56:24.240  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.240  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.240  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.241  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:24.247  2345  2345 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1763492076957, currentMillis: 1763492184247)
11-18 12:56:24.265  2345  2345 D ImeBackDispatcher: switch root view (mImeCallbacks.size=0)
11-18 12:56:24.268  2345  2345 D InsetsController: hide(ime())
11-18 12:56:24.268  2345  2345 I ImeTracker: io.homeassistant.companion.android:51cc3e6e: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
11-18 12:56:24.269  2345  2345 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1763492076957, currentMillis: 1763492184268)
11-18 12:56:24.270  2345  2345 D IntegrationRepositoryImpl: setAppActive(): true
11-18 12:56:28.846  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.356  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.757  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.780  2345  2345 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback$1@5c167be
11-18 12:56:29.859  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.859  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.859  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.859  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:29.859  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:33.251  2345  2345 E mpanion.android: Invalid resource ID 0x00000000.
11-18 12:56:33.306  2345 14365 D LogcatReader$readLog: Read logcat for pid 2345
11-18 12:56:33.381  2345 14365 D LogcatReader$readLog: Done reading logcat for pid 2345
11-18 12:56:33.698  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.698  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.702  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.702  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.703  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.703  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.705  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.706  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.706  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.707  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.709  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.709  2345 25178 D ServerConnectionInfo: Using internal URL
11-18 12:56:33.711  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.711  2345   423 D ServerConnectionInfo: Using internal URL
11-18 12:56:33.711  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.713  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.714  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.714  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.716  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.717  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.717  2345 25178 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.718  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.719  2345 25178 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.719  2345 25178 D ServerConnectionInfo: Using internal URL
11-18 12:56:33.720  2345 25178 D WebSocketCoreImpl$sendMessage: Sending message 3308: {type=ping, id=3308}
11-18 12:56:33.720  2345 25178 D WebSocketCoreImpl$sendMessage: Message number 3308 sent awaiting answer from WebSocket
11-18 12:56:33.720  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.721  2345   423 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:33.723  2345   423 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:33.723  2345   423 D ServerConnectionInfo: Using internal URL
11-18 12:56:33.724  2345   423 D WebSocketCoreImpl$sendMessage: Sending message 3309: {type=ping, id=3309}
11-18 12:56:33.725  2345   423 D WebSocketCoreImpl$sendMessage: Message number 3309 sent awaiting answer from WebSocket
11-18 12:56:33.737  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:56:33.740  2345  2541 D WebSocketCoreImpl: Message id 3308 received
11-18 12:56:33.740  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:56:33.741  2345  2541 D WebSocketCoreImpl: Message id 3309 received
11-18 12:56:42.341  2345  2345 D LocationSensorManager: Received location update.
11-18 12:56:42.347  2345  2345 D ForegroundServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
11-18 12:56:42.347  2345 25178 D LocationSensorManager: Last Location: 
11-18 12:56:42.347  2345 25178 D LocationSensorManager: Coords:(38.6732257, -90.3288059)
11-18 12:56:42.347  2345 25178 D LocationSensorManager: Accuracy: 100.0
11-18 12:56:42.347  2345 25178 D LocationSensorManager: Bearing: 0.0
11-18 12:56:42.348  2345 25178 D LocationSensorManager: Begin evaluating if location update should be skipped
11-18 12:56:42.348  2345 25178 D LocationSensorManager: Received location that is 54 milliseconds old, 1763492202294 compared to 1763492202348 with source fused
11-18 12:56:42.348  2345 25178 D LocationSensorManager: Duplicate location received, not sending to HA
11-18 12:56:51.053  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:56:51.066  2345  2541 D WebSocketCoreImpl: Message id 2075 received
11-18 12:56:51.084  2345 14365 D WebSocketCoreImpl$sendMessage: Sending message 3310: {type=mobile_app/push_notification_confirm, webhook_id=899e0cde7f88e2d8a6c9b7c41bf66fca5873296b49081e70f3143396d09e4ff6, confirm_id=58b5e2e53fa5396afbc91f25898d51bb, id=3310}
11-18 12:56:51.085  2345 14365 D WebSocketCoreImpl$sendMessage: Message number 3310 sent awaiting answer from WebSocket
11-18 12:56:51.086  2345 25178 D WebSocketCoreImpl$sendMessage: Sending message 3311: {type=mobile_app/push_notification_confirm, webhook_id=899e0cde7f88e2d8a6c9b7c41bf66fca5873296b49081e70f3143396d09e4ff6, confirm_id=58b5e2e53fa5396afbc91f25898d51bb, id=3311}
11-18 12:56:51.087  2345 25178 D WebSocketCoreImpl$sendMessage: Message number 3311 sent awaiting answer from WebSocket
11-18 12:56:51.090  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:56:51.092  2345  2541 D WebSocketCoreImpl: Message id 3310 received
11-18 12:56:51.093  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:56:51.094  2345  2541 D WebSocketCoreImpl: Message id 3311 received
11-18 12:56:51.104  2345  2345 D MessagingManager$handleMessage: Creating notification with following data: {message=Hello, webhook_id=899e0cde7f88e2d8a6c9b7c41bf66fca5873296b49081e70f3143396d09e4ff6, server_id=1}
11-18 12:56:51.118  2345  2345 D MessagingManager: Show notification with tag "null" and id "-1739347562"
11-18 12:56:51.120  2345  2345 D MessagingManager$handleMessage: Creating notification with following data: {message=Hello, webhook_id=899e0cde7f88e2d8a6c9b7c41bf66fca5873296b49081e70f3143396d09e4ff6, server_id=1}
11-18 12:56:51.125  2345  2345 D MessagingManager: Show notification with tag "null" and id "-1739347559"
11-18 12:56:54.258  2345  2345 D NotificationManagerExtensionsKt: Cancel notification with tag "null" and id "0"
11-18 12:56:54.259  2345  2345 D NotificationManagerExtensionsKt: Check if the notification is in a group...
11-18 12:56:54.259  2345  2345 D NotificationManagerExtensionsKt: Notification is not in a group. Cancel notification...
11-18 12:56:54.277  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:56:54.282  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:56:56.002  2345 30471 D LogcatReader$readLog: Read logcat for pid 2345
11-18 12:56:56.022  2345 14365 D NotificationDeleteReceiver$onReceive: Notification cleared event successful!
11-18 12:56:56.064  2345 30471 D LogcatReader$readLog: Done reading logcat for pid 2345
11-18 12:56:56.101  2345  2386 I mpanion.android: Waiting for a blocking GC ProfileSaver
11-18 12:56:56.133  2345  2386 I mpanion.android: WaitForGcToComplete blocked ProfileSaver on Background for 31.370ms
11-18 12:57:00.023  2345  2345 D SensorReceiverBase: Received intent: android.intent.action.TIME_TICK
11-18 12:57:00.025  2345 30471 D LastUpdateManager: Last update is android.intent.action.TIME_TICK
11-18 12:57:00.029  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:00.032  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:00.033  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:00.034  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:00.034  2345 26413 D ServerConnectionInfo: Using internal URL
11-18 12:57:00.039  2345 26413 D ActivitySensorManager: Unregistering for activity updates.
11-18 12:57:00.041  2345 26413 D ActivitySensorManager: Registering for activity updates.
11-18 12:57:00.106  2345 14365 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:00.108  2345 14365 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:00.151  2345 30471 D ForegroundServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
11-18 12:57:00.626  2345 30471 D ActivitySensorManager: Received activity update.
11-18 12:57:03.733  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.733  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.737  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.738  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.743  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.743  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.744  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.745  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.746  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.747  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.747  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.747  2345 26413 D ServerConnectionInfo: Using internal URL
11-18 12:57:03.748  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.748  2345 30471 D ServerConnectionInfo: Using internal URL
11-18 12:57:03.748  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.749  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.751  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.751  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.751  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.751  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.753  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.753  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.753  2345 26413 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.753  2345 30471 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:03.754  2345 26413 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.754  2345 26413 D ServerConnectionInfo: Using internal URL
11-18 12:57:03.756  2345 30471 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:03.756  2345 30471 D ServerConnectionInfo: Using internal URL
11-18 12:57:03.756  2345 26413 D WebSocketCoreImpl$sendMessage: Sending message 3312: {type=ping, id=3312}
11-18 12:57:03.762  2345 26413 D WebSocketCoreImpl$sendMessage: Message number 3312 sent awaiting answer from WebSocket
11-18 12:57:03.763  2345 30471 D WebSocketCoreImpl$sendMessage: Sending message 3313: {type=ping, id=3313}
11-18 12:57:03.763  2345 30471 D WebSocketCoreImpl$sendMessage: Message number 3313 sent awaiting answer from WebSocket
11-18 12:57:03.779  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:57:03.780  2345  2541 D WebSocketCoreImpl: Message id 3312 received
11-18 12:57:03.782  2345  2541 D WebSocketCoreImpl: Websocket: onMessage (text)
11-18 12:57:03.782  2345  2541 D WebSocketCoreImpl: Message id 3313 received
11-18 12:57:05.153  2345  2345 D NotificationManagerExtensionsKt: Cancel notification with tag "null" and id "0"
11-18 12:57:05.154  2345  2345 D NotificationManagerExtensionsKt: Check if the notification is in a group...
11-18 12:57:05.154  2345  2345 D NotificationManagerExtensionsKt: Notification is not in a group. Cancel notification...
11-18 12:57:05.195  2345 14365 D ServerConnectionInfo: usesVpn is: false
11-18 12:57:05.199  2345 14365 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true
11-18 12:57:05.242  2345 14365 D NotificationDeleteReceiver$onReceive: Notification cleared event successful!
11-18 12:57:05.673  2345  2345 D ImeBackDispatcher: switch root view (mImeCallbacks.size=0)
11-18 12:57:05.705  2345  2345 D InsetsController: hide(ime())
11-18 12:57:05.707  2345  2345 I ImeTracker: io.homeassistant.companion.android:18056f4a: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
11-18 12:57:05.709  2345  2345 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1763492076957, currentMillis: 1763492225708)
11-18 12:57:05.730  2345  2345 D IntegrationRepositoryImpl: setAppActive(): true
11-18 12:57:06.227  2345 26347 D LogcatReader$readLog: Read logcat for pid 2345

Screenshot or video of problem:

Additional information:

joshuazd avatar Nov 18 '25 18:11 joshuazd

Did this previously work correctly for you or is this the first time using notifications?

Can you check in Settings > Companion app > Notification history if it also shows two notifications received?

Unfortunately I'm unable to reproduce this issue with the code example you've given.

jpelgrom avatar Nov 18 '25 20:11 jpelgrom

I also started experiencing duplicate notifications recently when using the websocket connection. It works correctly with Google FCM push notifications.

As far as I remember, this issue started for me with the latest beta version, 2025.11.3-full, or maybe with the previous one, 2025.11.2-full.

I experienced the issue on three devices:

  • Samsung S21 FE with Android 14
  • Samsung S20 FE with Android 13
  • Samsung S8 with Android 9

I already checked the Notification history list, and the notifications showed up duplicated and they were completely identical, originating from the websocket connection.

This issue is probably a duplicate of https://github.com/home-assistant/android/issues/2554. In that issue, @rubin110 described steps for a potential fix, and it worked for me as well, at least so far (for ~4 hours now). I'll report back if it breaks again.

edit: my HA core version is 2025.10.1

marazmarci avatar Nov 18 '25 21:11 marazmarci

Thanks a lot for solution. Changing persistent connection settings in companion app resolved the duplication.

vrtareg avatar Nov 18 '25 21:11 vrtareg

Sadly it seems to be only a temporary "solution". The issue returned on all three devices. ☹️

marazmarci avatar Nov 18 '25 22:11 marazmarci

I'm getting this same issue since updating to 2025.11.3-full on Android. Im also using Persistent notifications-always. Nothing has been changed or updated at the HA end. Example Android notification history is attached. These result in 2 popup notifications per notification sent. Ive tried rebooting the phone, but no change. Wife's phone is still on 2025.11.1-full and is working fine. Core 2025.10.4 Supervisor 2025.11.3 OS 16.2 Fronted 20251001.4 Companion app 2025.11.3-full (18924)

Image

Companion Log file of an example today.

11-19 11:24:41.184 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.192 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.195 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.204 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.211 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.211 7916 17866 D ServerConnectionInfo: Using internal URL 11-19 11:24:41.212 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.212 7916 16266 D ServerConnectionInfo: Using internal URL 11-19 11:24:41.216 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.224 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.226 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.231 7916 16266 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.231 7916 16266 D ServerConnectionInfo: Using internal URL 11-19 11:24:41.232 7916 16266 D WebSocketCoreImpl$sendMessage: Sending message 5177: {type=ping, id=5177} 11-19 11:24:41.233 7916 16266 D WebSocketCoreImpl$sendMessage: Message number 5177 sent awaiting answer from WebSocket 11-19 11:24:41.238 7916 8095 D WebSocketCoreImpl: Websocket: onMessage (text) 11-19 11:24:41.239 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.241 7916 8095 D WebSocketCoreImpl: Message id 5177 received 11-19 11:24:41.248 7916 17866 D ServerConnectionInfo: usesInternalSsid is: true, usesWifi is: true 11-19 11:24:41.248 7916 17866 D ServerConnectionInfo: Using internal URL 11-19 11:24:41.249 7916 17866 D WebSocketCoreImpl$sendMessage: Sending message 5178: {type=ping, id=5178} 11-19 11:24:41.249 7916 17866 D WebSocketCoreImpl$sendMessage: Message number 5178 sent awaiting answer from WebSocket 11-19 11:24:41.255 7916 8095 D WebSocketCoreImpl: Websocket: onMessage (text) 11-19 11:24:41.256 7916 8095 D WebSocketCoreImpl: Message id 5178 received 11-19 11:24:54.168 7916 8095 D WebSocketCoreImpl: Websocket: onMessage (text) 11-19 11:24:54.169 7916 8095 D WebSocketCoreImpl: Message id 25 received 11-19 11:24:54.172 7916 16269 D WebSocketCoreImpl$sendMessage: Sending message 5179: {type=mobile_app/push_notification_confirm, webhook_id=3dfd392bde253bff5c8c7be08fa8d09e041f30ebd66e8ecec972b9488b11716e, confirm_id=e45983923c91eeab9625c60d5f21e0c5, id=5179} 11-19 11:24:54.175 7916 16269 D WebSocketCoreImpl$sendMessage: Message number 5179 sent awaiting answer from WebSocket 11-19 11:24:54.176 7916 16267 D WebSocketCoreImpl$sendMessage: Sending message 5180: {type=mobile_app/push_notification_confirm, webhook_id=3dfd392bde253bff5c8c7be08fa8d09e041f30ebd66e8ecec972b9488b11716e, confirm_id=e45983923c91eeab9625c60d5f21e0c5, id=5180} 11-19 11:24:54.178 7916 16267 D WebSocketCoreImpl$sendMessage: Message number 5180 sent awaiting answer from WebSocket 11-19 11:24:54.186 7916 8095 D WebSocketCoreImpl: Websocket: onMessage (text) 11-19 11:24:54.187 7916 8095 D WebSocketCoreImpl: Message id 5179 received 11-19 11:24:54.193 7916 8095 D WebSocketCoreImpl: Websocket: onMessage (text) 11-19 11:24:54.193 7916 8095 D WebSocketCoreImpl: Message id 5180 received 11-19 11:24:54.198 7916 7916 D MessagingManager$handleMessage: Creating notification with following data: {channel=General, importance=default, message=test message 3, webhook_id=3dfd392bde253bff5c8c7be08fa8d09e041f30ebd66e8ecec972b9488b11716e, server_id=1} 11-19 11:24:54.206 7916 7916 D MessagingManager: Show notification with tag "null" and id "-1680064467" 11-19 11:24:54.207 7916 7916 I NotificationManager: io.homeassistant.companion.android: notify(-1680064467, null, Notification(channel=general shortcut=null contentView=null vibrate=null sound=null defaults=0 flags=AUTO_CANCEL color=0xff03a9f4 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user 11-19 11:24:54.212 7916 7916 D MessagingManager$handleMessage: Creating notification with following data: {channel=General, importance=default, message=test message 3, webhook_id=3dfd392bde253bff5c8c7be08fa8d09e041f30ebd66e8ecec972b9488b11716e, server_id=1} 11-19 11:24:54.218 7916 7916 D MessagingManager: Show notification with tag "null" and id "-1680064461" 11-19 11:24:54.219 7916 7916 I NotificationManager: io.homeassistant.companion.android: notify(-1680064461, null, Notification(channel=general shortcut=null contentView=null vibrate=null sound=null defaults=0 flags=AUTO_CANCEL color=0xff03a9f4 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user 11-19 11:24:57.307 7916 7916 I VRI[SettingsActivity]@eb37175: ViewPostIme pointer 0 11-19 11:24:57.308 7916 7916 I GestureDetector: obtain mCurrentDownEvent. id: 472529469 caller: androidx.core.view.GestureDetectorCompat.onTouchEvent:98 io.sentry.android.core.internal.gestures.SentryWindowCallback.handleTouchEvent:70 io.sentry.android.core.internal.gestures.SentryWindowCallback.dispatchTouchEvent:57 11-19 11:24:57.308 7916 7916 I VRI[SettingsActivity]@eb37175: call setFrameRateCategory for touch hint category=high hint, reason=touch, vri=VRI[SettingsActivity]@eb37175 11-19 11:24:57.319 7916 7916 I GestureDetector: obtain mCurrentMotionEventRaw. action: 2 id: 772862546 11-19 11:24:57.436 7916 7916 I VRI[SettingsActivity]@eb37175: ViewPostIme pointer 1 11-19 11:24:57.440 7916 16267 D LogcatReader$readLog: Read logcat for pid 7916

planetming avatar Nov 19 '25 10:11 planetming

I spoke too soon.

I have persistent connection only when I am in local network.

Once I am in all notifications are doubled, if I am our of my network they are OK...

vrtareg avatar Nov 19 '25 10:11 vrtareg

Hi everyone,

I’m having the same issue that other users have already described here.

Since updating to the latest Home Assistant Companion App for Android (2025.11.3-full), all of my TTS notifications are being executed twice.

My setup looks like this: Installation method: Home Assistant OS
Core: 2025.10.4
Supervisor: 2025.11.3
Operating System: 16.3
Frontend: 20251001.4
Android Companion App on the affected devices: 2025.11.3-full

The TTS notifications are sent via the notify.mobile_app_<device_id> service with the following schema:

action: notify.mobile_app_<device_id>
data:
  message: TTS
  data:
    ttl: 0
    priority: high
    media_stream: alarm_stream
    tts_text: "…"

The problem looks like this: Every single TTS notification is played twice in a row.
In the notification history of the Companion App I can see two identical entries (WebSocket) for each TTS attempt, with the same timestamp and the same payload. This also happens when I trigger the service directly from the Developer Tools in Home Assistant, so it is not caused by an automation firing twice.

I have not changed anything in my automations or blueprints. The behavior only started after updating the Android app. I just wanted to report this as well so it is clear that multiple users are affected and the issue might be found and fixed a bit faster.

Thanks a lot for looking into this and for your work.

maikel-ha avatar Nov 19 '25 12:11 maikel-ha

Yup, the workaround seems to last only for a few hours. I suspect the app gets background killed. Current workaround is to go full Google for notifications.

rubin110 avatar Nov 19 '25 15:11 rubin110

Same problem here, since last update I got duplicate notifications

Jonsonmon avatar Nov 19 '25 16:11 Jonsonmon

Can confirm that 3 devices:

OnePlus Nord 2 5G OnePlus 9 Pro Realmo Narzo 50

Receive duplicated notifications, both text and TTS. Not all the time, but majority of notifications are fired twice.

This began with update to latest 2025.11.3-full, previous version was stable in my case (not sure which it was, since Android app updates are forced automatically by Google).

FredyReady avatar Nov 20 '25 13:11 FredyReady

Getting the same behaviour on Pixel 6 Pro running CA 2025.11.3-full.

KaosLtd avatar Nov 20 '25 17:11 KaosLtd

Same problem on Android. Workaround was just a temporary solution.

It's look like a Companion App problem. The CA Notification History shows all the notification twice, while in the HA log, there is only 1 notification sent.

App 2025.11.3-full (18924). App last update: 15 November 2025 (play store info).

HA Core 2025.11.2 Supervisor 2025.11.3 Operating System 16.3 Frontend 20251105.0

RicXXX avatar Nov 20 '25 19:11 RicXXX

Also impacted on 2025.11.3-full

cdemi avatar Nov 21 '25 08:11 cdemi

Same problem here

DarkFeniXZp avatar Nov 21 '25 08:11 DarkFeniXZp

I tried to reproduce the issue but I was not able to. I've installed a new app (latest on the play store), enable Persistent Connection Always. Went in HA sent a notification and I only got one.

Do you see the issue, if you restart your phone and send a notification right away OR it only happens after sometimes after having the connection open for a while?

TimoPtr avatar Nov 21 '25 10:11 TimoPtr

I tried to reproduce the issue but I was not able to. I've installed a new app (latest on the play store), enable Persistent Connection Always. Went in HA sent a notification and I only got one.

Do you see the issue, if you restart your phone and send a notification right away OR it only happens after sometimes after having the connection open for a while?

Happens straight after a reboot.

KaosLtd avatar Nov 21 '25 10:11 KaosLtd

I tried to reproduce the issue but I was not able to. I've installed a new app (latest on the play store), enable Persistent Connection Always. Went in HA sent a notification and I only got one.

Do you see the issue, if you restart your phone and send a notification right away OR it only happens after sometimes after having the connection open for a while?

If I kill the App or restart the mobile, notification are twice (no change).

But if I follow the step for a potential fix, I have 30 minute of single notification, but after that, the twice notification is back.

RicXXX avatar Nov 21 '25 12:11 RicXXX

But if I follow the step for a potential fix, I have 30 minute of single notification, but after that, the twice notification is back.

I confirm that I can also replicate about 30 minutes of single notifications but then it reverts back

cdemi avatar Nov 21 '25 12:11 cdemi

Monitoring, I have the same issue. Thanks for all the effort!

wecoyote5 avatar Nov 21 '25 15:11 wecoyote5

~~Installed Core 2025.11.3, problem seems to be solved. (5 min ago installed. Maybe I'm wrong)~~

Jonsonmon avatar Nov 21 '25 17:11 Jonsonmon