You could use a PUM01
(Universal Module. Contact closure and beeper. Trips a device connected to the dry contact; rated at 24V DC. Optionally emits a notification beep. Commonly used for drapery controls, sprinkler systems, garage door openers, etc.)
[Link: homeautomationnet.com]