home-assistant / home-assistant/android

command_ringer_mode no longer works reliable

Open
#7,211 5 comments 0 reactions 0 assignees View on GitHub
bug notifications
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**

**Android version(s):** 17

**Device model(s):** Pixel 10

**Home Assistant version:** 2026.7.2

**Last working Home Assistant release (if known):** I guess 2026.5.X, but I guess it's more related to Android 17 than to Home assistant.

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

I'm using the notification `command_ringer_mode` to set the ringer mode of my phone to `vibrate` when I leave home and back to `normal` when I arrive at home. That worked perfectly until I updated to Android 17.

It still sometime works, but unreliable. As an example I took two log files. One where the app was in background and the other when the App was in foreground. In the background case I got the message that the ringer mode is changed, but it did not change the ringer mode. Then I went into the app to get the logs and tried again. This time the ringer mode was changed correctly. Not sure whether that is a permission issue in Android 17, but I didn't find out yet...

This is the script, which I'm using:
```
alias: Mathias - All Phones - RingerMode=silent
sequence:
- data:
message: command_ringer_mode
data:
command: silent
action: notify.all_mobile_phones_mathias
- data:
message: Ringer mode set to silent
data:
tag: ringer_mode
action: notify.all_mobile_phones_mathias
mode: single
description: ""
```

It sends the command_ringer_mode together with a message. The message is always received, but the command ringer mode is no longer reliable applied. I also tried to disable the message and only send the command_ringer_mode, but that didn't change anything.

**Companion App Logs:**

