home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.35k stars 655 forks source link

The HomeAssistant app does not connect to the server when WireGuard VPN is active on my phone. #4852

Open NyariG opened 4 days ago

NyariG commented 4 days ago

Home Assistant Android app version(s): 2024.10.3 Android version(s): 12 Device model(s): S61Pro Home Assistant version: Core 2024.11.3 Supervisor 2024.11.4 Operating System 13.2 Kezelőfelület 20241106.2

Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:

I have a WireGuard server running on my router, and the WireGuard app is also installed on my phone. When I activate the connection, I can access all my home devices. However, when I launch the Home Assistant app, it loads for a while and then displays an error saying it cannot connect to the server. I assume this is because it is not trying to connect using the internal IP but rather the external URL. I couldn’t find any settings in the app to specify which address it should use when a VPN connection is active.

Screenshot or video of problem:

Additional information:

jpelgrom commented 4 days ago

Internal/external URL switching in the app only uses your Wi-Fi information. If you always want to use the same (internal) URL, don't add another one.

Using VPN status to determine the URL to be used is an existing request in #4780 - but the HA app doesn't integrate with 3rd party apps like WireGuard.