It sounds really scary to control front door via API and I don't really see a way to implement such a thing securely without a lot of work (running ethernet cable from your front door to air gapped server) and then there is the problem of how you use it. You can't have mobile app that could unlock your door since it would need internet/wifi connectivity which automatically just screams "not secure enough!" to me