I'm connecting my electric gate status (to a Crestron digital input) and my Hikvision ColorVu G3 camera's motion detection alarm output (to another Crestron digital input). I want the Crestron to process the logic so that when the gate is closed and motion is detected, it triggers a relay...