Use Websockets
Implement a server to handle web sockets. Web sockets are the perfect solution to the doors connecting as they are a real time application and hitting the API has tons of flaws. I wish someone had recommended them to me cause I never thought of them :(