HA app has become slow on Android

Android app has become very slow. The following things are happening:
a) When I open the app, it shows a blank screen. Then it briefly flashes a message “Unable to connect to Home Assistant”. Then the message goes away and after few seconds, the dashboard is loaded.
b) If I go to Settings, the app again shows blank screen for several seconds before showing the menu.
c) When I select Automations and Scenes, the screen again goes blank and after few seconds, the app shows “We couldn’t find any automations”. Then after several seconds, the list of automations appears. Same thing happens when I try to see the scripts.

I am running HA on a VM and have restarted even the VM host. I have restarted the phone, cleared the HA cache but app is still slow. It used to be very snappy.

Home Assistant 2023.2.3
Supervisor: 2023.01.1
Operating System: 9.5
Frontend: 20230202.0-latest

I am not sure if the slowness started happening after most recent update 2023.2.3.

Anyone else having the same issue?

Thanks…

7 Likes

There’s been some reports on the HA Discord’s #android channel. The devs haven’t identified a cause yet.

1 Like

I have experienced this too. I don’t know what causes the problem but rebooting my android phone solves the problem.

I found that rebooting my ha server solved the problem.

So, I just scheduled a nightly reboot. Problem solved!

tried that but now working. Still slow with flash message “Unable to connect to Home Assistant” , blank screen. On Pc page loads fine even on IOS.

Same for me since ~a couple of weeks every once and a while. Rebooting core fixes it sometimes, not always. Server utilization is fine and accessing via web browser is always fast as usual. Clearly a bug with the app, hopefully someone tracks it down soon

Is there an open GitHub issue for this yet? Didn’t find anything at first glance, would be nice to keep track

I have no idea TBH, I don’t use the UI in the app.

I scanned GitHub issues but did not find anything. The closest thing I found was this - it might be related but IDK.

I will open a new issue if it happens to me again and there is anything meaningful in the logs (they were cleared on the last reboot of my phone).

Others having the same issue:

That could also be caused by introducing nginx into the mix - which is completely unnecessary, btw.

Not true. I was the poster. It slowly solved. Now somtimes slow and I reboot my phone. Think it might had to do with that android background browser thing app.

I created a GitHub issue for this. Please add additional details and/or logs from your companion app to help.

Clearing the app cache (from phone settings) instantly resolved the issue for me. I had ~14mb in cache, I cleared it (but not system data), didn’t have to re-login and I didn’t lose my phone sensor settings.

5 Likes

The only thing for me that helps is to reboot the phone. Clearing app cache is never helping for me.

And sometimes it goes well for a week and sometimes some days.

No helpfull logging is to be found for me.

Same here. I thought it is the server, but using a mobile browser instead of the app it is fast.

Deleting cache had no effect. I will try reboot of the phone next.

Try force stop instead of reboot. Please add any additional details to the GitHub issue if you can.

3 Likes

I tried the “force stop” the app and it worked for me. I was thinking it was to do with my server especially mariadb and I had to update it etc but it was the android app. Hopefully it works better for me now.

2 Likes

Had this issue today as well. Force Stop fixed it immediately!

2 Likes

Same for me.
Force Stop or reboot solves the problem for some time.

2 Likes