Sonoff RF Bridge - Migration v1.0 to R2 v2.2

Recently my old v1.0 + Portisch bridge has decided to die after years of good service :cry:. So now I have acquired a new R2 v2.2 and applied the Direct Hack + esphome but I have not been able to trigger my windows shades.

The RF signal from by remotes does not seem to be supported as it does not detect any code with any of the modes (rf_bridge.[learn|start_advanced_sniffing|start_bucket_sniffing]). I have also tried with remote_receiver dump = rc_switch and I can see the events but when I try to replay them they don’t work.

I suppose that because the R2 version does not support Portisch I need to use the mode (remote_receiver dump = raw). Can someone please confirm this?

I have also tried capturing the raw events but when I try to replay them (remote_transmitter.transmit_raw) these also don’t work.

Could someone please help me understand what needs to be done to correctly re-produce the captured events in raw mode.

Below are the old working codes I was using with v1 and the newly captured v2 codes.
Let’s hope that someone with the necessary RF expertise can shine some light on this topic. @mateine

v1.0 + Tasmota + Portisch Original 1 DOWN event + the B1 event converted to B0 with https://bbconv.hrbl.pl/

14:59:52 RSL: RESULT = {"Time":"2020-04-11T14:59:52","RfRaw":{"Data":"AA B1 05 0640 0280 01A4 0118 12CA C092B1B1B1B192B1B1B1B1B1B1B19292B1B192B1A192B1B192B19292B1A1A1A192B1B19292B1A19292 55"}}
Filtered 0xB1 data: AAB1050640028001A4011812CAC092B1B1B1B192B1B1B1B1B1B1B19292B1B192B1A192B1B192B19292B1A1A1A192B1B19292B1A1929255
Resulting 0xB0 data: AA B0 35 05 08 0640 0280 01A4 0118 12CA C092B1B1B1B192B1B1B1B1B1B1B19292B1B192B1A192B1B192B19292B1A1A1A192B1B19292B1A19292 55
Backlog RfRaw AAB03505080640028001A4011812CAC092B1B1B1B192B1B1B1B1B1B1B19292B1B192B1A192B1B192B19292B1A1A1A192B1B19292B1A1929255; 0 RfRaw

R2 v2.2 + esphome + Direct hack New 2 DOWN events captured in raw mode + Oscilloscope

