WEMOS Wireless DIY door alarm sensor with Home Assistant article that contains the code, libraries, diagrams, 3D print files and more information promised in the step-by-step youtube video below