Automatic change of HA instance in Comp app, depending on WiFi-change

Hi! Thanks for all the work out in to HA. Today it is possible to add multiple homes/HA-instances in the companion app and manually change which one the companion app control. There is also logic to understand use of external/internal address depending on WiFi.

Could the same logic be used to determine which home/HA-inastance to control? Iow, if phone is connecting and connected to WiFi #1 the companion app will automatically connect to HA-instance #1, when changing to WiFi #2 the companion app will change to HA instance #2 and so on.

I think this would be a great addition!

Adding additional servers is possible:

Getting Started | Home Assistant Companion Docs

This part of the question is a feature request, and would go here…
(Unless the companion app git’s are somewhere else, not sure)