RF Fan Control no working as expected

Long story short, a while ago I got a ESPHOME360 Remote for more than I would of liked to of paid, wasn’t much documentation around that could help me then so gave up on it.

I’ve just started looking at it again, not much more out there but enough to get me tinkering again however I’m struggling trying to replicate a button press from a RF fan remote… it doesn’t come out as I expect it, inverted (as seen below), but then after a few activations it will come out correct but have no effect on the fan. Where am I going wrong?

- platform: template
    name: "RF_test2"
    on_press:
      - remote_transmitter.transmit_rc_switch_raw:
          transmitter_id: RF_TX
          code: '00000011000000110000100010111000'
          repeat: 4
      - delay: 100ms
      - remote_transmitter.transmit_rc_switch_raw:
          transmitter_id: RF_TX
          code: '0000001100000011000010001011100'
          repeat: 1

What I get back on the log from that:

'RF_test2' Pressed.
17:46:12	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='0000001100000011000010001011100'
17:46:12	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='0000001100000011000010001011100'
17:46:12	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='0000001100000011000010001011100'
17:46:12	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
17:46:12	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='000000110000001100001000101110'

The signal logged from the remote button press:

Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
17:47:37	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
17:47:37	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
17:47:38	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
17:47:38	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='0000001100000011000010001011100'

Entire YAML

substitutions:
  name: esp360remote-7171f0
  friendly_name: ESP360Remote
  project_name: ale1800.ESP360Remote
  project_version: '2.0'

esphome:
  name: ${name}
  name_add_mac_suffix: false
  project:
    name: ${project_name}
    version: ${project_version}

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  services:
  - service: send_ir_raw
    variables:
      command: int[]
    then:
    - remote_transmitter.transmit_raw:
        transmitter_id: IR_TX
        code: !lambda 'return command;'
  - service: send_rf_raw
    variables:
      protocol_number: int
      raw_data: string
      repeat_times: int
      wait_time: int
    then:
    - remote_transmitter.transmit_rc_switch_raw:
        transmitter_id: RF_TX
        protocol: !lambda 'return  esphome::remote_base::RC_SWITCH_PROTOCOLS[protocol_number];'
        code: !lambda 'return raw_data;'
        repeat:
          times: !lambda 'return repeat_times;'
          wait_time: !lambda 'return wait_time;'
ota:
- platform: esphome

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    password: ''

web_server:
  port: 80

# Sets up the improv via serial client for Wi-Fi provisioning
improv_serial:


dashboard_import:
  package_import_url: 
    github://ale1800/ESP-360-REMOTE/ESPHome/esp360remote.yaml@main
  import_full_config: true


captive_portal:

#i2c bus definition
i2c:
  sda: 21
  scl: 22
  scan: true
  id: bus_a

#Offsets have been added to the measurements taken. 
#These are necessary due to the heat generated by the PCB, the second layer of the board, and the case. 
#This way, sufficiently accurate values are obtained for automations
sensor:
- platform: shtcx
  temperature:
    name: ESP360Remote Temperature
    filters:
    - median:
        window_size: 5
        send_every: 1
    - offset: -3.7
  humidity:
    name: ESP360Remote Humidity
    filters:
    - median:
        window_size: 5
        send_every: 1
    - offset: +19.1
  address: 0x70
  update_interval: 300s
- platform: bh1750
  name: BH1750 Illuminance
  filters:
  - multiply: 5
  address: 0x23
  update_interval: 1s

#Setting up IR and RF receivers
remote_receiver:
- id: RF_RX
  pin:
    number: GPIO5
    inverted: true
  dump:
#      - raw  #(delete # for raw data)
  - rc_switch
  tolerance: 35%
  filter: 200us
  idle: 4ms
  buffer_size: 10kb
  on_rc_switch:
  - homeassistant.event:
      event: esphome.rf_code_received_test
      data:
        protocol: !lambda 'return x.protocol;'
        code: !lambda 'return x.code;'
- id: IR_RX
  pin:
    number: GPIO19
    inverted: true
    mode:
      input: true
      pullup: true
  dump: all


  on_raw:
  - homeassistant.event:
      event: esphome.ir_raw_code_received
      data:
        code: !lambda ' reverse(x.begin(), x.end()); std::string str = ""; for (auto
          it = x.begin(); it != x.end(); ++it) { str += to_string(*it); str += ",";
          if (it != x.end() - 1) str += " "; } if (str.size() > 0)  str.erase( str.end()
          - 2); return "[" + str + "]";'
  on_pronto:
  - homeassistant.event:
      event: esphome.ir_pronto_code_received
      data:
        code: !lambda 'return x.data;'
  on_lg:
  - homeassistant.event:
      event: esphome.ir_lg_code_received
      data:
        data: !lambda 'return x.data;'
        nbits: !lambda 'return x.nbits;'
  on_panasonic:
  - homeassistant.event:
      event: esphome.ir_panasonic_code_received
      data:
        address: !lambda 'return x.address;'
        command: !lambda 'return x.command;'

#Setting up IR and RF transmitters
remote_transmitter:
- id: RF_TX
  pin: GPIO18
  carrier_duty_percent: 100%
- id: IR_TX
  pin: GPIO13
  carrier_duty_percent: 50%

#Status LED 
switch:
- platform: gpio
  pin: 12
  name: Status Led
  restore_mode: ALWAYS_ON

infrared:
  # IR transmitter instance
- platform: ir_rf_proxy
  name: IR Proxy Transmitter
  id: ir_proxy_tx
  remote_transmitter_id: IR_TX
  # IR receiver instance
- platform: ir_rf_proxy
  name: IR Proxy Receiver
  id: ir_proxy_rx
  remote_receiver_id: IR_RX

button:

  - platform: template
    name: "RF_test2"
    on_press:
      - remote_transmitter.transmit_rc_switch_raw:
          transmitter_id: RF_TX
          code: '00000011000000110000100010111000'
          repeat: 4
      - delay: 100ms
      - remote_transmitter.transmit_rc_switch_raw:
          transmitter_id: RF_TX
          code: '0000001100000011000010001011100'
          repeat: 1

Rc-switch protocol 6 is inverted protocol. So if your real signal is not inverted and you define inverted: true on your yaml, with 35% tolerance protocol 1 signal could be mistakenly considered 6.

Library shows the protocols:
Protocol 1: RCSwitchBase(350, 10850, 350, 1050, 1050, 350, false),
Protocol 6: RCSwitchBase(10350, 450, 450, 900, 900, 450, true),

So try with inverted: false on your remote_receiver: and if that doesn’t work, post your non inverted raw dump here.

Also, your remote_transmitter.transmit_rc_switch_raw: is missing protocol parameter.

Thanks for that Karosm, I’ll give it a go. and doh, I did have the protocol in there must of removed at some point and not replaced.

OK, so i switched off the inverted on remote_receiver, and my remote button press is now showing as protocol 1, have changed that in the code, however I’m back to it coming out in incorrect order, just trying to play with the delay now to fix, if that is the right way about it?

13:33:26	[D]	[button:019]	
'RF_test2' Pressed.
13:33:26	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='0000001100000011000010001011100'
13:33:26	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='0000001100000011000010001011100'
13:33:26	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='0000001100000011000010001011100'
13:33:26	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
13:33:26	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='000000110000001100001000101110'

Here’s a dump of raw output if that helps:

Remote Button Press

13:12:30	[I]	[remote.raw:027]	
  -549, 454, -554, 1297, -1037, 586, -1767, 1049, -1539, 426, -1552, 691, -405, 1886, -431, 866, -724, 705, -276, 2943, -492, 843, -408, 2166, -579, 505, -710, 616, -269, 658, -446, 2252, -650, 434, -809, 1482, -469, 369, -255, 351, -289, 369, -610, 
13:12:30	[I]	[remote.raw:036]	
  454, -559, 582, -1155, 402, -641, 396
13:12:30	[I]	[remote.raw:027]	
Received Raw: 941, -1085, 397, -261, 330, -1231, 1978, -483, 350, -1025, 438, -1435, 412, -808, 384, -607, 382, -550, 382, -573, 436, -886, 600, -3237, 474, -1028, 1106, -582, 720, -1746, 668, -764, 1053, -385, 1598, -1406, 1226, -1005, 562, -1454, 349, 
13:12:30	[I]	[remote.raw:036]	
  -517, 472, -423, 453, -896, 694, -427, 965, -361, 425, -2617, 828, -611, 980, -653, 431, -1004, 1073, -1728, 398, -362, 409, -451, 557, -549, 511, -664, 378
13:12:30	[I]	[remote.raw:027]	
Received Raw: 720, -804, 1193, -584, 500, -361, 292, -573, 785, -394, 1367, -300, 1735, -447, 675, -432, 576, -1000, 1372, -1714, 2025, -1028, 624, -380, 656, -290, 576, -384, 1396, -1941, 1604, -385, 1026, -403, 614, -1644, 2465, -564, 482, -473, 483, 
13:12:30	[I]	[remote.raw:027]	
  -1780, 1339, -541, 472, -484, 463, -492, 610, -536, 610, -587, 378, -522, 543, -601, 393, -522, 2479, -475, 353, -1837, 1240, -531, 648, -1080, 1329, -1037, 1116, -915, 1064, -2391, 444, -408, 496, -350, 587, -1852, 463, -1192, 706, -962, 808, -555, 
