Hi ondra.lie,
did you know: DahuaEventHandler.php
It loggs all VTO-Events and can run on your RPi4. Maybe you could easily use this script, to open the garage door or arm the security system.
Unfortunatelly I do not have the keypad for my VTO4202F. I do only have the RFID-cardreader...