home-assistant / home-assistant/android

Microphone remains locked after using two-way audio in Companion App (WebRTC)

Open
#6,153 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):** 2025.11.4-full (19134)

**Android version(s):** 16

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

**Home Assistant version:** 2025.12.0

**Last working Home Assistant release (if known):** N/A

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

I am using a two-way audio setup with go2rtc as live provider and Advanced Camera Card in WebRTC mode.

Everything works correctly in the browser (Firefox) on both a laptop and the same Android phone. However, when using the Home Assistant Companion App, the microphone appears to remain locked after being used once.

Steps to reproduce:

1. Open a dashboard tab containing the doorbell with an Advanced Camera Card and enable the microphone (img1).

1. The connection is correctly reset and a new WebRTC stream with microphone support starts. Audio works as expected and the green “microphone in use” indicator appears in the top-right corner (img2).

1. Disable the microphone by pressing the toggle again. The two-way audio stream stops, but the green “microphone in use” indicator remains visible.

1. Navigate to another tab in the Companion App that does not contain any Advanced Camera Card. The green microphone indicator is still present.

1. Close the Companion App. The green indicator disappears, but the microphone is no longer usable system-wide (e.g. recording a voice message in WhatsApp records no audio).

1. Reopen the Companion App. Even on a tab without any Advanced Camera Card, the green “microphone in use” indicator reappears.

Expected behavior:

When disabling two-way audio or leaving the dashboard, the Companion App should fully release the microphone so it can be used by other applications.

Actual behavior:

Once the microphone is activated, it appears to remain permanently locked by the Companion App.

Workaround:

The only way to restore microphone functionality is to reboot the phone.

**Companion App Logs:**

[homeassistant_companion_log_11-13-2025_16-6-30.txt](https://github.com/user-attachments/files/24142599/homeassistant_companion_log_11-13-2025_16-6-30.txt)

**Screenshot or video of problem:**

![Image](https://github.com/user-attachments/assets/cec432d1-59dd-4ad9-93d5-9b16673157d9)

![Image](https://github.com/user-attachments/assets/1497a01f-c1b1-40c8-9d71-ea81650d8b9b)

**Additional information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.