[15:40:39][I][remote.raw:028]: Received Raw: -395, 321, -738, 331, -739, 329, -743, 325, -744, 684, -391, 324, -748, 319, -748, 332, -739, 329, -749, 329, -739, 331, -741, 326, -742, 684, -389, 683, -388, 325, -746, 329, -742, 686, -392, 322, -743, 328, -741, 687, -387, 325, -744,
[15:40:39][I][remote.raw:041]:   326, -739, 688, -405, 316, -746, 687, -400, 678, -382, 324, -740, 332, -740, 329, -738, 333, -737, 686, -398, 323, -741, 329, -746, 681, -390, 679, -393, 324, -741, 329, -742, 685, -390, 681, -414
[15:40:39][I][remote.raw:028]: Received Raw: -1538, 686, -387, 327, -739, 332, -737, 331, -741, 341, -732, 682, -390, 323, -741, 330, -748, 327, -743, 327, -748, 345, -726, 330, -740, 330, -740, 684, -392, 678, -392, 323, -746, 329, -747, 688, -382, 326, -740, 329, -741, 685, -391,
[15:40:39][I][remote.raw:041]:   324, -741, 327, -740, 686, -398, 323, -747, 685, -393, 678, -391, 323, -746, 329, -738, 329, -741, 329, -738, 689, -401, 320, -743, 326, -742, 684, -391, 673, -406, 325, -733, 329, -738, 688, -391, 679
[15:40:39][I][remote.raw:041]: Received Raw:
[15:40:39][I][remote.raw:028]: Received Raw: -1537, 688, -392, 310, -760, 334, -740, 327, -737, 333, -740, 685, -395, 320, -741, 329, -749, 322, -743, 329, -741, 329, -738, 330, -743, 330, -765, 675, -379, 679, -396, 318, -743, 333, -738, 686, -399, 322, -745, 327, -741, 691, -393,
[15:40:39][I][remote.raw:041]:   320, -735, 329, -741, 686, -397, 324, -741, 686, -387, 681, -391, 324, -750, 320, -742, 327, -739, 331, -742, 685, -398, 324, -741, 336, -738, 688, -390, 679, -396, 322, -739, 327, -743, 685, -403, 676, -400
[15:40:39][I][remote.raw:028]: Received Raw: -1535, 690, -389, 327, -737, 333, -744, 328, -742, 332, -740, 685, -396, 320, -738, 330, -745, 330, -739, 330, -744, 326, -744, 328, -744, 337, -731, 518, -560, 677, -394, 322, -744, 329, -739, 687, -397, 325, -737, 331, -742, 696, -380,
[15:40:39][I][remote.raw:041]:   323, -742, 330, -741, 690, -389, 326, -739, 687, -394, 677, -393, 321, -739, 330, -740, 331, -742, 326, -750, 683, -394, 302, -760, 337, -740, 686, -391, 680, -389, 325, -742, 329, -740, 683, -391, 685, -427
[15:40:39][I][remote.raw:028]: Received Raw: -1534, 689, -390, 325, -739, 333, -752, 327, -742, 326, -767, 667, -381, 324, -739, 332, -742, 330, -741, 330, -738, 332, -738, 330, -741, 331, -738, 686, -396, 677, -389, 326, -745, 332, -742, 684, -392, 327, -744, 326, -738, 688, -390,
[15:40:39][I][remote.raw:041]:   325, -746, 335, -731, 685, -395, 326, -739, 687, -390, 681, -389, 324, -739, 331, -742, 328, -737, 332, -739, 687, -397, 326, -739, 337, -739, 688, -389, 682, -391, 680, -391, 678, -392, 322, -742, 329
[15:40:39][I][remote.raw:041]: Received Raw:
[15:40:39][I][remote.raw:028]: Received Raw: -1541, 685, -390, 326, -742, 330, -736, 330, -737, 333, -739, 687, -391, 323, -747, 350, -719, 286, -789, 326, -737, 332, -747, 329, -739, 336, -735, 687, -390, 680, -391, 327, -743, 327, -744, 684, -389, 327, -736, 334, -738, 687, -393,
[15:40:39][I][remote.raw:041]:   321, -738, 331, -742, 684, -395, 326, -749, 687, -385, 685, -389, 325, -738, 333, -737, 332, -740, 330, -738, 687, -394, 326, -736, 333, -741, 686, -392, 678, -394, 679, -392, 678, -392, 323, -741, 329
[15:40:39][I][remote.raw:028]: Received Raw: 527, -311, 3912, -1546, 688, -379, 326, -742, 330, -738, 333, -739, 337, -742, 684, -393, 320, -740, 330, -744, 331, -743, 329, -745, 335, -728, 333, -738, 303, -768, 686, -389, 682, -388, 326, -746, 328, -740, 686, -388, 326, -743, 326,
[15:40:39][I][remote.raw:041]:   -746, 689, -389, 326, -738, 332, -740, 685, -398, 324, -736, 688, -393, 679, -390, 325, -740, 332, -744, 338, -725, 332, -741, 685, -394, 327, -737, 332, -736, 695, -392, 679, -393, 678, -389, 683, -388, 325, -739, 333

