Amazon.com Inc said on Monday it has signed an agreement to buy eero, a startup company that makes home routers, to help customers better connect smart home devices.