I understand why you want that.
Using macrodroid I can open the app when leaving home and close it when returning, but I still need to manually press "connect" after the app opens. I guess I could have a macro to sound a reminder for me to do this. Not sure how to automate it.
Once on, the app should autoconnect to any network your phone uses until it turns off when you next get to your home Wi-Fi