iOS App - Automatically detect if local

This may take some more effort but my wife like controlling things with the apple Home app.