AC128 remote control to esphome

Hello! I have an AC 128 remote control, I need to catch a signal from it and send it via ESP, using a sniffer I get the following data. Sending them in raf format does not give any result. Maybe someone knows where to dig?
Recieved RAW Code:

[I][remote.raw:028]: Received Raw: 301, -5946, 254, -617, 5050, -625, 572, -297, 257, -4170, 481, -354, 529, -334, 524, -1190, 534, -2090, 258, -624, 572, -277, 269, -2388, 257, -3313, 521, -2087, 547, -321, 530, -303, 258, -623, 545, -322, 251, -627, 543, -1189, 256, -638, 
[I][remote.raw:028]:   254, -619, 272, -606, 285, -3286, 523, -4740, 259, -2406, 255, -619, 571, -271, 283, -624, 250, -624, 250, -1544, 522, -346, 503, -1227, 522, -1234, 508, -2096, 529, -1201, 578, -5089, 1910, -926, 650, -577, 551, -1071, 519, -1241, 527, -1185, 330, 
[I][remote.raw:028]:   -1446, 549, -297, 557, -307, 553, -284, 258, -633, 523, -3017, 508, -2082, 252, -3286, 256, -626, 561, -2112, 496, -352, 546, -1207, 496, -1195, 558, -3847, 254, -2391, 258, -622, 535, -7398, 251, -637, 556, -1176, 278, -616, 269, -1530, 508, -357, 
[I][remote.raw:028]:   473, -1262, 506, -1235, 498, -1210, 253, -644, 524, -1202, 593, -5073, 4835, -859, 530, -1208, 549, -297, 258, -2433, 483, -358, 522, -349, 498, -1227, 519, -1202, 257, -1525, 533, -305, 258, -2408, 251, -3316, 505, -2091, 531, -333, 525, -1222, 531, 
[I][remote.raw:041]:   -1188, 547, -296, 253, -1519, 251, -5060, 555, -2962, 250, -630, 258, -617, 271, -631
[W][component:237]: Component remote_receiver took a long time for an operation (84 ms).
[W][component:238]: Components should block for at most 30 ms.
[I][remote.raw:028]: Received Raw: 283, -610, 278, -613, 260, -5046, 5035, -670, 529, -309, 251, -623, 1119, -2432, 501, -331, 519, -347, 500, -1228, 521, -2989, 532, -303, 259, -622, 271, -633, 258, -625, 250, -622, 250, -2417, 533, -2138, 485, -330, 535, -308, 250, -650, 
[I][remote.raw:028]:   527, -1205, 546, -2053, 273, -5057, 531, -1206, 251, -635, 259, -2405, 251, -621, 250, -3309, 521, -2090, 547, -2962, 259, -621, 569, -272, 576, -301, 260, -1497, 557, -328, 495, -380, 520, -5100, 5059, -618, 567, -1186, 279, -3234, 519, -356, 524, 
[I][remote.raw:028]:   -321, 529, -1202, 547, -1185, 253, -1503, 584, -6493, 533, -2070, 559, -306, 543, -294, 268, -632, 557, -1170, 573, -296, 258, -6829, 528, -3854, 258, -5076, 522, -2082, 546, -2964, 259, -624, 573, -282, 550, -2097, 501, -348, 533, -332, 534, -5118, 
[I][remote.raw:028]:   5029, -628, 551, -1230, 497, -2990, 533, -331, 528, -308, 547, -302, 269, -635, 557, -284, 254, -644, 250, -616, 268, -618, 571, -297, 257, -5946, 528, -2080, 556, -302, 560, -1180, 551, -298, 258, -621, 568, -1185, 269, -596, 274, -611, 259, -3302, 
[I][remote.raw:041]:   274, -624, 529, -308, 251, -3298, 257, -625, 250, -623, 251, -637, 259, -623, 271, -607, 283, -625, 548, -309

Doesn’t look like valid signal. How is your “sniffer” set up?

spi:
  clk_pin: GPIO18
  miso_pin: GPIO19
  mosi_pin: GPIO23

cc1101:
  id: receiver
  cs_pin: GPIO5
  bandswitch: 200
  frequency: 433925

remote_receiver:
  pin: GPIO22
  dump: all
  # Settings to optimize recognition of RF devices
  tolerance: 50%
  filter: 250us
  idle: 7ms
  buffer_size: 10kb

Code like this, but RAW. When i press buttons i receive code.

Doesn’t ring a bell.
Some custom component or ChatGPT hallusination?

Its CC1101 module, to receive and trancieve rf signals (antenna), this is configuration to change it via cs_pin to recieve state and other settings for frequency :slight_smile:

(https://deploy-preview-3897--esphome.netlify.app/components/cc1101.html)

I’m not familiar with deploy-previews, so can’t really much help here.
Anyway, the signal doesn’t look valid to me, did you try with some other remotes?

Yep, before this i catch code from other remote and repeat code via esphome, it work. But i cant understand this code. I think this code inverted. I receive new code, and invert it, now code like this

4380, -553, 10826, -496, 6866, -5078, 635, -529, 1197, -546, 1199, -251, 2415, -320, 523, -575, 4669, -530, 2064, 
    -257, 1524, -251, 5020, -534, 334, -533, 1197, -531, 1206, -545, 1181, -270, 629, -252, 611, -284, 4174, -529, 3856, -256, 
    624, -250, 1504, -281, 618, -271, 610, -557, 4725, -505, 1206, -549, 1227, -497, 1199, -259, 622, -569, 296, -251, 625, -585, 
    5076, -4678, 6281, -530, 333, -524, 447, -398, 1253, -499, 305, -251, 634, -257, 1525, -553, 277, -283, 5953, -507, 2091, 
    -557, 307, -534, 1212, -552, 277, -257, 644, -536, 7425, -504, 2085, -258, 622, -274, 628, -251, 4227, -351, 2204, -255, 
    1539, -526, 326, -532, 1201, -549, 299, -256, 623, -573, 3832, -532, 16023, -559, 358, -503, 308, -548, 4711, -523, 4735, -257

Inverted or not, it looks too messy. So many different timings.

Maybe i need change settings recognition of signal, like filter and tolerance? idle? thanks for help, i think im right way.

Doesn’t really help with RAW.

By the way, what is that deploy-preview thing?

i am have esp32 with esphome firmware, but I do not have a radio signal module. I use cc1101 to send or receive signals on different frequencies. ESPHome does not support this component out of the box, I use what I found on the Internet (this pre deploy) and this fork fine.

New received code with other settings

[I][remote.raw:028]: Received Raw: 301, -592, 292, -604, 265, -610, 290, -608, 264, -623, 263, -606, 265, -618, 287, -612, 5056, -624, 568, -279, 265, -619, 565, -282, 265, -622, 268, -613, 293, -596, 572, -288, 560, -283, 585, -267, 289, -600, 570, -291, 273, -611, 264, 
[I][remote.raw:028]:   -622, 265, -620, 565, -292, 259, -623, 266, -621, 267, -611, 292, -598, 266, -623, 267, -610, 291, -596, 572, -291, 265, -624, 269, -614, 570, -279, 572, -291, 263, -598, 593, -267, 289, -602, 571, -291, 249, -631, 264, -623, 267, -620, 267, -611, 265, 
[I][remote.raw:028]:   -624, 266, -620, 267, -610, 266, -622, 573, -292, 263, -599, 270, -616, 293, -601, 289, -601, 271, -619, 270, -599, 289, -603, 272, -619, 270, -598, 274, -617, 285, -610, 267, -620, 564, -292, 258, -623, 572, -290, 574, -268, 273, -625, 262, -623, 264, 
[I][remote.raw:028]:   -607, 592, -266, 561, -301, 266, -620, 566, -269, 279, -622, 610, -5053, 5074, -621, 554, -293, 264, -609, 588, -271, 276, -609, 264, -636, 253, -615, 588, -289, 550, -293, 569, -276, 267, -622, 570, -283, 264, -622, 268, -613, 290, -608, 562, -276, 
[I][remote.raw:028]:   267, -622, 265, -634, 244, -631, 264, -631, 242, -645, 262, -622, 268, -621, 565, -271, 276, -623, 268, -621, 565, -270, 578, -272, 293, -597, 591, -271, 274, -598, 589, -289, 264, -623, 245, -616, 293, -596, 291, -595, 268, -613, 292, -603, 262, -626, 
[I][remote.raw:028]:   271, -618, 569, -279, 267, -646, 244, -616, 263, -623, 268, -620, 264, -610, 265, -622, 266, -621, 268, -611, 292, -603, 263, -625, 244, -642, 268, -651, 542, -263, 276, -611, 567, -300, 562, -290, 263, -623, 246, -638, 268, -623, 562, -277, 568, -292, 
[I][remote.raw:028]:   267, -626, 567, -278, 265, -614, 614, -5055, 5072, -617, 572, -269, 288, -599, 570, -293, 273, -623, 262, -610, 265, -620, 566, -292, 585, -278, 596, -268, 265, -598, 567, -292, 285, -597, 284, -608, 270, -615, 565, -283, 263, -611, 275, -613, 289, 
[I][remote.raw:028]:   -608, 268, -611, 290, -608, 265, -622, 262, -610, 571, -291, 248, -632, 264, -624, 572, -289, 574, -266, 273, -624, 564, -272, 293, -596, 591, -295, 233, -623, 267, -625, 316, -567, 281, -607, 264, -616, 283, -598, 290, -608, 244, -632, 565, -299, 268, 
[I][remote.raw:041]:   -622, 243, -706, 181, -632, 267, -620, 267, -610, 265, -623, 266, -622, 267, -611, 290, -597, 262, -613, 274, -621

That could be valid code…
What settings you changed??

tolerance: 25%
  filter: 100us

Now i think what to do next. I counted the gaps that are specified in the code, it turns out 65 bits if I’m right. Or the signal is inverted (or not).

Those didn’t make the difference. Tolerance is not considered with RAW and filtering out pulses <100us instead of 250 wouldn’t change the output like that.

The signal on your first post was completely corrupted for some other reason.

Quickly looks like there is some meaningless wake-up pulses and then signal that is repeated 3 times (or maybe more, but capped by receiver code).

Try to decode it with dump: all, maybe you get something…

Just out of curiosity why did you choose this disaplay that can only be used for curtain/blinds that are on 433mhz and the programming options seem pretty limited.

Why not just a lcd touchscreen where you can design the UI any way you like and you can control those rf devices + everything else you have in HA.

Hi to all. Today i finish my research. To send code 65 bit or more, just use rawsend. This settings can help you if you try send sniffed rawdata from this remote:

remote_transmitter:
  pin: GPIO22
  carrier_duty_percent: 100%
  on_transmit:
    then:
      - cc1101.begin_tx
  on_complete:
    then:
      - cc1101.end_tx

and:

on_press:
      - remote_transmitter.transmit_raw:
code: [..........]
repeat: x times