android icon indicating copy to clipboard operation
android copied to clipboard

Issue with app connecting on launch - reasonably sure it's related to enabling mtls

Open stever29 opened this issue 3 months ago • 4 comments

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

Android version(s): 16 / OneUI 8

Device model(s): Samsung S25 Ultra

Home Assistant version: 2025.11.3

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

Description of problem, include YAML if issue is related to notifications: Since enabling mtls, the app regularly says 'Unable to connect to Home assistant'. Pressing retry between 1-3 times always results in a successful load. This happens on a very good network connection. It happens extremely regularly, but will only happen if you haven't used the app immediately beforehand (i.e. something like a session has timed out or the app has gone to sleep).

(I just want to say I super appreciate the work that went into enabling mtls, even with this issue it's amazing we have this on android.. thanks!)

Companion App Logs: Logs were massive and I'm not sure which bit was relevant so attached: homeassistant_companion_log_11-1-2025_10-3-45.txt

Screenshot or video of problem:

Image

Additional information:

stever29 avatar Dec 01 '25 17:12 stever29

I don't see anything suspicious in the logs, except that the background sync is disabled because it reach your daily usage, but this is unrelated to the issue you describe.

TimoPtr avatar Dec 08 '25 09:12 TimoPtr

I don't see anything suspicious in the logs, except that the background sync is disabled because it reach your daily usage, but this is unrelated to the issue you describe.

Thanks for looking through them. Appreciate you said it's unrelated but out of interest what does "the background sync is disabled because it reach your daily usage" mean? is the a daily usage limit from the android OS or something else?

Thanks again

stever29 avatar Dec 08 '25 15:12 stever29

Since few days ago started having the same issue, I have to press "update external url" for it to reconnect. Have not even changed the network or anything.

Tabho avatar Dec 09 '25 13:12 Tabho

Since few days ago started having the same issue, I have to press "update external url" for it to reconnect. Have not even changed the network or anything.

Same here. I've looked through the ADB logs, and couldn't find anything.

This only happens when I'm outside the house, so maybe only when the connection goes through some reverse proxy stuff?

My external URL goes through "nginx" within "Kubernetes".

I have the issue on 2 of 3 devices. The ones with issues are running 2025.11.4-full and 2025.11.4-minimal. the working one is also running 2025.11.4-full, so that isn't the issue.

Notifications are working fine.

(Just throwing stuff at the wall to see what sticks...)

After re-reading, I think this is a separate issue. I will create a separate one for this sometime in the next week.

RubenNL avatar Dec 09 '25 16:12 RubenNL

Same issue here but I don't even get such retrying screen. It stays black and then popsup with reload from internal/external url. I only run using local connection or via VPN. Since yesterday started to notice issues. I tried to improve the settings by adding Hone WiFi and an Internal URL (which is the same url). I do have reverse proxy Treafik between HA for the https url. Yet again this worked for months without issues. Hard restart of the app always works so it's definitely something with losing session and reconnecting. I just enabled persistent connection and allow to run in the background to see if that helps.

Image

Ruud-cb avatar Dec 14 '25 16:12 Ruud-cb

Same issue here but I don't even get such retrying screen. It stays black and then popsup with reload from internal/external url. I only run using local connection or via VPN. Since yesterday started to notice issues. I tried to improve the settings by adding Hone WiFi and an Internal URL (which is the same url). I do have reverse proxy Treafik between HA for the https url. Yet again this worked for months without issues. Hard restart of the app always works so it's definitely something with losing session and reconnecting. I just enabled persistent connection and allow to run in the background to see if that helps. Image

It is a different issue check this https://github.com/home-assistant/android/issues/6145 It seems to be an issue on Chromium side. Issue is already opened there.

TimoPtr avatar Dec 15 '25 14:12 TimoPtr