Mini Door/Window Sensor with SONOFF RF BRIDGE (TASMOTA)

I am currently using some BITIWEND Mini Door / Window sensors with the SONOFF RF BRIDGE (TASMOTA) throughout the house without any connection problems.


see: https://www.amazon.com/Security-Expandable-Wireless-Operating-Receivers/dp/B07BRGFMCS/ref=sr_1_4?ie=UTF8&qid=1544630907&sr=8-4&keywords=bitiwend%2Bdoor%2Bsensor&th=1

The only downside is that I can only experience the condition “has been opened”.
Is there a way to modify the BITIWEND Mini Door / Window Sensor so that it also reports the status “closed”?

current automation

## ----------------------------------------------------------------------------------
## BITIWEND RF SENSOR FRONT DOOR
##
## {"RfReceived":{"Sync":6020,"Low":210,"High":590,"Data":"20D733","RfKey":"None"}}
##
## ---------------------------------------------------------------------------------
  - alias: security frontdoor
    initial_state: true
    trigger:
      - platform: mqtt
        topic: "tele/rfbridge/RESULT"
    condition:
      condition: and
      conditions:
        - condition: template
          value_template: '{{ trigger.payload_json.RfReceived.Data == "20D733" }}'
    action:
      - service: input_boolean.turn_on
        data:
          entity_id: input_boolean.sensor_frontdoor
      - service: media_player.alexa_tts
        data:
          entity_id: 
            - media_player.peters_echo_show
            - media_player.esszimmer          ## echo show 2nd Gen
            - media_player.wohnzimmer         ## echo 2nd Gen
            - media_player.office             ## echo dot 2nd Gen
            - media_player.bad                ## echo 1st Gen
            - media_player.fitnessraum        ## echo dot 2nd Gen 
          message: "Security meldet: Haustüre wurde geöffnet"
      - service: mqtt.publish
        data_template:
          topic: "security/sensor/frontdoor"
          retain: false
          payload: >-
           {
             "timestamp": {{ now().strftime('%Y-%m-%d %H:%M:%S') | string}},
             "state": 'open',
             "sensor": {{ trigger.payload_json.RfReceived.Data | string }}
             "sync": {{ trigger.payload_json.RfReceived.Sync | string}}
           }
      - delay: '00:00:10'
      - service: input_boolean.turn_off
        data:
          entity_id: input_boolean.sensor_frontdoor
      - service: mqtt.publish
        data_template:
          topic: "security/sensor/frontdoor"
          retain: false
          payload: >-
           {
             "timestamp": {{ now().strftime('%Y-%m-%d %H:%M:%S') | string}},
             "state": 'closed',
             "sensor": {{ trigger.payload_json.RfReceived.Data | string }}
             "sync": {{ trigger.payload_json.RfReceived.Sync | string}}
           }