13:12:30	[I]	[remote.raw:036]	
  491, -673, 373, -470, 491, -568, 426, -620, 421, -473, 388, -759, 1064, -422, 685, -328, 837, -1317, 420, -531, 496, -506, 474, -512, 467, -592, 350
13:12:30	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
13:12:30	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
13:12:30	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
13:12:30	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
13:12:30	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='0000001100000011000010001011100'
13:12:30	[I]	[remote.raw:036]	
Received Raw: -703, 390, -820, 581, -385, 358, -1218, 444, -2759, 564, -1722, 521, -2260, 382, -666, 393, -2826, 729
13:12:30	[I]	[remote.raw:036]	
Received Raw: 387, -328, 430, -3076, 440, -437, 387, -299, 870, -1786, 500, -488, 577, -521, 374, -370, 434, -314, 358, -365, 350, -621, 851, -1212, 696, -379, 563, -351, 368, -800, 402, -262, 363, -3461, 671, -564, 615, -1728, 406, -265, 341, -1056, 364
13:12:30	[I]	[remote.raw:036]	
Received Raw: 369, -668, 364, -3855, 523, -492, 573, -2210, 464, -1188, 407, -347, 368, -772, 624, -853, 733, -517, 434, -2387, 590, -323, 326, -426, 2518, -2599, 491, -1171, 382, -2736
13:12:30	[I]	[remote.raw:036]	
Received Raw: 400, -549, 2726, -404, 368, -474, 704, -603, 661, -579, 955, -1528, 1004, -502, 516, -502, 520
13:12:31	[I]	[remote.raw:036]	
Received Raw: 705, -514, 1526, -574, 444, -228, 444, -686, 402, -517, 1609, -530, 535
13:12:31	[I]	[remote.raw:036]	
Received Raw: 945, -1439, 422, -676, 351, -3150, 750, -303, 1689, -499, 671, -473, 478, -574, 1163, -493, 444, -820, 591, -1137, 1726, -1122, 776, -753, 1107, -976, 3066, -404, 628, -352, 557, -380
13:12:31	[I]	[remote.raw:036]	
Received Raw: -687, 373, -346, 510, -2004, 671, -299, 1177, -399, 487, -454, 530, -497, 686, -333
13:12:31	[I]	[remote.raw:036]	
Received Raw: -375, 836, -1534, 1396, -530, 478, -606, 559, -1060
13:12:31	[I]	[remote.raw:027]	
Received Raw: -980, 767, -1038, 1584, -588, 2536, -612, 472, -2367, 421, -360, 383, -588, 2029, -408, 2456, -526, 387, -247, 634, -1135, 625, -575, 571, -285, 1035, -791, 511, -1053, 443, -1236, 482, -435, 1325, -1431, 1466, -2065, 505, -555, 491, -571, 
13:12:31	[I]	[remote.raw:036]	
  385
13:12:31	[I]	[remote.raw:036]	
Received Raw: 420, -615, 422, -2826, 444, -489, 619, -848, 917, -464, 398, -1581, 416, -596, 478, -522, 477, -531, 496, -503, 434, -564, 459, -511, 473, -702, 359, -280, 704, -483, 483, -531, 472, -696, 994, -470, 320, -375, 373, -1373, 402
13:12:31	[I]	[remote.raw:036]	
Received Raw: 780

ESP Button Press

13:12:59	[I]	[remote.raw:027]	
Received Raw: 320, -975, 412, -3569, 369, -649, 378, -2731, 1136, -350, 393, -289, 317, -352, 637, -341, 653, -328, 529, -404, 869, -394, 2044, -796, 927, -388, 492, -445, 497, -1084, 625, -474, 638, -309, 728, -435, 828, -459, 436, -450, 397, -508, 
13:12:59	[I]	[remote.raw:036]	
  434, -592, 416, -579, 458, -530, 431, -799, 408, -483, 392, -540, 412, -672, 374, -681, 350, -566, 537, -678, 307, -479, 325, -601, 355, -1771, 359, -696, 365, -446, 524, -383, 294, -1207, 355, -394, 311, -451, 723
13:12:59	[D]	[button:019]	
'RF_test2' Pressed.
13:12:59	[I]	[remote.raw:027]	
Received Raw: 346, -891, 434, -560, 870, -889, 355, -2935, 445, -511, 407, -677, 374, -805, 369, -468, 407, -598, 321, -889, 351, -1705, 406, -246, 213, -1790, 368, -440, 573, -265, 809, -445, 1378, -251, 402, -2712, 648, -597, 416, -290, 520, -881, 
13:12:59	[I]	[remote.raw:027]	
  562, -384, 781, -351, 1291, -421, 341, -295, 283, -231, 550, -553, 393, -295, 515, -1585, 492, -559, 468, -380, 624, -583, 439, -536, 444, -563, 450, -487, 365, -629, 512, -634, 402, -516, 686, -497, 374, -527, 448, -606, 412, -508, 301, -811, 638, 
13:12:59	[I]	[remote.raw:027]	
  -303, 563, -1079, 989, -327, 776, -1431, 335, -487, 412, -449, 753, -285, 505, -281, 865, -312, 308, -312, 672, -365, 317, -574, 368, -653, 469, -544, 327, -336, 695, -625, 497, -446, 321, -270, 435, -578, 345, -314, 325, -469, 449, -380, 368, -828, 
13:12:59	[I]	[remote.raw:027]	
  445, -649, 360, -586, 403, -705, 549, -2855, 378, -1808, 379, -1416, 425, -492, 393, -810, 364, -1211, 549, -545, 397, -541, 396, -1370, 382, -298, 696, -899, 611, -810, 401, -640, 222, -204, 316, -252, 2598, -588, 396, -464, 322, -790, 715, -1160, 
13:12:59	[I]	[remote.raw:027]	
  482, -583, 620, -596, 407, -375, 936, -475, 704, -681, 781, -549, 445, -559, 440, -549, 454, -286, 316, -266, 268, -570, 543, -293, 1340, -1037, 406, -356, 2243, -610, 242, -482, 871, -474, 875, -478, 876, -473, 871, -483, 871, -478, 871, -899, 478, 
13:12:59	[I]	[remote.raw:027]	
  -872, 477, -450, 875, -475, 874, -478, 876, -473, 871, -478, 876, -474, 875, -899, 478, -871, 478, -450, 875, -474, 875, -478, 871, -475, 874, -900, 478, -454, 871, -473, 876, -474, 875, -899, 478, -450, 876, -895, 477, -876, 478, -871, 478, -449, 
13:12:59	[I]	[remote.raw:036]	
  871, -478, 876, -473, 876
13:12:59	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
13:12:59	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
13:12:59	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
13:12:59	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='00000011000000110000100010111000'
13:12:59	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=6 data='0000001100000011000010001011100'
13:12:59	[I]	[remote.raw:027]	
Received Raw: 1239, -489, 633, -1284, 458, -544, 639, -1557, 1439, -564, 359, -493, 454, -667, 398, -373, 644, -999, 355, -317, 497, -715, 383, -440, 649, -540, 354, -492, 464, -497, 469, -530, 450, -724, 1013, -1000, 434, -512, 392, -653, 445, -699, 
13:13:00	[I]	[remote.raw:036]	
  394, -281, 462, -833, 365, -1625, 382, -588, 382, -1785, 430, -2685, 681, -1738, 377, -223, 326, -457, 495, -1487, 463, -1126, 450
13:13:00	[I]	[remote.raw:036]	
Received Raw: -398, 558, -383, 748, -634, 743, -2670, 478, -355, 364, -267, 860, -356, 373, -1520, 520, -2305, 1022, -1199, 1092
13:13:00	[D]	[bh1750.sensor:157]	
'BH1750 Illuminance': Illuminance=2.3lx
13:13:00	[D]	[sensor:124]	
'BH1750 Illuminance' >> 11.3 lx
13:13:00	[I]	[remote.raw:036]	
Received Raw: 899, -1155, 374, -1013, 833, -303, 360, -261, 364, -889, 355, -361, 345, -388, 544, -427, 335, -814, 369, -933, 374, -1193, 411, -284, 696, -1041, 426, -450, 346
13:13:00	[I]	[remote.raw:036]	
Received Raw: 374, -517, 671, -525, 360, -1705, 595, -2584, 393, -1038, 704, -658, 696, -474, 666, -308, 346, -284, 932, -2160, 514, -407, 2130, -399, 515
13:13:00	[I]	[remote.raw:027]	
Received Raw: 392, -2267, 677, -464, 397, -427, 373, -726, 680, -328, 524, -427, 491, -418, 581, -834, 486, -570, 917, -610, 966, -1254, 734, -404, 362, -327, 535, -659, 747, -1473, 325, -791, 345, -459, 355, -507, 459, -659, 1532, -1936, 800, -393, 
13:13:00	[I]	[remote.raw:027]	
  606, -422, 714, -733, 450, -454, 431, -271, 1163, -464, 331, -475, 1064, -593, 424, -579, 467, -607, 927, -1060, 402, -527, 444, -3938, 402, -252, 259, -270, 327, -577, 421, -1198, 1628, -721, 316, -252, 718, -337, 1499, -674, 699, -497, 487, -445, 

