home-assistant / android

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

Use external URL when vpn active #4780

Open I-hate-2FA opened 3 weeks ago

I-hate-2FA commented 3 weeks ago

Is your feature request related to a problem? Please describe. When vpn is on, internal url is obviously not reachable, external URL should be used

Describe the solution you'd like Detect if vpn is on, even if network SSID match one in database, use external URL anyways

Describe alternatives you've considered, if any Wait 60 second until it time out and refresh external url

Additional context

pixeye33 commented 1 week ago

"When vpn is on, internal url is obviously not reachable"

The original goal of a VPN is to access a private network.

The default behaviour should not change, but a checkbox optionally changing the behaviour could be implemented.

I-hate-2FA commented 1 week ago

never the less, vpn state is more important then wifi, to use external or internal url should be tggleable, but wifi state should always be ignored