RFXCOM Two entities for one kerui door sensor

I have 10 KERUI doorsensors.
One of them does not work ok.

It makes two binary sensors in HASS
binary_sensor.bbsb_new_types_07cd26_1 gesloten
binary_sensor.bbsb_new_types_07cd26_4 open

debug

2023-08-16 14:26:14.160 DEBUG (MainThread) [homeassistant.components.rfxtrx] Receive RFXCOM event: {'packet_type': 20, 'sub_type': 2, 'type_string': 'BBSB new types', 'id_string': '07cd26:4', 'data': '0a14027d07cd2604010060', 'values': {'Command': 'On', 'Rssi numeric': 6}}
2023-08-16 14:26:14.162 DEBUG (MainThread) [homeassistant.components.rfxtrx.sensor] Sensor update (Device ID: 07cd26:4 Class: LightingDevice Sub: 2)
2023-08-16 14:26:14.164 DEBUG (MainThread) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: 07cd26:4 Class: LightingDevice Sub: 2)

2023-08-16 14:26:16.525 DEBUG (MainThread) [homeassistant.components.rfxtrx] Receive RFXCOM event: {'packet_type': 20, 'sub_type': 2, 'type_string': 'BBSB new types', 'id_string': '07cd26:1', 'data': '0a14027e07cd2601000050', 'values': {'Command': 'Off', 'Rssi numeric': 5}}
2023-08-16 14:26:16.527 DEBUG (MainThread) [homeassistant.components.rfxtrx.sensor] Sensor update (Device ID: 07cd26:1 Class: LightingDevice Sub: 2)
2023-08-16 14:26:16.529 DEBUG (MainThread) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: 07cd26:1 Class: LightingDevice Sub: 2)

is it possible to correct this, and have one binary sensor with open and close ?
my other kerui sensors do work like that, this one is different…
an option is to change one of the binary sensors when the other is activated.
I could find an option for this within the automation/actions.
With the developertools i can change the value of this binary sensor

i have a workaround with an automation, but want to have a better solution (and learn more about HASS :slight_smile:

workaround

alias: testrfx
description: test
trigger:
  - platform: event
    event_type: rfxtrx_event
    event_data:
      packet_type: 20
      sub_type: 2
      id_string: 07cd26:4
      values:
        Command: "On"
condition: []
action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.chromecast_huiskamer_nest
      message: hallo, test is gelukt
      cache: true
      language: nl
mode: single

you could create a template binary sensor

Tried to remove it from the integration and add it again?

Ok, thanks… gonna try them both!

In the meantime a got a work around to change the value of one of the two entities when events occur of those two and promote one of them as the “master”…
It works perfect but not the perfect solution…