I’ve dropped off the second code trasmit, seems that on the last code it’s just dropping a 0… but still no luck it being recognised by the fan

14:27:27	[D]	[button:019]	
'RF_test2' Pressed.
14:27:27	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
14:27:27	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
14:27:27	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
14:27:27	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='00000011000000110000100010111000'
14:27:27	[I]	[remote.rc_switch:261]	
Received RCSwitch Raw: protocol=1 data='0000001100000011000010001011100'

I don’t see any valid signal on your raw dumps. Are those just interferences that show up even if you don’t press buttons?
You should debug this with just raw dump, not together with rc-switch. Try to capture raw output exactly after you press the remote button.

I added the - Raw command to the receiver, and that is what it spat out continually without any button press apart from the obvious. Or is there another raw dump I should be looking at?

Remove the rc-switch dump.

Thanks for your patience - but I’m now lost at which bit I need to modify to remove that, I’ve made some attempts but it doesn’t validate

I think I’ve got it

This is remote press

21:06:36	[I]	[remote.raw:027]	
Received Raw: 1159, -1017, 1169, -281, 827, -848, 2034, -402, 564, -560, 477, -351, 363, -1109, 1158, -783, 1590, -642, 786, -550, 397, -394, 590, -514, 1309, -450, 614, -437, 804, -1004, 515, -554, 553, -550, 2948, -1743, 685, -252, 1093, -531, 945, 
21:06:36	[I]	[remote.raw:027]	
  -787, 1528, -673, 1452, -497, 1841, -352, 2673, -866, 1377, -284, 1955, -782, 704, -2572, 2497, -565, 420, -478, 450, -1694, 1316, -518, 466, -484, 1656, -445, 909, -360, 714, -1762, 1916, -410, 2127, -384, 818, -2964, 1504, -366, 1205, -442, 1243, 
21:06:36	[I]	[remote.raw:027]	
  -546, 1452, -1075, 927, -522, 514, -1417, 1660, -441, 695, -626, 1154, -1340, 4675, -513, 600, -422, 969, -560, 723, -631, 391, -461, 458, -346, 439, -568, 4984, -4337, 562, -395, 968, -418, 2214, -1639, 2379, -943, 463, -1437, 565, -1123, 823, -559, 
21:06:36	[I]	[remote.raw:027]	
  496, -494, 462, -536, 1277, -498, 624, -626, 2569, -479, 396, -465, 430, -484, 2474, -1435, 430, -299, 591, -1397, 307, -842, 459, -309, 1594, -2453, 661, -337, 790, -1005, 917, -3863, 425, -1107, 488, -525, 431, -899, 3257, -957, 439, -691, 573, 
21:06:36	[I]	[remote.raw:027]	
  -1085, 1400, -1246, 377, -844, 429, -1397, 700, -371, 368, -667, 1264, -300, 746, -318, 548, -493, 614, -630, 710, -2381, 2513, -1028, 1528, -451, 538, -469, 610, -674, 694, -414, 1139, -587, 345, -512, 548, -2410, 492, -659, 406, -460, 472, -518, 
21:06:37	[I]	[remote.raw:027]	
  656, -1000, 590, -1165, 2688, -375, 3421, -1393, 548, -2737, 1532, -2245, 505, -630, 676, -437, 368, -427, 387, -725, 477, -720, 1169, -587, 724, -588, 557, -1567, 417, -1189, 477, -555, 746, -2089, 713, -1236, 482, -484, 458, -1695, 449, -1813, 2064, 
21:06:37	[I]	[remote.raw:027]	
  -295, 950, -1388, 301, -663, 729, -460, 714, -1553, 345, -1298, 505, -513, 519, -1397, 984, -578, 1026, -1388, 515, -640, 842, -266, 3506, -389, 501, -602, 415, -991, 567, -592, 704, -413, 439, -393, 1780, -579, 415, -257, 1778, -314, 453, -479, 458, 
21:06:37	[I]	[remote.raw:027]	
  -528, 835, -479, 1022, -720, 435, -507, 505, -603, 713, -806, 1168, -408, 676, -323, 1419, -929, 467, -451, 515, -1179, 648, -389, 472, -2122, 671, -1670, 483, -583, 1135, -611, 762, -758, 775, -587, 947, -975, 1240, -350, 568, -934, 567, -1009, 638, 
21:06:37	[I]	[remote.raw:036]	
  -1014, 2280, -1051, 947, -1543, 359, -877, 449, -450, 643, -583, 1021, -314, 619, -844, 950, -507, 1107, -501, 450, -464, 459, -942, 615, -1094, 397, -630, 563, -323, 316, -1819, 429, -404, 434, -596, 431, -782, 401, -858, 558, -422

This is what comes out after pressing the esphome button: (edited in clean capture)


21:13:17	[D]	[button:019]	
'RF_test2' Pressed.
21:13:17	[I]	[remote.raw:027]	
Received Raw: 900, -5155, 676, -676, 1094, -410, 343, -550, 344, -455, 1183, -328, 666, -318, 349, -404, 680, -465, 1069, -465, 879, -2429, 780, -394, 624, -341, 369, -451, 353, -754, 955, -356, 709, -473, 1089, -493, 558, -370, 553, -374, 1041, -558, 
21:13:17	[I]	[remote.raw:027]	
  1075, -364, 412, -508, 453, -309, 675, -568, 1160, -1255, 989, -323, 505, -757, 497, -360, 1306, -1311, 564, -1173, 857, -512, 392, -479, 1093, -304, 292, -825, 387, -261, 283, -975, 383, -333, 415, -838, 658, -563, 365, -247, 439, -520, 2727, -257, 
21:13:17	[I]	[remote.raw:027]	
  524, -785, 867, -308, 359, -337, 591, -355, 705, -1335, 762, -465, 1480, -356, 378, -479, 889, -766, 1103, -584, 723, -416, 1723, -332, 766, -522, 945, -644, 374, -4108, 937, -626, 823, -593, 382, -239, 471, -1167, 395, -691, 648, -607, 520, -720, 
21:13:17	[I]	[remote.raw:027]	
  368, -229, 325, -432, 368, -1429, 412, -271, 439, -884, 726, -610, 563, -2302, 746, -3504, 439, -644, 890, -322, 785, -413, 340, -397, 332, -380, 377, -233, 1064, -1224, 1630, -399, 827, -314, 562, -2821, 586, -516, 393, -787, 382, -280, 463, -849, 
21:13:17	[I]	[remote.raw:027]	
  392, -662, 1146, -672, 2149, -536, 524, -677, 440, -421, 791, -365, 491, -1411, 397, -1057, 699, -341, 1373, -1123, 391, -358, 480, -682, 1033, -346, 1787, -379, 927, -753, 464, -2854, 407, -265, 497, -331, 431, -4067, 520, -340, 601, -559, 464, -294, 
21:13:17	[I]	[remote.raw:027]	
  321, -948, 1352, -613, 1167, -819, 435, -612, 524, -336, 602, -384, 553, -493, 770, -1196, 494, -2523, 464, -535, 771, -483, 364, -252, 766, -417, 383, -465, 922, -919, 1012, -1227, 501, -616, 392, -672, 530, -375, 330, -398, 454, -243, 349, -1326, 
21:13:17	[I]	[remote.raw:027]	
  586, -596, 407, -319, 784, -513, 401, -426, 738, -563, 1203, -375, 585, -824, 1254, -384, 1775, -431, 1623, -1317, 713, -2889, 1527, -568, 422, -701, 1211, -630, 411, -511, 606, -833, 417, -752, 682, -497, 909, -556, 371, -849, 609, -540, 449, -569, 
21:13:17	[I]	[remote.raw:027]	
  1840, -1312, 695, -687, 549, -482, 403, -596, 1576, -816, 1343, -279, 412, -389, 429, -1626, 618, -1549, 704, -1071, 467, -1567, 753, -416, 710, -493, 1036, -530, 648, -1236, 965, -2343, 412, -634, 384, -601, 525, -3507, 441, -534, 393, -298, 1103, 
21:13:17	[I]	[remote.raw:036]	
  -334, 1441, -465, 595, -1478, 383, -1292, 994, -2183, 425, -596, 1335, -754, 775, -1618, 422, -663, 1798, -620, 752, -1005, 1676, -562, 432, -595, 393, -592, 1225, -839, 292, -682, 4563, -695, 1018, -2315
21:13:17	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 388, -1008, 393, -1008, 393, -1008, 393, -1008, 393, -1008, 1051, -388, 1008, -393, 350, -1008, 393, -1009, 388, -1009, 392, -1008, 393, -1008, 388, -1013, 1046, -393, 1013, -388, 355, -1003, 393, -1008, 393, -1008, 388, -1011, 
21:13:17	[I]	[remote.raw:036]	
  1048, -393, 355, -1003, 393, -1009, 392, -1009, 1050, -393, 350, -1004, 1051, -392, 1009, -392, 1009, -389, 354, -1003, 393, -1008, 393, -1008, 388
