MP II digital input node red

You would have to set it for a door closed or open alarm then read the alarm state probably as an idea.

It needs to be triggering something and then you read the state of the thing triggered.

The payload is the trigger state.