Monitoring home alarm outputs

Possible to show how you connect the alarm panel to the relay?

How you configure the esp home for the configuration?