DVR motion detection's alarm output to trigger a home assistant service

@callifo thanks no API just a log but I would need to make a Node Red flow to query the log for the event and by then the event is long gone. Type of internal pull resistor to use. Options are UP - pull-up resistor and DOWN - pull-down resistor - does this mean that to internal pulldown that the PI has internal resistors or as per a ESP do I add one between the GPIO pin selected and ground? Which is the best GPIO to start with (e.g 11?) https://pinout.xyz/resources/raspberry-pi-pinout.png