Stupidly I thought a doorsensor would indicate the open/closed state too and bought a bunch of them. Unfortunately I purchased them in China so I cant return them. So a bit late to this conversation, but for what its worth I made a mod / hack that sends the close status as a new code. However you need a transistor and two resistors for this (1k and 10k ohm) . This is surely not the most efficient way to do it but it works. You get two individual codes for the open / closed state.
Thought I would share this as it would be sad to waste those sensors. With the mod the sensor still fits in the box so no biggy.
I actually sold them on. I was very honest about the shortcomings when I sold all of them, and have away a load of X10 stuff to someone around out on their HA journey