Keypad automation

I have a keypad to activate / deactivate the security but it appears you cant add an automation fir when the keypad is used to take a video of who it was.