Android app shows no entities on home assistant

First I had problems with connecting to HA, which arose from using a VPN. When, I moved from the VPN on my cell data to my home network, it could no longer connect. That was eventually sorted, but may be relevant to the problem now.

Now my device (OnePlus 8 running lineageos) connects fine to the HA server, and shows the dashboard and everything else. However, the integration no longer shows any entities for the phone, except device_tracker. I went through the usual workaround (clear data and cache on android, remove the device from mobile app integration, restart HA, reinstall companion app). I then connected the phone to HA, which worked fine, but still no entities. Tried again with a new name. No entities. Deleted a bunch of tokens on the server. No difference. Logged out and back in. Added a bunch of additional sensors on the companion app. Restarted HA each time. Still just the device_tracker entity in the integration. Removed the mobile_app file from .storage. Checked the known_devices file for relevant entries. Tried it with and without putting the mobile_app: integration explicitly in configuration.yaml.

I looked at the logs on the phone, but didn’t know how to read it. I was also warned that there could be private data in it, so did not post it. Many entries are rather cryptic, like: <time and date stamp> 20773 27300 E mpanion.androi: Invalid ID 0x00000000

I am really at a loss on how to debug this further, so would appreciate any help.

If it were me, i’d clear the app data and resetup.

Yeah, I tried that. Also tried clearing the tokens. I eventually got some help on discord, where they found something strange with connecting on the backend. Ends up I found that there was a cloud problem (which I don’t use). When I deleted the no-cloud custom repo, it started working again. Thanks for the pointer, though.

1 Like