Strange issue with mobile app disconnecting after being idle for longer period of time

Hello everyone,

I have experienced a strange behaviour with my Home Assistant Mobile App where, after being idle (phone is in standby) for a longer period of time, when I start the app, it doesn’t load the UI and it shows the disconnected message every second. That continues to happen until I force-close the App from my phone’s settings.

While this happens, the following log messages get logged on my HA Instance:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:53
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:59:10 (9 occurrences)
Last logged: 18:59:22

[546785591696] Aaron from 192.168.0.177 (Mozilla/5.0 (Linux; Android 12; AC2003 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 12; AC2003)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":3427,"type":"result","success":true,"result":null}
[546772555024] Aaron from 192.168.0.177 (Mozilla/5.0 (Linux; Android 12; AC2003 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 12; AC2003)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":3394,"type":"result","success":true,"result":null}
[546778074896] Aaron from 192.168.0.177 (Mozilla/5.0 (Linux; Android 12; AC2003 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 12; AC2003)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":4219,"type":"event","event":{"type":"current","notifications":{}}}
[546782914128] Aaron from 192.168.0.177 (Mozilla/5.0 (Linux; Android 12; AC2003 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 12; AC2003)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":3535,"type":"event","event":{"type":"current","notifications":{}}}
[546984260176] Aaron from 192.168.0.177 (Mozilla/5.0 (Linux; Android 12; AC2003 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.130 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 12; AC2003)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":3711,"type":"event","event":{"type":"current","notifications":{}}}

and

Logger: homeassistant
Source: runner.py:179
First occurred: 18:55:54 (8 occurrences)
Last logged: 18:59:24

Error doing job: Unclosed client session
Error doing job: Task was destroyed but it is pending!

How can I fix this?

My Phone is a OnePlus Nord running both the latest system software and the latest Home Assistant Companion App from Play Store (normal stable version, no beta).
My HA Instance runs all the latest versions (Core, OS, Supervisor) on a RPI4B+.
The Issue is only there with my phone, other devices (pc and laptop in Opera GX Browser) work without any Issues.

Best Regards and thanks in advance
Aaron

You’re not alone:

https://community.home-assistant.io/t/reload-ui-message-frequently/

According to the GitHub issue, it’s been fixed in a beta version. Hopefully it will hit the main release soon…

Rolling back to 2023.5.4 eliminates the issue, which is what I did for now.