21:13:17	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1008, 393, -1008, 388, -1008, 393, -1008, 393, -1008, 1051, -388, 1013, -388, 355, -1004, 392, -1009, 392, -1009, 392, -1009, 388, -1009, 392, -1008, 1051, -392, 1009, -388, 355, -1008, 388, -1008, 393, -1008, 393, -1008, 
21:13:17	[I]	[remote.raw:036]	
  1051, -393, 350, -1008, 388, -1009, 392, -1009, 1050, -388, 355, -1009, 1050, -388, 1009, -388, 1013, -393, 350, -1008, 393, -1008, 393, -1004, 392
21:13:17	[I]	[remote.raw:027]	
Received Raw: 388, -1009, 392, -1008, 393, -1008, 393, -1008, 388, -1013, 388, -1008, 1051, -389, 1012, -389, 354, -1008, 388, -1013, 388, -1009, 392, -1009, 392, -1009, 393, -1008, 1050, -389, 1008, -393, 350, -1008, 393, -1008, 393, -1008, 388, -1008, 
21:13:17	[I]	[remote.raw:036]	
  1056, -388, 350, -1008, 393, -1008, 393, -1005, 1049, -394, 354, -1004, 1050, -393, 1008, -393, 1004, -393, 355, -1003, 393, -1008, 393, -1008, 388
21:13:17	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1008, 393, -1004, 392, -1008, 393, -1008, 393, -1008, 1051, -393, 1008, -388, 350, -1008, 393, -1008, 393, -1008, 393, -1005, 392, -1008, 393, -1008, 1050, -393, 1008, -390, 354, -1005, 391, -1008, 393, -1008, 393, -1008, 
21:13:17	[I]	[remote.raw:036]	
  1051, -393, 350, -1005, 391, -1008, 393, -1008, 1051, -393, 350, -1005, 1049, -393, 1008, -393, 1008, -389, 359, -1004, 388, -1008, 393, -1008, 393
21:13:17	[I]	[remote.raw:027]	
Received Raw: 389, -1008, 393, -1008, 393, -1008, 393, -1008, 388, -1008, 393, -1008, 1051, -393, 1008, -393, 350, -1005, 391, -1008, 393, -1008, 389, -1012, 393, -1008, 393, -1005, 1050, -392, 1009, -392, 351, -1008, 393, -1008, 393, -1003, 393, -1008, 
21:13:17	[I]	[remote.raw:036]	
  1051, -393, 350, -1008, 393, -1005, 396, -1003, 1051, -393, 355, -1003, 1051, -393, 1004, -392, 1009, -392, 351, -1008, 393, -1008, 393

remote_receiver:
- id: RF_RX
  pin:
    number: GPIO5
    inverted: false
  dump:
    - raw  #(delete # for raw data)
    #- rc_switch

Objective is to catch the raw signal which esp decodes as rc-switch if dump: rc_switch is configured.

It’s really chaotic, no pattern.
Either a mix of other signals on background or not OOK signal.
Do you know anything about the remote control like frquency and modulation?
Do you have any other remotes (matching with your 360 receiver) to try?

I’ve moved location of the 360 and seems to be less noise and not a constant dribble of codes… The freqs will be Aus spec 433mhz. I don’t have it controlling anything else, this is the first attempt as I haven’t been able to get it going.

Here’s 4 presses of the remote button:

11:29:53	[I]	[remote.raw:027]	
Received Raw: 350, -876, 350, -877, 354, -872, 353, -876, 355, -875, 351, -876, 918, -350, 880, -355, 308, -876, 355, -871, 350, -880, 351, -876, 354, -876, 355, -875, 919, -355, 875, -355, 313, -871, 355, -875, 350, -876, 355, -872, 922, -355, 312, 
11:29:53	[I]	[remote.raw:036]	
  -868, 353, -876, 355, -871, 918, -360, 312, -871, 923, -355, 871, -355, 876, -355, 312, -867, 359, -871, 355, -871, 355
11:29:53	[I]	[remote.raw:027]	
Received Raw: 351, -875, 355, -872, 354, -876, 355, -872, 354, -875, 355, -876, 923, -350, 876, -355, 312, -874, 357, -871, 355, -875, 355, -871, 355, -876, 355, -871, 928, -350, 875, -355, 313, -868, 358, -872, 358, -871, 355, -871, 923, -360, 307, 
11:29:53	[I]	[remote.raw:036]	
  -867, 359, -876, 355, -871, 923, -355, 312, -871, 918, -360, 871, -360, 871, -355, 312, -866, 360, -871, 355, -871, 355
11:29:53	[I]	[remote.raw:027]	
Received Raw: 358, -867, 359, -876, 355, -871, 359, -871, 355, -876, 355, -872, 922, -356, 874, -355, 313, -866, 355, -876, 355, -871, 359, -871, 355, -872, 354, -876, 918, -355, 880, -355, 308, -866, 360, -875, 355, -871, 360, -871, 923, -356, 311, 
11:29:53	[I]	[remote.raw:036]	
  -866, 360, -871, 360, -867, 927, -350, 317, -867, 922, -355, 871, -356, 875, -355, 317, -861, 355, -876, 355, -871, 355
11:29:53	[I]	[remote.raw:027]	
Received Raw: 355, -871, 359, -867, 359, -871, 360, -866, 360, -871, 359, -871, 923, -356, 870, -356, 312, -872, 363, -866, 355, -876, 355, -867, 359, -866, 359, -871, 923, -365, 871, -359, 308, -866, 365, -868, 362, -862, 359, -871, 923, -355, 313, 
11:29:53	[I]	[remote.raw:036]	
  -878, 357, -861, 360, -866, 923, -365, 307, -862, 928, -364, 866, -350, 871, -355, 313, -866, 360, -875, 355, -871, 360
11:29:53	[I]	[remote.raw:027]	
Received Raw: 360, -871, 360, -866, 359, -871, 365, -861, 365, -866, 360, -866, 923, -355, 875, -351, 312, -866, 360, -866, 355, -876, 359, -871, 360, -866, 360, -871, 923, -356, 870, -359, 308, -866, 360, -866, 360, -871, 359, -871, 919, -359, 313, 
11:29:53	[I]	[remote.raw:036]	
  -866, 360, -867, 358, -867, 927, -355, 308, -866, 918, -369, 867, -369, 871, -351, 311, -867, 359, -871, 360
11:29:58	[I]	[remote.raw:036]	
Received Raw: 331
11:29:58	[I]	[remote.raw:027]	
Received Raw: 350, -876, 355, -875, 350, -876, 355, -872, 354, -876, 355, -875, 928, -347, 874, -352, 315, -876, 360, -866, 355, -871, 355, -876, 355, -875, 355, -871, 923, -355, 876, -350, 312, -871, 355, -871, 355, -876, 355, -871, 923, -355, 307, 
11:29:58	[I]	[remote.raw:036]	
  -871, 360, -866, 360, -871, 913, -365, 312, -867, 927, -355, 866, -356, 879, -351, 312, -871, 355, -871, 355, -871, 355
11:29:58	[I]	[remote.raw:027]	
Received Raw: 355, -871, 355, -872, 358, -871, 355, -872, 359, -871, 355, -876, 917, -360, 876, -355, 312, -863, 358, -871, 355, -872, 354, -876, 355, -871, 355, -875, 918, -355, 876, -355, 312, -867, 355, -873, 357, -871, 355, -871, 923, -356, 311, 
11:29:58	[I]	[remote.raw:036]	
  -871, 355, -871, 360, -871, 923, -355, 312, -866, 928, -350, 876, -350, 876, -355, 307, -871, 360, -871, 355, -871, 355
11:29:58	[I]	[remote.raw:027]	
Received Raw: 350, -872, 354, -878, 353, -875, 355, -876, 355, -871, 355, -871, 927, -352, 874, -352, 316, -866, 360, -870, 355, -876, 360, -867, 354, -871, 355, -875, 923, -351, 875, -352, 316, -866, 355, -872, 358, -876, 355, -871, 918, -360, 308, 
11:29:58	[I]	[remote.raw:036]	
  -867, 358, -876, 355, -871, 923, -355, 312, -870, 924, -350, 876, -350, 881, -351, 311, -871, 355, -871, 355, -873, 358
11:29:58	[I]	[remote.raw:027]	
Received Raw: 360, -867, 359, -871, 355, -875, 355, -871, 350, -877, 359, -871, 918, -360, 875, -350, 313, -866, 355, -871, 360, -867, 363, -866, 360, -871, 355, -871, 918, -360, 875, -355, 308, -872, 354, -876, 355, -871, 359, -871, 923, -350, 313, 
11:29:58	[I]	[remote.raw:036]	
  -867, 359, -871, 359, -866, 928, -350, 313, -866, 923, -355, 876, -355, 870, -355, 313, -871, 350, -876, 359, -872, 354
11:29:58	[I]	[remote.raw:027]	
Received Raw: 355, -872, 354, -873, 353, -876, 355, -872, 354, -875, 355, -876, 923, -350, 876, -350, 312, -866, 355, -876, 350, -877, 354, -876, 350, -877, 353, -876, 923, -355, 871, -355, 308, -875, 355, -871, 355, -876, 355, -875, 919, -350, 312, 
11:29:58	[I]	[remote.raw:036]	
  -871, 355, -873, 353, -876, 923, -351, 311, -871, 918, -355, 876, -355, 876, -350, 312, -871, 355, -871, 355
11:30:00	[I]	[remote.raw:036]	
Received Raw: 327
11:30:01	[I]	[remote.raw:027]	
Received Raw: 360, -881, 355, -872, 353, -876, 355, -871, 355, -876, 350, -875, 919, -355, 875, -355, 308, -871, 355, -871, 355, -875, 351, -875, 355, -872, 354, -876, 923, -350, 876, -350, 317, -866, 355, -876, 355, -871, 355, -872, 922, -355, 312, 
11:30:01	[I]	[remote.raw:036]	
  -866, 355, -876, 355, -871, 923, -351, 311, -871, 923, -350, 876, -355, 871, -355, 312, -871, 355, -871, 355, -871, 355
11:30:01	[I]	[remote.raw:027]	
Received Raw: 355, -866, 360, -871, 359, -871, 355, -872, 359, -871, 355, -871, 923, -355, 875, -351, 307, -871, 355, -876, 355, -871, 355, -875, 351, -875, 360, -867, 917, -361, 875, -350, 312, -871, 355, -872, 354, -876, 355, -871, 923, -355, 312, 
11:30:01	[I]	[remote.raw:036]	
  -866, 360, -871, 355, -871, 923, -355, 307, -871, 923, -355, 871, -356, 875, -355, 312, -866, 355, -871, 355, -871, 355
11:30:01	[I]	[remote.raw:027]	
Received Raw: 355, -872, 354, -875, 355, -871, 355, -872, 359, -871, 355, -875, 919, -355, 875, -351, 312, -871, 355, -871, 355, -875, 355, -874, 357, -871, 355, -871, 918, -356, 879, -352, 311, -871, 355, -872, 354, -875, 351, -875, 923, -352, 311, 
11:30:01	[I]	[remote.raw:036]	
  -871, 355, -875, 351, -875, 923, -351, 312, -871, 923, -350, 876, -359, 871, -351, 312, -871, 355, -871, 355, -871, 355
11:30:01	[I]	[remote.raw:027]	
Received Raw: 355, -871, 355, -870, 355, -876, 355, -871, 360, -871, 355, -870, 923, -355, 871, -360, 312, -867, 355, -875, 355, -872, 359, -867, 359, -871, 359, -871, 918, -358, 873, -355, 312, -867, 359, -868, 358, -871, 355, -876, 923, -351, 311, 
11:30:01	[I]	[remote.raw:036]	
  -871, 355, -871, 355, -871, 923, -355, 312, -871, 919, -359, 866, -365, 866, -360, 312, -866, 360, -867, 359, -871, 355
11:30:01	[I]	[remote.raw:027]	
Received Raw: 355, -867, 359, -872, 358, -868, 363, -866, 355, -876, 355, -871, 918, -356, 870, -360, 312, -866, 360, -866, 360, -871, 359, -866, 360, -871, 355, -871, 923, -355, 871, -360, 307, -866, 360, -871, 355, -871, 360, -871, 918, -359, 313, 
11:30:01	[I]	[remote.raw:036]	
  -866, 350, -876, 360, -871, 908, -369, 313, -866, 923, -355, 871, -355, 871, -356, 316, -863, 358, -866, 355
11:30:07	[I]	[remote.raw:036]	
Received Raw: 341
11:30:07	[I]	[remote.raw:027]	
Received Raw: 360, -875, 355, -876, 355, -871, 355, -875, 355, -871, 355, -872, 922, -351, 880, -346, 312, -872, 353, -876, 355, -872, 354, -876, 355, -870, 355, -871, 923, -352, 879, -350, 313, -872, 354, -872, 353, -877, 354, -872, 922, -355, 312, 
11:30:07	[I]	[remote.raw:036]	
  -868, 353, -876, 350, -876, 918, -356, 312, -870, 919, -355, 880, -350, 876, -360, 303, -875, 350, -873, 353, -874, 352
11:30:07	[I]	[remote.raw:027]	
Received Raw: 350, -876, 355, -871, 350, -876, 355, -875, 355, -871, 355, -872, 927, -350, 876, -355, 307, -871, 355, -876, 355, -871, 350, -876, 355, -872, 358, -871, 923, -355, 871, -355, 308, -871, 355, -875, 350, -876, 355, -876, 918, -355, 308, 
11:30:07	[I]	[remote.raw:036]	
  -870, 355, -876, 350, -877, 922, -355, 312, -868, 921, -351, 875, -356, 875, -350, 313, -870, 355, -876, 355, -871, 355
11:30:07	[I]	[remote.raw:027]	
Received Raw: 350, -876, 355, -872, 354, -872, 354, -876, 354, -876, 355, -873, 921, -350, 880, -351, 312, -871, 355, -876, 355, -870, 355, -871, 355, -872, 359, -871, 923, -350, 880, -352, 311, -871, 355, -872, 354, -875, 351, -875, 928, -350, 308, 
11:30:07	[I]	[remote.raw:036]	
  -872, 354, -876, 350, -875, 923, -355, 308, -873, 916, -355, 881, -351, 874, -352, 311, -871, 355, -876, 355, -873, 352
11:30:07	[I]	[remote.raw:027]	
Received Raw: 351, -875, 355, -871, 355, -876, 355, -871, 355, -875, 355, -876, 918, -355, 871, -355, 313, -867, 354, -875, 355, -872, 359, -871, 360, -870, 355, -871, 923, -352, 879, -351, 312, -870, 355, -871, 360, -871, 355, -871, 923, -355, 312, 
11:30:07	[I]	[remote.raw:036]	
  -866, 355, -872, 359, -866, 923, -355, 312, -868, 926, -352, 874, -355, 876, -355, 308, -870, 355, -871, 360, -867, 359
11:30:07	[I]	[remote.raw:027]	
Received Raw: 355, -871, 355, -875, 355, -871, 355, -871, 355, -872, 354, -876, 923, -355, 459, -768, 306, -871, 355, -876, 350, -876, 355, -871, 355, -870, 360, -871, 923, -355, 876, -351, 311, -866, 355, -878, 353, -876, 355, -871, 923, -355, 312, 
11:30:07	[I]	[remote.raw:036]	
  -866, 355, -872, 359, -871, 923, -351, 311, -871, 923, -355, 871, -355, 871, -356, 311, -872, 359, -866, 355

and 4 presses of the ESP360:

11:33:07	[D]	[button:019]	
'RF_test2' Pressed.
11:33:07	[I]	[remote.raw:027]	
Received Raw: 393, -1004, 397, -1004, 397, -1003, 393, -1008, 393, -1005, 396, -1005, 1049, -394, 1007, -393, 355, -1000, 396, -1009, 393, -1004, 397, -1003, 393, -1008, 393, -1004, 1055, -393, 1008, -388, 355, -1003, 388, -1013, 393, -1008, 393, -1005, 
11:33:07	[I]	[remote.raw:036]	
  1049, -393, 355, -1004, 392, -1006, 396, -1008, 1046, -397, 351, -1003, 1051, -393, 1008, -388, 1013, -393, 350, -1004, 392, -1008, 388, -1010, 396
11:33:07	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1008, 393, -1004, 397, -1003, 393, -1008, 388, -1011, 1053, -388, 1013, -388, 355, -1004, 393, -1008, 393, -1004, 397, -1004, 397, -1003, 393, -1008, 1051, -389, 1012, -388, 355, -1008, 393, -1003, 393, -1008, 393, -1008, 
11:33:07	[I]	[remote.raw:036]	
  1051, -388, 355, -1005, 392, -1008, 393, -1008, 1050, -389, 359, -1000, 1055, -389, 1007, -397, 999, -394, 354, -1008, 393, -1008, 393, -1005, 391
11:33:07	[I]	[remote.raw:027]	
Received Raw: 393, -1003, 393, -1008, 393, -1008, 393, -1008, 388, -1010, 396, -1005, 1049, -389, 1012, -388, 360, -1000, 396, -1005, 396, -1004, 393, -1008, 393, -1004, 397, -1008, 1051, -390, 1006, -389, 354, -1008, 393, -1006, 390, -1010, 396, -1005, 
11:33:07	[I]	[remote.raw:036]	
  1049, -389, 354, -1005, 396, -1008, 389, -1009, 1050, -392, 351, -1008, 1051, -388, 1013, -388, 1013, -389, 354, -1003, 393, -1008, 393, -1005, 396
11:33:07	[I]	[remote.raw:027]	
Received Raw: 393, -1004, 397, -1004, 397, -1003, 398, -1003, 393, -1008, 393, -1008, 1051, -388, 1008, -398, 350, -1003, 393, -1009, 392, -1006, 391, -1009, 396, -1004, 393, -1008, 1051, -389, 1012, -392, 351, -1004, 392, -1008, 388, -1013, 393, -1005, 
11:33:07	[I]	[remote.raw:036]	
  1054, -393, 350, -1005, 391, -1009, 392, -1009, 1050, -388, 355, -1005, 1050, -395, 1006, -392, 1009, -392, 351, -1008, 393, -1003, 393, -1008, 393
11:33:07	[I]	[remote.raw:027]	
Received Raw: 392, -1004, 393, -1004, 397, -1004, 397, -1004, 397, -1003, 398, -1003, 1051, -393, 1008, -393, 350, -1006, 395, -1005, 391, -1009, 388, -1013, 388, -1013, 392, -1005, 1050, -392, 1009, -388, 355, -1004, 397, -1004, 397, -1004, 392, -1008, 
11:33:07	[I]	[remote.raw:036]	
  1051, -393, 350, -1005, 396, -1005, 391, -1009, 1050, -390, 353, -1009, 1050, -393, 1004, -393, 1008, -394, 354, -1003, 393, -1008, 393
11:33:08	[D]	[button:019]	
'RF_test2' Pressed.
11:33:08	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1008, 393, -1004, 397, -1004, 393, -1008, 393, -1008, 1051, -392, 1009, -388, 350, -1008, 393, -1005, 391, -1013, 393, -1005, 396, -1003, 393, -1008, 1051, -393, 1008, -393, 350, -1005, 392, -1008, 393, -1008, 393, -1008, 
11:33:08	[I]	[remote.raw:036]	
  1051, -389, 354, -1004, 392, -1008, 393, -1008, 1051, -388, 355, -1005, 1049, -393, 1008, -393, 1008, -388, 355, -1006, 395, -1005, 392, -1008, 393
11:33:08	[I]	[remote.raw:027]	
Received Raw: 388, -1009, 392, -1009, 392, -1009, 392, -1009, 388, -1009, 392, -1008, 1051, -392, 1004, -394, 358, -1003, 389, -1009, 397, -1003, 393, -1008, 393, -1005, 396, -1006, 1053, -388, 1008, -393, 355, -1002, 394, -1009, 388, -1009, 392, -1008, 
11:33:08	[I]	[remote.raw:036]	
  1051, -392, 355, -1004, 393, -1004, 392, -1009, 1050, -393, 355, -1003, 1051, -389, 1012, -388, 1009, -392, 355, -1004, 392, -1005, 396, -1009, 392
11:33:08	[I]	[remote.raw:027]	
Received Raw: 388, -1013, 393, -1005, 391, -1009, 392, -1009, 392, -1005, 396, -1009, 1046, -394, 1007, -395, 353, -1003, 393, -1004, 392, -1009, 392, -1009, 397, -1003, 393, -1006, 1053, -393, 1008, -388, 355, -1004, 392, -1009, 392, -1005, 392, -1009, 
11:33:08	[I]	[remote.raw:036]	
  1054, -389, 355, -1003, 393, -1008, 393, -1004, 1055, -388, 355, -1003, 1051, -393, 1008, -393, 1008, -389, 354, -1005, 391, -1009, 397, -1004, 393
11:33:08	[I]	[remote.raw:027]	
Received Raw: 392, -1008, 388, -1013, 393, -1005, 391, -1010, 392, -1008, 393, -1008, 1046, -397, 1008, -393, 351, -1004, 392, -1008, 393, -1008, 388, -1013, 388, -1010, 396, -1003, 1051, -391, 1010, -393, 350, -1008, 389, -1009, 396, -1004, 393, -1008, 
11:33:08	[I]	[remote.raw:036]	
  1050, -389, 355, -1004, 392, -1009, 392, -1008, 1051, -393, 350, -1008, 1046, -393, 1013, -393, 1003, -393, 350, -1008, 393, -1008, 389, -1009, 392
11:33:08	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 388, -1008, 398, -1003, 393, -1008, 393, -1008, 393, -1005, 1054, -388, 1009, -392, 351, -1004, 397, -1004, 392, -1009, 392, -1008, 393, -1008, 393, -1008, 1046, -393, 1008, -398, 345, -1008, 389, -1009, 396, -1008, 393, -1005, 
11:33:08	[I]	[remote.raw:036]	
  1050, -392, 351, -1008, 393, -1008, 393, -1004, 1055, -392, 351, -1003, 1051, -388, 1008, -394, 1012, -389, 354, -1003, 393, -1008, 393
11:33:09	[D]	[button:019]	
'RF_test2' Pressed.
11:33:09	[I]	[remote.raw:027]	
Received Raw: 393, -1004, 393, -1008, 393, -1004, 397, -1004, 397, -1003, 393, -1008, 1051, -388, 1013, -389, 354, -1008, 388, -1008, 393, -1008, 393, -1008, 393, -1005, 396, -1005, 1049, -394, 1007, -393, 351, -1008, 393, -1005, 391, -1009, 392, -1008, 
11:33:09	[I]	[remote.raw:036]	
  1051, -393, 350, -1008, 393, -1008, 388, -1008, 1051, -393, 350, -1005, 1054, -393, 1008, -391, 1005, -393, 355, -1004, 393, -1008, 393, -1005, 391
11:33:09	[I]	[remote.raw:027]	
Received Raw: 393, -1005, 392, -1008, 397, -1004, 393, -1008, 393, -1008, 393, -1004, 1050, -397, 1004, -393, 355, -1003, 388, -1013, 393, -1005, 396, -1003, 393, -1008, 393, -1006, 1049, -392, 1009, -392, 355, -1004, 393, -1008, 393, -1008, 393, -1004, 
11:33:09	[I]	[remote.raw:036]	
  1055, -388, 355, -1003, 393, -1008, 393, -1008, 1051, -388, 355, -1003, 1051, -393, 1008, -393, 1008, -390, 353, -1005, 392, -1008, 393, -1008, 393
11:33:09	[I]	[remote.raw:027]	
Received Raw: 388, -1009, 392, -1009, 392, -1009, 392, -1005, 392, -1008, 393, -1008, 1051, -392, 1009, -388, 355, -1003, 393, -1008, 388, -1013, 393, -1006, 395, -1005, 391, -1009, 1050, -393, 1008, -388, 355, -1009, 392, -1005, 392, -1008, 393, -1008, 
11:33:09	[I]	[remote.raw:036]	
  1051, -392, 351, -1008, 388, -1008, 393, -1008, 1051, -393, 350, -1005, 1054, -388, 1008, -393, 1008, -393, 350, -1009, 388, -1013, 388, -1009, 392
11:33:09	[I]	[remote.raw:027]	
Received Raw: 393, -1005, 391, -1010, 391, -1009, 392, -1005, 392, -1009, 396, -1005, 1050, -393, 1008, -393, 350, -1008, 388, -1013, 393, -1003, 393, -1008, 393, -1008, 388, -1013, 1051, -388, 1013, -388, 355, -1004, 388, -1009, 396, -1009, 388, -1009, 
11:33:09	[I]	[remote.raw:036]	
  1050, -393, 355, -1003, 393, -1004, 397, -1004, 1055, -389, 354, -1003, 1051, -389, 1012, -393, 1008, -393, 350, -1004, 392, -1009, 392, -1009, 393
11:33:09	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1005, 396, -1005, 391, -1009, 392, -1009, 393, -1008, 1050, -389, 1008, -393, 355, -1003, 393, -1008, 393, -1004, 392, -1009, 392, -1008, 393, -1008, 1051, -388, 1013, -388, 355, -1008, 393, -1004, 393, -1008, 393, -1008, 
11:33:09	[I]	[remote.raw:036]	
  1050, -389, 355, -1004, 392, -1008, 393, -1008, 1051, -393, 350, -1008, 1046, -398, 1003, -393, 1008, -389, 354, -1008, 393, -1008, 389
11:33:09	[D]	[button:019]	
'RF_test2' Pressed.
11:33:09	[I]	[remote.raw:027]	
Received Raw: 389, -1008, 393, -1008, 393, -1008, 393, -1004, 397, -1004, 392, -1008, 1051, -393, 1008, -393, 350, -1005, 396, -1003, 393, -1008, 393, -1008, 389, -1009, 396, -1005, 1049, -393, 1008, -390, 354, -1008, 393, -1008, 393, -1004, 392, -1008, 
11:33:09	[I]	[remote.raw:036]	
  1051, -393, 350, -1005, 391, -1010, 396, -1003, 1051, -391, 352, -1008, 1051, -389, 1007, -396, 1005, -393, 355, -1004, 393, -1004, 397, -1007, 394
11:33:09	[I]	[remote.raw:027]	
Received Raw: 389, -1012, 393, -1005, 396, -1004, 393, -1008, 393, -1008, 393, -1005, 1054, -388, 1008, -395, 348, -1006, 395, -1008, 393, -1005, 396, -1003, 393, -1008, 393, -1008, 1051, -388, 1013, -388, 355, -1004, 393, -1008, 388, -1013, 393, -1008, 
11:33:09	[I]	[remote.raw:036]	
  1051, -388, 355, -1003, 393, -1005, 396, -1008, 1051, -393, 350, -1005, 1049, -393, 1008, -393, 1004, -397, 350, -1005, 392, -1008, 393, -1008, 388
