Door sensor

{Ops}
I use these https://www.banggood.com/GS-WDS07-Wireless-Door-Magnetic-Strip-433MHz-for-Security-Alarm-Home-System-p-1174915.html?rmmds=myorder&cur_warehouse=UK
With a Sonoff RF bridge flashed with Tasmota.
This allows me to have open and closed signals and any other 433Mhz sensors feed into HA OS. Such as a door bell, a water leak sensor and a personal alarm button for a person I care for.
Also I used this post to manage all the 433Mhz sensors and can add them without having to restart HA OS.
Sonoff RF Bridge. Strategies for receiving data