This one compatible?
Yes it should but as it is running on a 12V 23A battery I do not recommend it,
Prefer this one:
It runs on one AAA battery and have a signal for open and close
Well, the most important bit is the Sonoff one does not send Closed code and therefore pretty useless as there is no way to know its state where others like @1technophile mentioned send open/close/tampered AND low battery, much better choice for about the same money.
I’ve just ordered some similar ones off Ali for less than £3 delivered