11:33:10	[I]	[remote.raw:027]	
Received Raw: 391, -1009, 392, -1009, 388, -1013, 392, -1009, 392, -1004, 393, -1008, 1051, -388, 1013, -392, 351, -1003, 393, -1008, 393, -1008, 388, -1010, 396, -1005, 396, -1004, 1050, -393, 1008, -393, 350, -1009, 388, -1009, 396, -1004, 393, -1008, 
11:33:10	[I]	[remote.raw:036]	
  1046, -393, 355, -1004, 392, -1009, 392, -1008, 1051, -388, 355, -1006, 1048, -398, 1008, -389, 1007, -393, 350, -1009, 388, -1009, 396, -1005, 396
11:33:10	[I]	[remote.raw:027]	
Received Raw: 388, -1010, 391, -1009, 392, -1009, 392, -1005, 396, -1009, 392, -1004, 1051, -393, 1008, -393, 355, -1003, 388, -1013, 388, -1008, 393, -1008, 393, -1008, 393, -1005, 1054, -389, 1007, -393, 355, -1004, 392, -1009, 388, -1010, 395, -1009, 
11:33:10	[I]	[remote.raw:036]	
  1046, -393, 350, -1008, 393, -1004, 392, -1013, 1051, -389, 354, -1003, 1051, -393, 1008, -393, 1003, -393, 355, -1005, 391, -1009, 388, -1009, 397
11:33:10	[I]	[remote.raw:027]	
Received Raw: 393, -1008, 393, -1008, 388, -1010, 396, -1004, 392, -1009, 393, -1005, 1053, -389, 1012, -389, 355, -1003, 393, -1008, 393, -1004, 392, -1013, 393, -1004, 392, -1008, 1051, -393, 1008, -393, 355, -1000, 392, -1008, 393, -1008, 393, -1004, 
11:33:10	[I]	[remote.raw:036]	
  1054, -393, 351, -1004, 392, -1008, 393, -1008, 1051, -389, 354, -1006, 1048, -393, 1008, -393, 1008, -388, 355, -1008, 393, -1005, 392

And this is a completely different brand RF remote:

11:34:40	[I]	[remote.raw:036]	
Received Raw: 307, -398, 577, -407, 582, -403, 587, -402, 582, -403, 582, -706, 330, -659, 326, -364, 578, -705, 331, -663, 326, -663, 327, -659, 325
11:34:40	[I]	[remote.raw:036]	
Received Raw: 330, -369, 578, -402, 582, -402, 587, -403, 582, -408, 581, -705, 327, -663, 326, -369, 573, -705, 336, -655, 325, -673, 321, -658, 327
11:34:40	[I]	[remote.raw:036]	
Received Raw: 326, -362, 575, -403, 582, -408, 581, -407, 582, -412, 578, -705, 326, -664, 326, -364, 578, -701, 330, -660, 330, -659, 325, -671, 323
11:34:40	[I]	[remote.raw:036]	
Received Raw: 326, -374, 573, -404, 585, -404, 581, -402, 582, -407, 578, -710, 326, -663, 327, -360, 581, -710, 327, -663, 326, -664, 326, -654, 330
11:34:40	[I]	[remote.raw:036]	
Received Raw: 331, -356, 586, -403, 581, -407, 583, -402, 582, -404, 581, -714, 332, -658, 326, -365, 577, -701, 321, -673, 321, -660, 330, -660, 329
11:34:40	[I]	[remote.raw:036]	
Received Raw: 330, -360, 572, -417, 577, -412, 582, -404, 581, -402, 582, -706, 331, -658, 326, -370, 568, -709, 332, -659, 330, -658, 327, -659, 330
11:34:40	[I]	[remote.raw:036]	
Received Raw: 331, -359, 578, -411, 573, -408, 581, -407, 583, -407, 572, -720, 331, -649, 331, -361, 571, -715, 336, -658, 331, -654, 331, -658, 326
11:34:40	[I]	[remote.raw:036]	
Received Raw: 335, -360, 573, -416, 578, -411, 582, -398, 573, -421, 573, -710, 341, -649, 335, -654, 335, -658, 331, -647, 338, -650, 334, -658, 332

Now you have nice clean 32-bit pulse-distance signal repeated 5 times.
0000 0011 0000 0011 0000 1000 1011 1000
It doesn’t perfectly match any rc-switch protocol, but that is not important for the use.
It’s not showing header at all, you need to get the repeated signal read at once to see the gap. Replace your 4ms idle parameter with
idle: 30ms

Updated with the 30ms, some random noise in there too

15:06:36	[I]	[remote.raw:027]	
  -360, 317, -862, 355, -871, 359, -868, 922, -354, 313, -866, 918, -365, 875, -360, 871, -355, 317, -859, 358, -870, 355, -867, 355, -4562, 360, -867, 359, -871, 360, -870, 355, -871, 360, -866, 355, -871, 909, -374, 871, -359, 308, -866, 360, -871, 
15:06:36	[I]	[remote.raw:027]	
  355, -868, 358, -871, 355, -871, 355, -870, 900, -383, 862, -375, 311, -866, 360, -866, 360, -871, 355, -870, 923, -357, 311, -866, 350, -876, 360, -875, 918, -360, 313, -866, 923, -350, 876, -350, 880, -350, 308, -866, 355, -876, 360, -872, 358, 
15:06:36	[I]	[remote.raw:027]	
  -4555, 358, -868, 363, -866, 355, -871, 355, -877, 358, -872, 364, -866, 928, -345, 871, -360, 307, -866, 355, -873, 358, -867, 354, -882, 358, -876, 355, -871, 923, -356, 874, -355, 313, -862, 364, -866, 360, -866, 355, -880, 918, -360, 312, -867, 
15:06:36	[I]	[remote.raw:027]	
  359, -867, 355, -870, 923, -351, 312, -866, 933, -340, 862, -378, 862, -369, 317, -862, 359, -871, 355, -871, 350, -4558, 355, -876, 360, -871, 355, -871, 359, -866, 355, -871, 355, -872, 922, -346, 875, -365, 308, -880, 355, -871, 359, -867, 359, 
15:06:36	[I]	[remote.raw:027]	
  -871, 355, -871, 355, -871, 923, -355, 871, -360, 312, -871, 360, -867, 359, -870, 355, -867, 923, -355, 312, -866, 355, -871, 355, -871, 918, -369, 313, -871, 918, -360, 870, -355, 867, -364, 308, -866, 360, -866, 359, -871, 351, -4562, 355, -871, 
15:06:36	[I]	[remote.raw:027]	
  360, -866, 355, -872, 354, -872, 354, -880, 360, -876, 923, -355, 875, -352, 311, -866, 355, -871, 355, -872, 359, -866, 355, -877, 358, -871, 923, -360, 871, -355, 312, -861, 360, -871, 350, -876, 355, -871, 909, -373, 313, -871, 359, -871, 355, 
15:06:36	[I]	[remote.raw:036]	
  -871, 923, -355, 313, -866, 927, -355, 876, -341, 880, -362, 310, -871, 360, -867, 364
15:06:37	[I]	[remote.raw:027]	
Received Raw: -4577, 346, -875, 350, -881, 355, -875, 351, -875, 355, -872, 354, -871, 923, -346, 880, -350, 308, -871, 360, -880, 355, -880, 360, -871, 360, -866, 359, -867, 923, -356, 874, -355, 308, -866, 355, -876, 359, -871, 360, -866, 928, -356, 
15:06:37	[I]	[remote.raw:027]	
  311, -862, 359, -867, 355, -870, 923, -347, 311, -871, 914, -370, 875, -359, 871, -360, 312, -862, 359, -868, 358, -866, 355, -4559, 359, -866, 360, -866, 360, -871, 355, -867, 359, -867, 359, -867, 917, -369, 866, -365, 312, -862, 359, -873, 353, 
15:06:37	[I]	[remote.raw:027]	
  -876, 355, -871, 360, -866, 355, -871, 913, -366, 874, -360, 308, -870, 360, -866, 355, -871, 355, -871, 923, -355, 308, -866, 355, -877, 358, -878, 921, -355, 312, -866, 923, -355, 876, -347, 879, -350, 313, -866, 355, -875, 355, -871, 356, -4554, 
15:06:37	[I]	[remote.raw:027]	
  353, -871, 355, -871, 355, -876, 355, -876, 359, -872, 364, -866, 927, -351, 875, -355, 308, -871, 355, -866, 355, -876, 359, -887, 344, -871, 360, -866, 932, -341, 871, -361, 311, -863, 358, -871, 350, -872, 354, -882, 922, -364, 308, -871, 355, 
15:06:37	[I]	[remote.raw:027]	
  -870, 355, -871, 923, -360, 308, -862, 922, -355, 876, -364, 871, -355, 312, -867, 355, -867, 354, -871, 355, -4554, 359, -875, 360, -871, 360, -866, 355, -871, 359, -868, 363, -862, 937, -340, 857, -379, 307, -871, 360, -867, 359, -872, 359, -866, 
15:06:37	[I]	[remote.raw:027]	
  359, -871, 351, -871, 937, -332, 870, -366, 311, -875, 355, -872, 364, -867, 359, -867, 922, -355, 312, -866, 355, -871, 355, -871, 918, -365, 312, -866, 923, -356, 875, -351, 875, -350, 312, -867, 355, -867, 354, -875, 355, -4568, 355, -867, 359, 
