Windows sensor

Dear people, I recently purchased a window contact from Digoo. the DG-Hama.
I want to integrate this into my hassio. I use this contact in combination with an RFXCOM. I want to read this contact now but I don’t know how to integrate it into hassio. as you are in the photo I have already got some talking with the RFXCOm. But don’t get it working.