***Log, where the app was in background***
```
--------- beginning of system
07-19 09:39:27.880 27941 27941 D InsetsController: hide(ime())
07-19 09:39:27.880 27941 27941 I ImeTracker: io.homeassistant.companion.android:8f09c22f: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:39:36.196 27941 27941 D InsetsController: hide(ime())
07-19 09:39:36.196 27941 27941 I ImeTracker: io.homeassistant.companion.android:a231537f: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:06.340 27941 27941 D InsetsController: hide(ime())
07-19 09:41:06.340 27941 27941 I ImeTracker: io.homeassistant.companion.android:78604de1: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:27.938 27941 27941 D InsetsController: hide(ime())
07-19 09:41:27.938 27941 27941 I ImeTracker: io.homeassistant.companion.android:4e1915ed: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:27.970 27941 27941 I ImeTracker: system_server:d9ef0e25: onCancelled at PHASE_CLIENT_ON_CONTROLS_CHANGED
07-19 09:43:08.579 27941 27941 D InsetsController: hide(ime())
07-19 09:43:08.579 27941 27941 I ImeTracker: io.homeassistant.companion.android:80119a00: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:43:09.603 27941 27941 I ImeTracker: io.homeassistant.companion.android:97dbce56: onRequestHide at ORIGIN_CLIENT reason HIDE_CLOSE_CURRENT_SESSION fromUser false userId 0 displayId 0
07-19 09:43:09.603 27941 27941 D InsetsController: hide(ime())
07-19 09:43:09.603 27941 27941 I ImeTracker: io.homeassistant.companion.android:97dbce56: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:43:11.551 27941 27941 D InsetsController: hide(ime())
07-19 09:43:11.551 27941 27941 I ImeTracker: io.homeassistant.companion.android:c28175d5: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:49:27.714 27941 27941 D InsetsController: hide(ime())
07-19 09:49:27.714 27941 27941 I ImeTracker: io.homeassistant.companion.android:bab08cc2: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:49:32.495 27941 27941 D InsetsController: hide(ime())
07-19 09:49:32.495 27941 27941 I ImeTracker: io.homeassistant.companion.android:5c27f9: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
--------- beginning of main
07-19 09:50:39.866 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:39.867 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:39.888 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to vibrate, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:50:39.898 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:50:40.091 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:40.091 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:40.110 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:50:40.259 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:50:40.261 27941 22137 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:50:46.031 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:46.031 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:46.048 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:50:46.084 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:50:46.089 27941 23811 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:50:46.109 27941 27941 D SensorReceiverBase: Received intent: android.app.action.INTERRUPTION_FILTER_CHANGED
07-19 09:50:46.111 27941 23811 D SensorReceiverBase$onReceive: Sensor(s) [dnd_sensor] corresponding to received event android.app.action.INTERRUPTION_FILTER_CHANGED are disabled, skipping sensors update
07-19 09:50:46.353 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:46.354 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:46.372 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:50:46.378 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:50:51.252 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:51.253 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:51.271 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:50:51.320 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:50:51.322 27941 22137 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:50:51.342 27941 27941 D SensorReceiverBase: Received intent: android.app.action.INTERRUPTION_FILTER_CHANGED
07-19 09:50:51.343 27941 22137 D SensorReceiverBase$onReceive: Sensor(s) [dnd_sensor] corresponding to received event android.app.action.INTERRUPTION_FILTER_CHANGED are disabled, skipping sensors update
07-19 09:50:51.404 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:50:51.406 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:50:51.414 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:50:51.421 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.747 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:50:53.748 27941 27941 I ImeTracker: io.homeassistant.companion.android:cb7b12a4: onRequestHide at ORIGIN_CLIENT reason HIDE_CLOSE_CURRENT_SESSION fromUser false userId 0 displayId 0
07-19 09:50:53.748 27941 27941 D InsetsController: hide(ime())
07-19 09:50:53.748 27941 27941 I ImeTracker: io.homeassistant.companion.android:cb7b12a4: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:50:55.728 27941 27941 D VRI[SettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
07-19 09:50:55.731 27941 27941 D IntegrationRepositoryImpl: setAppActive(): false
07-19 09:50:55.764 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): android.app.Activity$$ExternalSyntheticLambda0@8e04bdd
07-19 09:50:55.775 27941 27941 D IntegrationRepositoryImpl: setAppActive(): false
07-19 09:50:57.203 27941 27941 D NotificationManagerExtensionsKt: Cancel notification with tag "null" and id "0"
07-19 09:50:57.206 27941 27941 D NotificationManagerExtensionsKt: Check if the notification is in a group...
07-19 09:50:57.206 27941 27941 D NotificationManagerExtensionsKt: Notification is not in a group. Cancel notification...
07-19 09:50:57.229 27941 22137 D ServerConnectionStateProviderImpl: usesInternalSsid is: true, usesWifi is: true
07-19 09:50:57.265 27941 22137 D NotificationDeleteReceiver$onReceive: Notification cleared event successful!
07-19 09:51:03.439 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:03.440 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:03.516 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to vibrate, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:03.528 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:03.565 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:03.566 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:03.589 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:17.909 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:17.910 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:17.985 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:18.028 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:18.030 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:18.077 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:18.093 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:24.557 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:24.571 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:24.632 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:24.763 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:24.764 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:24.849 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:24.874 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:27.397 27941 27941 D NotificationManagerExtensionsKt: Cancel notification with tag "null" and id "0"
07-19 09:51:27.402 27941 27941 D NotificationManagerExtensionsKt: Check if the notification is in a group...
07-19 09:51:27.402 27941 27941 D NotificationManagerExtensionsKt: Notification is not in a group. Cancel notification...
07-19 09:51:27.445 27941 22137 D ServerConnectionStateProviderImpl: usesInternalSsid is: true, usesWifi is: true
07-19 09:51:27.461 27941 22137 D NotificationDeleteReceiver$onReceive: Notification cleared event successful!
07-19 09:51:36.938 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:36.944 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:37.006 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:37.047 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:37.048 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:37.111 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:37.120 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:42.616 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:42.629 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:42.673 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:42.832 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:42.833 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:42.866 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:42.873 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:45.272 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@cc178c3
07-19 09:51:45.274 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1784447456729, currentMillis: 1784447505274)
07-19 09:51:45.282 27941 27941 D VRI[SettingsActivity]: visibilityChanged oldVisibility=false newVisibility=true
07-19 09:51:45.287 27941 27941 I Surface : Creating surface for consumer unnamed-27941-33 with slotExpansion=1 for 64 slots
07-19 09:51:45.287 27941 27941 I Surface : Creating surface for consumer VRI[SettingsActivity]#31(BLAST Consumer)31 with slotExpansion=1 for 64 slots
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.293 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.293 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.366 27941 27941 D InsetsController: hide(ime())
07-19 09:51:45.366 27941 27941 I ImeTracker: io.homeassistant.companion.android:51a1632e: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:51:45.368 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1784447456729, currentMillis: 1784447505368)
07-19 09:51:45.370 27941 27941 D IntegrationRepositoryImpl: setAppActive(): true
07-19 09:51:46.849 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:46.879 27941 22139 D LogcatReader$readLog: Read logcat for pid 27941
07-19 09:51:46.976 27941 22139 D LogcatReader$readLog: Done reading logcat for pid 27941
07-19 09:51:48.470 27941 22139 D LogcatReader$readLog: Read logcat for pid 27941
```

***Log, where the app was in foreground***
```
--------- beginning of system
07-19 09:39:36.196 27941 27941 D InsetsController: hide(ime())
07-19 09:39:36.196 27941 27941 I ImeTracker: io.homeassistant.companion.android:a231537f: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:06.340 27941 27941 D InsetsController: hide(ime())
07-19 09:41:06.340 27941 27941 I ImeTracker: io.homeassistant.companion.android:78604de1: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:27.938 27941 27941 D InsetsController: hide(ime())
07-19 09:41:27.938 27941 27941 I ImeTracker: io.homeassistant.companion.android:4e1915ed: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:41:27.970 27941 27941 I ImeTracker: system_server:d9ef0e25: onCancelled at PHASE_CLIENT_ON_CONTROLS_CHANGED
07-19 09:43:08.579 27941 27941 D InsetsController: hide(ime())
07-19 09:43:08.579 27941 27941 I ImeTracker: io.homeassistant.companion.android:80119a00: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:43:09.603 27941 27941 I ImeTracker: io.homeassistant.companion.android:97dbce56: onRequestHide at ORIGIN_CLIENT reason HIDE_CLOSE_CURRENT_SESSION fromUser false userId 0 displayId 0
07-19 09:43:09.603 27941 27941 D InsetsController: hide(ime())
07-19 09:43:09.603 27941 27941 I ImeTracker: io.homeassistant.companion.android:97dbce56: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:43:11.551 27941 27941 D InsetsController: hide(ime())
07-19 09:43:11.551 27941 27941 I ImeTracker: io.homeassistant.companion.android:c28175d5: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:49:27.714 27941 27941 D InsetsController: hide(ime())
07-19 09:49:27.714 27941 27941 I ImeTracker: io.homeassistant.companion.android:bab08cc2: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:49:32.495 27941 27941 D InsetsController: hide(ime())
07-19 09:49:32.495 27941 27941 I ImeTracker: io.homeassistant.companion.android:5c27f9: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:50:53.748 27941 27941 I ImeTracker: io.homeassistant.companion.android:cb7b12a4: onRequestHide at ORIGIN_CLIENT reason HIDE_CLOSE_CURRENT_SESSION fromUser false userId 0 displayId 0
07-19 09:50:53.748 27941 27941 D InsetsController: hide(ime())
07-19 09:50:53.748 27941 27941 I ImeTracker: io.homeassistant.companion.android:cb7b12a4: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
--------- beginning of main
07-19 09:51:03.439 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:03.440 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:03.516 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to vibrate, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:03.528 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:03.565 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:03.566 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:03.589 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:17.909 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:17.910 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:17.985 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:18.028 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:18.030 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:18.077 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:18.093 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:24.557 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:24.571 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:24.632 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:24.763 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:24.764 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:24.849 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:24.874 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:27.397 27941 27941 D NotificationManagerExtensionsKt: Cancel notification with tag "null" and id "0"
07-19 09:51:27.402 27941 27941 D NotificationManagerExtensionsKt: Check if the notification is in a group...
07-19 09:51:27.402 27941 27941 D NotificationManagerExtensionsKt: Notification is not in a group. Cancel notification...
07-19 09:51:27.445 27941 22137 D ServerConnectionStateProviderImpl: usesInternalSsid is: true, usesWifi is: true
07-19 09:51:27.461 27941 22137 D NotificationDeleteReceiver$onReceive: Notification cleared event successful!
07-19 09:51:36.938 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:36.944 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:37.006 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:37.047 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:37.048 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:37.111 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:37.120 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:42.616 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:42.629 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:42.673 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:51:42.832 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:51:42.833 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:51:42.866 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:51:42.873 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:51:45.272 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@cc178c3
07-19 09:51:45.274 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1784447456729, currentMillis: 1784447505274)
07-19 09:51:45.282 27941 27941 D VRI[SettingsActivity]: visibilityChanged oldVisibility=false newVisibility=true
07-19 09:51:45.287 27941 27941 I Surface : Creating surface for consumer unnamed-27941-33 with slotExpansion=1 for 64 slots
07-19 09:51:45.287 27941 27941 I Surface : Creating surface for consumer VRI[SettingsActivity]#31(BLAST Consumer)31 with slotExpansion=1 for 64 slots
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.292 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.293 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.293 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:45.366 27941 27941 D InsetsController: hide(ime())
07-19 09:51:45.366 27941 27941 I ImeTracker: io.homeassistant.companion.android:51a1632e: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:51:45.368 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1784447456729, currentMillis: 1784447505368)
07-19 09:51:45.370 27941 27941 D IntegrationRepositoryImpl: setAppActive(): true
07-19 09:51:46.849 27941 27941 E mpanion.android: Invalid resource ID 0x00000000.
07-19 09:51:46.879 27941 22139 D LogcatReader$readLog: Read logcat for pid 27941
07-19 09:51:46.976 27941 22139 D LogcatReader$readLog: Done reading logcat for pid 27941
07-19 09:51:48.470 27941 22139 D LogcatReader$readLog: Read logcat for pid 27941
07-19 09:51:48.560 27941 22139 D LogcatReader$readLog: Done reading logcat for pid 27941
07-19 09:51:49.633 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): android.app.Dialog$$ExternalSyntheticLambda2@5545ff2
07-19 09:51:49.638 27941 27941 I Surface : Creating surface for consumer unnamed-27941-34 with slotExpansion=1 for 64 slots
07-19 09:51:49.638 27941 27941 I Surface : Creating surface for consumer VRI[SettingsActivity]#32(BLAST Consumer)32 with slotExpansion=1 for 64 slots
07-19 09:51:49.646 27941 27941 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
07-19 09:51:50.733 27941 27941 D LogFragment: User want to share log
07-19 09:51:50.739 27941 27941 I LogFragment: Create log file to: /storage/emulated/0/Android/data/io.homeassistant.companion.android/cache/logs/homeassistant_companion_log_6-19-2026_9-51-50.txt
07-19 09:51:50.746 27941 27941 I LogFragment: Open share dialog with log file
07-19 09:51:50.757 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): null
07-19 09:51:50.761 27941 18620 D HWUI : endAllActiveAnimators on 0xb4000079eba91c10 (RippleDrawable) with handle 0xb400007b6bad4160
07-19 09:51:50.769 27941 27941 D IntegrationRepositoryImpl: setAppActive(): false
07-19 09:51:50.770 27941 27941 D IntegrationRepositoryImpl: setAppActive(): false
07-19 09:51:50.785 27941 27941 D InsetsController: hide(ime())
07-19 09:51:50.785 27941 27941 I ImeTracker: io.homeassistant.companion.android:ac1c245d: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:51:50.786 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1784447511768, currentMillis: 1784447510786)
07-19 09:51:50.787 27941 27941 D IntegrationRepositoryImpl: setAppActive(): true
07-19 09:51:54.267 27941 27941 D VRI[SettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
07-19 09:51:54.281 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): android.app.Activity$$ExternalSyntheticLambda0@8e04bdd
07-19 09:51:55.757 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@cc178c3
07-19 09:51:55.775 27941 27941 I Surface : Creating surface for consumer unnamed-27941-35 with slotExpansion=1 for 64 slots
07-19 09:51:55.775 27941 27941 I Surface : Creating surface for consumer VRI[SettingsActivity]#33(BLAST Consumer)33 with slotExpansion=1 for 64 slots
07-19 09:51:55.791 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1784447511768, currentMillis: 1784447515791)
07-19 09:51:55.826 27941 27941 D InsetsController: hide(ime())
07-19 09:51:55.826 27941 27941 I ImeTracker: io.homeassistant.companion.android:7852c58b: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
07-19 09:51:55.832 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): ImeOnBackInvokedCallback@191061882 Callback=android.window.IOnBackInvokedCallback$Stub$Proxy@e6a18bd
07-19 09:51:55.834 27941 27941 D IntegrationRepositoryImpl: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1784447511768, currentMillis: 1784447515834)
07-19 09:51:55.838 27941 27941 D IntegrationRepositoryImpl: setAppActive(): true
07-19 09:51:55.840 27941 27941 D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@cc178c3
07-19 09:51:55.858 27941 27941 I ImeTracker: system_server:3512cb43: onCancelled at PHASE_CLIENT_ON_CONTROLS_CHANGED
07-19 09:52:04.031 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:04.032 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:04.051 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:52:04.132 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:52:04.133 27941 23199 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:52:04.134 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:04.135 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:04.141 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to silent, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:52:04.147 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:52:04.156 27941 27941 D SensorReceiverBase: Received intent: android.app.action.INTERRUPTION_FILTER_CHANGED
07-19 09:52:04.157 27941 23196 D SensorReceiverBase$onReceive: Sensor(s) [dnd_sensor] corresponding to received event android.app.action.INTERRUPTION_FILTER_CHANGED are disabled, skipping sensors update
07-19 09:52:08.595 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:08.596 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:08.612 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode set to vibrate, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:52:08.621 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:52:08.715 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:08.716 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:08.730 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:52:08.769 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:52:08.772 27941 23199 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:52:08.795 27941 27941 D SensorReceiverBase: Received intent: android.app.action.INTERRUPTION_FILTER_CHANGED
07-19 09:52:08.798 27941 23199 D SensorReceiverBase$onReceive: Sensor(s) [dnd_sensor] corresponding to received event android.app.action.INTERRUPTION_FILTER_CHANGED are disabled, skipping sensors update
07-19 09:52:12.763 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:12.764 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:12.782 27941 27941 D MessagingManager$handleMessage: Processing device command
07-19 09:52:12.935 27941 27941 D SensorReceiverBase: Received intent: android.media.RINGER_MODE_CHANGED
07-19 09:52:12.937 27941 25446 W FirebaseMessaging: Unable to log event: analytics library is missing
07-19 09:52:12.938 27941 25446 D FirebaseCloudMessagingService: From: 331041709873
07-19 09:52:12.938 27941 22139 D SensorReceiverBase$onReceive: Sensor(s) [audio_sensor] corresponding to received event android.media.RINGER_MODE_CHANGED are disabled, skipping sensors update
07-19 09:52:12.948 27941 27941 D MessagingManager$handleMessage: Creating notification with following data: {message=Ringer mode back to normal, webhook_id=780d0216cea05bb938f2b52350cd4384ef1ba6a5debe38a87457ed5f3567053b, tag=ringer_mode, server_id=4}
07-19 09:52:12.955 27941 27941 D MessagingManager: Show notification with tag "ringer_mode" and id "-1480357435"
07-19 09:52:14.122 27941 22137 D LogcatReader$readLog: Read logcat for pid 27941
```

**Screenshot or video of problem:**

**Additional information:**

Contributor guide

Open the contributing guide

Research direction

Start at the MessagingManager$handleMessage entry point shown in the logs and reproduce the reported notification flow with the supplied script on Android 17, comparing foreground and background behavior. Done means command_ringer_mode reliably applies the requested ringer mode in both states.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.