Home Security Update With ESPHome and HA with TTS Security Alarms Question

My house is wired for one of those old security systems, and I would like to to use a ESP32 to replace the old control unit, and thus provides more data to me. I am hoping to use binary sensor inputs from the door switches (seem to be mechanical inside doorframe) and maybe the motion detector. I have written the code for the esp32 and thought my dashboard, I can see when the switches are closed. I tried writing a script, and that gives super delayed returns (like 10-20 seconds). I am not sure if this due to is my lack of understanding of the scripting, if a loop that check many inputs is a bad idea, or if I should make a script for each switch. Using the script maker, I did a repeat while esphome is home-then a choose and then button_1 does a call for tts to my hub to say: “one” and so fourth through the switches.

Question 1: Am I doing the scripting in an inefficient way? If so, how should it be improved?
Question 2: Would this be more of an automation type task?
Question 3: Am I the only one who feels like they went 0 to 100 with this stuff?

Thank you so much for your time.

I found an answer that worked for my purposes here: Novice / Dumb Question
It turns out the answer to all three of my questions is: yes.
I hope this helps anyone else out there!