Sonoff RF Bridge Esphome

Hi Everyone,

I am trying to control an RF fan with my sonoff rf bridge (Version 3 I think)

I can see the following codes

Blockquote
[08:46:02][I][rf_bridge:057]: Received RFBridge Code: sync=0x276A low=0x027E high=0x070C code=0x72FBFC
[08:46:03][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CBC low=0x0272 high=0x072A code=0x72FBFF
[08:46:06][I][rf_bridge:057]: Received RFBridge Code: sync=0x2790 low=0x026C high=0x0720 code=0x72FBFC
[08:46:07][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CB6 low=0x026C high=0x0736 code=0x72FBFF

Blockquote

I am unable to control the fan. I have attempted to call the ESPHome: rfbridge_send_rf_code service passing the same values I get above (Converted to decimal) but the device does not respond.

Does anyone have any recommendations?

So I would expect the sync, low, high to be more or less the same for the same remote, with the code changing to one of the 4 codes. To get these first 3 numbers you should push each button like 15 or 20 times and get a good average, then test with that until it works.

Thanks for your response. I dont clearly understand what you mean by getting a good average. The sync doesnt appear to repeat, the low and high appear to have a few duplicates, the code has some more duplicates.

Maybe its not possible with this device?

See updated example data:

Blockquote

[13:18:58][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CAE low=0x026A high=0x073C code=0x72FBFF
[13:18:59][I][rf_bridge:057]: Received RFBridge Code: sync=0x2772 low=0x027C high=0x0712 code=0x72FBFC
[13:19:00][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C82 low=0x027A high=0x0728 code=0x72F3FF
[13:19:01][I][rf_bridge:057]: Received RFBridge Code: sync=0x27A8 low=0x0280 high=0x070E code=0x72FBFC
[13:19:02][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C96 low=0x0278 high=0x072C code=0x72FBFF
[13:19:03][I][rf_bridge:057]: Received RFBridge Code: sync=0x276E low=0x0274 high=0x071E code=0x72FBFC
[13:19:04][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C9C low=0x0288 high=0x0718 code=0x72FBFF
[13:19:05][I][rf_bridge:057]: Received RFBridge Code: sync=0x27C4 low=0x0284 high=0x070C code=0x72FBFC
[13:19:06][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CA6 low=0x0284 high=0x0722 code=0x72FBFF
[13:19:07][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C42 low=0x029A high=0x06F2 code=0x72EBDC
[13:19:08][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C6A low=0x027C high=0x0724 code=0x72FBFF
[13:19:09][I][rf_bridge:057]: Received RFBridge Code: sync=0x26E8 low=0x0282 high=0x0708 code=0x72FAFC
[13:19:10][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C14 low=0x0286 high=0x071A code=0x72FBFF
[13:19:11][I][rf_bridge:057]: Received RFBridge Code: sync=0x279A low=0x0282 high=0x0708 code=0x72FBFC
[13:19:12][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C52 low=0x0298 high=0x0706 code=0x72F9FF
[13:19:13][I][rf_bridge:057]: Received RFBridge Code: sync=0x2738 low=0x0276 high=0x0718 code=0x72FBF8
[13:19:14][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C90 low=0x0284 high=0x071A code=0x72FB7F
[13:19:15][I][rf_bridge:057]: Received RFBridge Code: sync=0x2756 low=0x026C high=0x0720 code=0x72FBFC
[13:19:16][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C90 low=0x027A high=0x0722 code=0x72FBFF
[13:19:17][I][rf_bridge:057]: Received RFBridge Code: sync=0x27B2 low=0x027E high=0x070E code=0x72FBFC
[13:19:18][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C42 low=0x0286 high=0x0716 code=0x72FB7F
[13:19:18][I][rf_bridge:057]: Received RFBridge Code: sync=0x2768 low=0x028E high=0x06F8 code=0x727BFC
[13:19:19][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C64 low=0x0290 high=0x0714 code=0x72FBFF
[13:19:20][I][rf_bridge:057]: Received RFBridge Code: sync=0x27A4 low=0x026E high=0x071C code=0x72FBFC
[13:19:21][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C98 low=0x028C high=0x0716 code=0x72F3FF
[13:19:22][I][rf_bridge:057]: Received RFBridge Code: sync=0x2B5C low=0x0272 high=0x0718 code=0x72FBFC
[13:19:23][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C1C low=0x02A6 high=0x06F6 code=0x727BFF
[13:19:24][I][rf_bridge:057]: Received RFBridge Code: sync=0x2792 low=0x028E high=0x0702 code=0x32FBBC
[13:19:25][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CE4 low=0x0270 high=0x0732 code=0x72EBFF
[13:19:26][I][rf_bridge:057]: Received RFBridge Code: sync=0x2776 low=0x0278 high=0x0712 code=0x62FBFC
[13:19:27][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C22 low=0x0284 high=0x071C code=0x72BBFE
[13:19:28][I][rf_bridge:057]: Received RFBridge Code: sync=0x2784 low=0x0276 high=0x0718 code=0x727BFC
[13:19:29][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C34 low=0x026E high=0x0734 code=0x72FBFB
[13:19:30][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CCA low=0x0274 high=0x071A code=0x72EBFC
[13:19:31][I][rf_bridge:057]: Received RFBridge Code: sync=0x2CBC low=0x029E high=0x0702 code=0x727BFF
[13:19:32][I][rf_bridge:057]: Received RFBridge Code: sync=0x27A0 low=0x0272 high=0x071C code=0x62FBEC
[13:19:33][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C8A low=0x027E high=0x0720 code=0x72FBFF
[13:19:34][I][rf_bridge:057]: Received RFBridge Code: sync=0x2754 low=0x0276 high=0x071A code=0x72FB7C
[13:19:35][I][rf_bridge:057]: Received RFBridge Code: sync=0x2C8A low=0x028A high=0x0712 code=0x72FBFE

Blockquote

Just take that data and get a good average or mean of the sync, low, high. That should give you numbers that work. If some are way out, toss that. Should be able to do it by eye.

Personally when I did this I would press one of the buttons about a dozen times, as I thought each button might have different numbers, but now I don’t think that is the case.The radio is the radio, and the code is the only thing that is sent differently I believe.

Then to send the code manually, You can look at my HA config…
Home-Assistant-Config/mqtt/switch/MQTT_switch_RF433.yaml at 3d96aca7033bd462c99f21bcf2f357d3a20c5971 · SirGoodenough/Home-Assistant-Config · GitHub.

I have converted each of the hex codes above to decimal and then taken the average.

My bridge is using esphome so I am testing via the homeassitant interface.

I havent had any success so far