making an alarm with a XY-MK-5B in 433mhz

Greetings,
I hope this is the correct place to post this, I'm building a very simple wireless alarm system. I'm very new at this, and perhaps this might seem like a hard project to start with, but I'm confused about how to transfer the information by RF.

we are planning on using the same wireless sensors that are sold by chinese companies with the chip 2262 and 1527, and in the case of the 2262 (and it variants) we see that we can fix the address and the D (directive perhaps?), and we've had some experience with these alarms, and noticed that they use the Dpart to determine type of sensor (if its a panic button or magnetic, pir, etc)
So, my question is, is there any protocol of how are these settings preconfigured?

I was thinking that perhaps I could get everytype of sensor and figuring it out manually, but I was hopping if by any chance anyone knows anything else about this or could point me to more documentation.

So, my question is, is there any protocol of how are these settings preconfigured?

Look at the data sheets for the PT2262 encoder. There are many web sites discussing the protocol.

The Arduino RCSwitch library can encode and decode messages according to the PT2262 protocol.