15:06:37	[I]	[remote.raw:027]	
  -871, 355, -871, 355, -870, 355, -881, 360, -867, 922, -356, 879, -346, 312, -866, 355, -871, 355, -871, 355, -871, 350, -880, 355, -881, 918, -355, 876, -355, 307, -871, 360, -871, 359, -867, 355, -871, 908, -374, 308, -871, 355, -871, 359, -867, 
15:06:37	[I]	[remote.raw:036]	
  923, -355, 307, -871, 923, -355, 885, -341, 852, -379, 312, -872, 363, -871, 360
15:06:37	[I]	[remote.raw:036]	
Received Raw: 4423, -437, 7884
15:06:37	[I]	[remote.raw:036]	
Received Raw: 440, -4455, 7709, -16884, 4921, -9014
15:06:37	[I]	[remote.raw:036]	
Received Raw: -16189, 7865, -21868, 26827, -10703
15:06:37	[I]	[remote.raw:036]	
Received Raw: -16733
15:06:37	[I]	[remote.raw:027]	
Received Raw: -12690, 288, -4625, 355, -872, 363, -866, 360, -861, 360, -871, 360, -862, 359, -866, 923, -364, 862, -369, 308, -870, 355, -867, 359, -868, 354, -876, 354, -871, 355, -866, 923, -360, 866, -374, 308, -866, 355, -871, 359, -869, 357, -871, 
15:06:37	[I]	[remote.raw:027]	
  923, -355, 313, -861, 355, -872, 359, -872, 926, -358, 310, -866, 927, -346, 871, -355, 875, -352, 311, -866, 355, -871, 350, -881, 355, -4563, 355, -866, 359, -871, 355, -863, 358, -876, 360, -875, 355, -871, 919, -355, 866, -359, 313, -866, 355, 
15:06:37	[I]	[remote.raw:027]	
  -871, 350, -876, 350, -880, 355, -881, 355, -871, 923, -355, 871, -356, 316, -862, 359, -867, 359, -866, 355, -875, 919, -364, 308, -871, 355, -872, 363, -861, 923, -352, 316, -866, 918, -346, 880, -360, 866, -374, 308, -866, 359, -868, 358, -867, 
15:06:37	[I]	[remote.raw:027]	
  355, -4553, 355, -875, 355, -873, 358, -871, 355, -866, 360, -871, 359, -867, 923, -350, 871, -355, 312, -876, 355, -875, 360, -870, 356, -867, 359, -875, 355, -867, 923, -355, 871, -354, 313, -871, 360, -870, 360, -866, 360, -866, 923, -350, 318, 
15:06:37	[I]	[remote.raw:027]	
  -861, 360, -867, 359, -867, 917, -370, 312, -866, 927, -355, 868, -358, 876, -350, 317, -862, 355, -872, 358, -867, 350, -4564, 358, -866, 360, -866, 360, -866, 355, -871, 355, -876, 359, -876, 923, -355, 876, -355, 307, -871, 360, -866, 360, -866, 
15:06:37	[I]	[remote.raw:027]	
  360, -866, 360, -870, 355, -877, 922, -360, 866, -360, 307, -867, 355, -870, 360, -866, 355, -871, 918, -365, 312, -871, 360, -871, 360, -867, 926, -351, 312, -866, 923, -353, 873, -355, 866, -356, 316, -871, 360, -871, 360, -866, 359, -4544, 351, 
15:06:37	[I]	[remote.raw:027]	
  -872, 353, -882, 359, -875, 360, -866, 360, -871, 359, -867, 923, -354, 871, -355, 308, -866, 355, -876, 360, -870, 360, -868, 358, -871, 355, -867, 927, -350, 876, -350, 312, -867, 355, -875, 355, -880, 360, -868, 921, -360, 312, -863, 359, -867, 
15:06:37	[I]	[remote.raw:036]	
  359, -866, 932, -346, 307, -872, 922, -369, 867, -356, 874, -360, 312, -857, 355, -871, 360
15:06:37	[I]	[remote.raw:036]	
Received Raw: 4870, -12335, 482, -14518, 8244, -15705, 4950, -5000, 12981, -565, 1111, -437, 1158
15:06:37	[I]	[remote.raw:036]	
Received Raw: 18461, -17396, 3705, -6911, 7568, -1900, 7580, -18825, 4524, -16870
15:06:37	[I]	[remote.raw:036]	
Received Raw: -5057, 334, -5146, 11317, -5580
15:06:38	[I]	[remote.raw:027]	
Received Raw: -10092, 14033, -13636, 284, -4634, 355, -871, 355, -870, 360, -862, 359, -876, 355, -871, 364, -863, 922, -355, 871, -356, 311, -863, 358, -871, 355, -866, 355, -877, 359, -875, 360, -872, 917, -360, 871, -355, 312, -866, 355, -866, 365, 
15:06:38	[I]	[remote.raw:027]	
  -862, 359, -876, 918, -364, 313, -861, 360, -871, 359, -862, 923, -355, 312, -864, 925, -346, 876, -359, 862, -374, 312, -863, 363, -867, 354, -871, 360, -4546, 357, -876, 360, -866, 359, -871, 360, -866, 355, -871, 355, -871, 923, -350, 871, -352, 
15:06:38	[I]	[remote.raw:027]	
  316, -875, 355, -877, 358, -871, 360, -866, 360, -866, 360, -866, 923, -355, 876, -345, 313, -875, 360, -871, 360, -867, 358, -871, 919, -356, 311, -866, 355, -871, 355, -871, 904, -379, 307, -876, 923, -360, 870, -355, 871, -355, 313, -861, 365, 
15:06:38	[I]	[remote.raw:027]	
  -861, 360, -867, 354, -4563, 359, -867, 355, -870, 360, -866, 355, -868, 353, -881, 355, -875, 923, -360, 871, -355, 312, -862, 360, -870, 355, -871, 355, -867, 359, -872, 359, -872, 922, -364, 871, -352, 315, -862, 360, -866, 355, -872, 354, -866, 
15:06:38	[I]	[remote.raw:027]	
  918, -365, 307, -876, 360, -870, 360, -866, 928, -355, 308, -866, 923, -351, 875, -355, 871, -355, 312, -876, 355, -870, 355, -871, 355, -4549, 350, -871, 355, -880, 355, -876, 360, -872, 358, -867, 359, -868, 926, -350, 876, -355, 312, -862, 355, 
15:06:38	[I]	[remote.raw:027]	
  -880, 355, -872, 354, -876, 359, -867, 355, -871, 922, -351, 875, -351, 307, -868, 358, -876, 355, -880, 355, -872, 922, -356, 316, -862, 355, -872, 358, -871, 928, -341, 312, -872, 922, -364, 871, -356, 875, -355, 312, -862, 359, -868, 358, -866, 
15:06:38	[I]	[remote.raw:027]	
  355, -4560, 358, -871, 360, -866, 360, -867, 359, -868, 362, -866, 351, -875, 918, -365, 876, -355, 312, -863, 358, -866, 355, -876, 360, -866, 359, -867, 355, -871, 913, -374, 871, -360, 312, -866, 355, -871, 360, -866, 355, -871, 923, -350, 317, 
15:06:38	[I]	[remote.raw:036]	
  -862, 355, -880, 355, -876, 918, -359, 308, -866, 923, -360, 876, -350, 866, -355, 312, -862, 355, -885, 355
15:06:38	[I]	[remote.raw:036]	
Received Raw: -18720
15:06:39	[I]	[remote.raw:036]	

So it’s 4550us. Together with 350us high it makes the header.
Try to replicate it simply with raw send:

- remote_transmitter.transmit_raw:
    code: [350, -4550, 351, -875, 355, -872, 354, -876, 355, -872, 354, -875, 355, -876, 923, -350, 876, -355, 312, -874, 357, -871, 355, -875, 355, -871, 355, -876, 355, -871, 928, -350, 875, -355, 313, -868, 358, -872, 358, -871, 355, -871, 923, -360, 307, -867, 359, -876, 355, -871, 923, -355, 312, -871, 918, -360, 871, -360, 871, -355, 312, -866, 360, -871, 355, -871]
    repeat:
      times: 5
      wait_time: 0s

Holy moly your’re a whizz, that worked a treat! Thankyou!!

Could you highlight how your worked that out so I can replicate with the rest of the buttons and other remotes.

If you have a lot of buttons, you might want to decode the signal.
Since your 0-pulse has pretty constant 1230us length, we could try to make custom protocol around it.
Try if one of these works:

      - remote_transmitter.transmit_rc_switch_raw:
          code: "00000011000000110000100010111000"
          protocol:
            pulse_length: 308 #1230 / 4
            sync: [1, 15]
            zero: [1, 3]
            one: [3, 1]
            inverted: false
          repeat:
            times: 5
            wait_time: 0s

or

      - remote_transmitter.transmit_rc_switch_raw:
          code: "00000011000000110000100010111000"
          protocol:
            pulse_length: 410 # 1230 / 3
            sync: [1, 11]
            zero: [1, 2]
            one: [2, 1]
            inverted: false
          repeat:
            times: 5
            wait_time: 0s

edit:
this could be even better:

          protocol:
            pulse_length: 82
            sync: [4, 56]
            zero: [4, 11] 
            one: [11, 4]
            inverted: false