[15:40:57][I][remote.raw:028]: Received Raw: 503, -567, 325, -741, 327, -744, 328, -742, 326, -747, 679, -393, 322, -742, 329, -750, 326, -739, 329, -772, 329, -718, 328, -740, 328, -744, 438, -637, 687, -386, 323, -746, 327, -744, 684, -392, 322, -740, 329, -742, 685, -390, 323,
[15:40:57][I][remote.raw:041]:   -743, 327, -746, 682, -397, 322, -753, 682, -390, 681, -392, 321, -742, 328, -744, 327, -747, 320, -743, 686, -397, 322, -751, 331, -730, 686, -390, 681, -390, 323, -742, 332, -743, 681, -390, 679, -414
[15:40:57][I][remote.raw:028]: Received Raw: -1549, 677, -391, 323, -739, 331, -740, 328, -746, 324, -745, 670, -412, 324, -734, 329, -744, 329, -739, 332, -754, 323, -739, 337, -738, 325, -742, 686, -388, 604, -465, 323, -750, 328, -740, 686, -392, 330, -734, 328, -768, 676, -375,
[15:40:57][I][remote.raw:041]:   322, -741, 327, -745, 684, -401, 313, -758, 685, -389, 679, -388, 326, -741, 329, -743, 326, -740, 329, -744, 683, -395, 324, -745, 325, -743, 685, -391, 680, -390, 326, -738, 332, -743, 683, -389, 680
[15:40:57][I][remote.raw:041]: Received Raw:
[15:40:57][I][remote.raw:028]: Received Raw: -1537, 690, -391, 321, -743, 327, -748, 329, -742, 327, -746, 296, -291, 809, -750, 321, -744, 330, -747, 333, -732, 328, -741, 329, -740, 331, -752, 675, -390, 685, -390, 318, -748, 327, -741, 685, -398, 324, -741, 329, -743, 685, -389,
[15:40:57][I][remote.raw:041]:   325, -739, 330, -743, 263, -277, 863, -740, 687, -393, 678, -391, 325, -746, 332, -731, 329, -742, 329, -740, 687, -399, 321, -742, 334, -739, 312, -293, 1153, -394, 319, -739, 330, -744, 685, -392, 679, -406
[15:40:57][I][remote.raw:028]: Received Raw: -1539, 689, -400, 337, -716, 330, -747, 330, -738, 337, -733, 363, -735, 304, -738, 331, -743, 330, -744, 328, -739, 327, -747, 326, -738, 331, -743, 685, -389, 670, -425, 305, -741, 329, -741, 686, -396, 326, -747, 333, -734, 683, -391,
[15:40:57][I][remote.raw:041]:   322, -742, 329, -746, 680, -395, 324, -740, 686, -394, 677, -394, 320, -744, 328, -738, 327, -745, 330, -741, 687, -396, 323, -743, 334, -740, 684, -396, 675, -390, 324, -743, 329, -749, 696, -372, 680, -428
[15:40:57][I][remote.raw:028]: Received Raw: -1537, 688, -389, 324, -741, 329, -749, 329, -741, 332, -741, 683, -390, 324, -740, 330, -744, 329, -740, 330, -743, 330, -748, 333, -729, 330, -740, 686, -390, 680, -391, 323, -749, 328, -741, 683, -396, 326, -739, 330, -739, 687, -393,
[15:40:57][I][remote.raw:041]:   324, -742, 326, -743, 682, -399, 325, -749, 522, -543, 681, -390, 324, -740, 336, -737, 336, -734, 328, -739, 687, -398, 323, -740, 336, -742, 266, -272, 1217, -391, 680, -407, 664, -394, 252, -809, 329
[15:40:57][I][remote.raw:041]: Received Raw:
[15:40:57][I][remote.raw:028]: Received Raw: -1540, 690, -384, 326, -738, 330, -740, 330, -744, 307, -760, 686, -394, 323, -739, 329, -747, 328, -740, 329, -760, 317, -740, 330, -742, 329, -738, 688, -400, 684, -384, 318, -748, 326, -740, 687, -391, 323, -740, 329, -742, 684, -390,
[15:40:57][I][remote.raw:041]:   326, -737, 330, -744, 687, -393, 326, -739, 687, -392, 685, -389, 326, -742, 327, -740, 330, -742, 329, -738, 687, -398, 323, -748, 336, -728, 685, -391, 680, -392, 679, -392, 679, -389, 324, -746, 324
[15:40:57][I][remote.raw:041]: Received Raw:
[15:40:57][I][remote.raw:028]: Received Raw: -1547, 686, -389, 325, -738, 330, -741, 331, -739, 336, -740, 687, -388, 324, -744, 327, -746, 339, -733, 329, -738, 331, -741, 330, -739, 331, -743, 683, -391, 678, -392, 323, -747, 329, -745, 691, -384, 323, -738, 281, -796, 686, -391,
[15:40:57][I][remote.raw:041]:   323, -742, 326, -743, 684, -397, 324, -740, 686, -393, 679, -391, 323, -749, 362, -700, 330, -738, 332, -737, 688, -395, 325, -739, 331, -744, 689, -394, 678, -400, 683, -381, 678, -390, 324, -740, 329

Thanks in advance for any kind of help