You might want to take a look at this.
I used it to replace my DSC alarm system. I’ve got 3 doors, 3 window zones, and a siren hooked up to it. I hope to eventually tie in my smoke detectors. You can use additional ESP8266s if you need more I/O pins. (I think 6 to 7 is the most you can connect to a single board.)