save two profiles "OnMobile", "OnWifi"
Switch between them either manually from the gui, via SMS , or geofenced GPS
to trigger an SMS message to the routers own number to switch the profile.
Before I fitted an "all you can eat" SIM I used to do geofenced "OnRoad" , "OnDriveway" , "AtOffice"