Binary sensor for 433MHz remote

Good morning

Ordered a small one button 433MHz remote and a 433MHz receiver hooked up to a ESP32-Pico board…

When I upload the firmware with dump rc_switch I see something like this when pressing the button:

[10:09:15][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='100101010101'
[10:09:15][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:15][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'

or:

[10:09:53][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101010101011001010101101010010101101001100101'
[10:09:53][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1010101011'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101010101011001010101101010010101101001100101101001'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'
[10:09:54][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101010110101001010110100110010110100101010101'

So what do I have to actually enter as code in the binary sensor section?

Currently having this in my yaml file but I don’t see in the HA dashboard that the remote has triggered at all:

binary_sensor:
  - platform: remote_receiver
    name: "Funk Fernbedienung"
    rc_switch_raw:
      code: '1001010101010101100101010110101001010110100110010110100101010101'

thanks in advance
richard

Okay…needed to add protocol: 8, but still very unreliable this remote (empty line marks remote press):

[10:43:05][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:05][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF
[10:43:06][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:06][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF
[10:43:06][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101'

[10:43:12][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='100101010101010110'
[10:43:12][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:12][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF

[10:43:15][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:15][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF
[10:43:15][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101'
[10:43:16][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:16][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF

[10:43:20][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:20][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF
[10:43:20][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='100101010'
[10:43:21][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101010101011001010101101'

[10:43:25][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state ON
[10:43:25][D][binary_sensor:036]: 'Funk Fernbedienung': Sending state OFF
[10:43:25][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1010101010101100101010110101001010110100110010110100101010101'
[10:43:25][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101010'

[10:43:28][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='100101010101010110010101011010100101011010011001011010'
[10:43:29][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='10010101010101011001010101101010010101101001100101101001010'

[10:43:33][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101'
[10:43:33][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='1001010101010101100101'
[10:43:33][D][remote.rc_switch:256]: Received RCSwitch Raw: protocol=8 data='101011010'

Should I dump the remote or use another 433MHz receiver as this one?

420044-3-800x800