If you Remember both SSID’s as Saved Networks and set Repeater Options to “Auto scan and re-connect”, the router should automatically connect when at home and at library.