RFXCOM with Sonoff DW1 Door And Window Alarm Sensor

I’m using a RFXCOM with Sonoff DW1 door sensors (https://www.itead.cc/sonoff-rf-bridge-433.html). In the configuration.yaml I added the following config:

binary_sensor:

  • platform: rfxtrx
    devices:
    091300003f7ee1019180:
    name: achterdeur_kamer
    device_class: opening

I’m only getting the status to on, it switches not back to off when the door is closed. I can add an off_delay to reset the DW1 to off after a couple of seconds but when the door is still open the status is incorrect. Does anyone has this config working or has any tips?

If you’re using an RFXCOM RfxTrx433 it looks like the Sonoff is not supported:
http://www.rfxcom.com/WebRoot/StoreNL2/Shops/78165469/MediaGallery/Downloads/RFXtrx_User_Guide.pdf

See the note on the Internet page:
Note 1:
The receiving supports fixed code 433 frequency, like PT2260, PT2262, PT2264, EV1527, etc.

This PT22xx code transmits only an Open status and no Close status.
Better is to use the Kerui sensors which transmit Open and Close and also repeat this status with a random interval.