Hey everyone I was looking for some guidance. The first question I have is that I have reed switches from an espnode project that I would like to implement for door sensors that will trigger the alarm. Would it be better if I used the espnodes and connect them via wifi and use MQTT? I really wanted to hook the reed switches directly to the Ras pi GPIO pins but I am not sure how to do it correctly. And what would be the proper way to set up the config.yaml and the automation yaml? I think I have the alarm_control_panel working properly but I need to hook up a reed switch to test it properly.
There is an integration specifically intended for RPI GPIO.
You should just get a binary_sensor per (input) GPIO pin, telling you the state of the switch.
You will need to setup some automations to call alarm_control_panel.trigger service when any of these GPIO pins toggle, while alarm_control_panel.my_alarm is in state armed_home or armed_away.
The delay time is taken care of by the alarm integration.
For testing your automation you could define an input_boolean which is basically a manual switch.