Why does using the browser work but not the app?

Using homeassistant.local in my PC browser and mobile android browser works fine, but my android app won’t connect.

The local wifi name is set here :

iOS or Android?

Android, my bad. App is up to date.

The app needs you to set the url in it. At least it does on iOS. Been a while since I set it up in andriod but I would assume it’s the same thing.

The url is set, do you not see my screenshot in the first post ?

It’s working fine about half the time.

I do see that but it looks like general settings not the settings for the mobile app.

Have you selected your Home Assistant’s URL here?

Settings → Companion App → Servers & Devices → Add Server

Yes, I just blanked it out on the screenshot. And it’s not that url that’s the problem, it’s the local one that doesn’t work half the time. The problem seems to be that the HA app doesn’t switch to the local url and keeps trying the external one.

Hang on a sec. Why does your Home network in the first screenshot contain a 0 and say “ethernet connected”?

Pretty sure that should be your Wifi SSID in there, otherwise HA won’t realise you’re on your Home wifi and will try to connect externally.