For the repeater, you can use the stock Ikea Zigbee repeater driver.
For the Contact sensor, you can use the following: