Companion app freezes mostly on main dashboard

For quite a while now when I use HA on my phone (S20 Ultra 16GB RAM / 512GB Storage version) the app freezes up - likely only temporarily but I am not sure as most of the time I close all apps and reopen it, and the problem is gone. By freezing I mean that it doesn’t navigate to other dashboards when using the side buttons. You just see the button press and then you wait… sometimes nothing happens, sometimes the other dashboard opens up with quite a long delay. The dashboard is organized in 3 columns that show side-by-side on my desktop, and sequentially on my mobile so it is fairly large… I have no issues on my desktop and the few times I tried using HA in a browser on my phone, I had no issues (but given the limited tests this doesn’t mean much). I have the app set to always return to the main dashboard when I open it due to the lack of anchor support that makes navigation a real pain on mobile (a whole other can of worms).

I am wondering whether camera streams or graphs that show data from chatty sensors (I wish HA had a way to show sensor chattiness… I have over 40 ESPHome devices and at times they send back way too much data) might have something to do with this. I also wonder whether the companion app loses connection to HA and takes a while to restore it. Problem is I don’t know how to troubleshoot this… suggestions?

i believe this is fixed in the latest HA core update, also make sure to update all custom cards as tehy can also cause issues

@dshokouhi Glad to hear it is a known issue and that it may have been fixed! I am on 2023.9.2 and still have it so I am hoping you are referring to the next core update :slight_smile:

NO I was referring to 2023.9.x

@dshokouhi OK, then I have to keep hunting for the cause :frowning: I asked my wife and she has the same issue… but she also has the same phone. Even though old, it is quite good in terms of hardware so I don’t think it is the phone (plus the phone software etc between my phone and my wife’s is very different). I think it has to do with what is on the dashboard…

start by updating your custom cards, if that doesnt help disable/remove custom cards one by one to rule them out using process of eliminiation. I usually find that helpful.

1 Like

I am OCD with regards to updating so as far as I know I am on the latest revision of everything I use. Can camera feeds cause the issue is set to auto vs live? Of the 5 cameras on the main dashboard, 4 are 4K. All 4 are set to camera_view: auto as I am under the impression it cuts down on data sent to frontend.

The buttons are pretty much only used for navigation:

type: custom:button-card
styles:
  card: null
  name:
    - text-transform: uppercase
    - font-size: 10px
    - font-weight: normal
    - justify-self: center
    - margin-left: '-25px'
    - letter-spacing: 2px
  icon:
    - color: var(--paper-item-icon-color)
    - height: 25px
    - width: 25x
    - padding: 0px 20px 0px 0px
tap_action:
  action: navigate
  navigation_path: /lovelace/entrance
name: Entrance
show_icon: true
icon: mdi:door-open
layout: icon_name

Note: not sure what the null came from… I did not add it.

Sometimes, when loading the dashboard on my PC, the 3rd column shows under the middle column (and maybe not all cards loaded… I need to check on this). Pressing refresh always fixes the issue. I wonder whether the two are related… The 3rd column is where I use the custom weather and graph (plotly) cards

Have you tried clearing the cache for the app? In the past, I’ve had some cards on dashboards (specifically detailed graphs) that seemed to eventually cause the app to REALLY slow down. Force closing the app and clearing the cache always fixed it.

@brooksben11 I just cleared my cache but was able to replicate the issue immediately.

@dshokouhi - In trying @brooksben11 's suggestion I force stopped the companion app, cleared the cache, and:

  1. opened the HA companion app
  2. clicked on several room buttons (when in the room I clicked on the home button to return to the main dashboard). All navigation was fast.
  3. I left the app and opened Google Play, refreshed, installed unrelated updates
  4. Returned to the app (still running in the background)
  5. I was able to click on multiple rooms (the button is highlighted) but nothing happened. After 10 or 15 seconds, the app quickly switched between all 3 room dashboards stopping on the last one I had pressed.

I repeated the steps above twice in a row with identical results. I can try to take a screen capture if it helps.

The latest update improved things a bit but it is still happening…