Tuya-based contact sensors have this functionality built-in. However, you're dependent on wifi with internet access.
http://amazon.com/dp/B08T71GDSN