What's currently the best solution for sending and receiving 433?

I’ve looked through countless topics but haven’t gotten a good understanding of what the best solution for sending and receiving various 433 devices in HA.

I want to add a Dooya remote that goes to a awning motor. Don’t know the specific brand of the motor but that shouldn’t be an issue as the remote is a Dooya i suppose.

From what I’ve read so far the Sonoff Bridge hack and the LILYGO rtl_433 is the best solution but not totally certain.

What’s the best way to go forward in your opinion?

Thanks!

is receive only

i do have a sonoff 433 hub and that one was not able to do anything with my Louvolite window blinds.

Then i got a RFXcom hub (yeah, quiet expensive…) and got it running in no time.

So my math was done :wink:

Oh damn, missed that…

I’m going with the Sonoff RF bridge for now. I’m planning on using ESPhome but not sure how to flash it. All the tutorials and examples I’ve seen are with bridges that already have been flashed with Tasmota before. So do I need to flash to Tasmota and then ESPhome or what’s the deal?

They have to be flashed serially, so you can skip the Tasmota part and immediately flash ESPHome.

Thank you!

OK so I’ve managed to get the RF bridge in to ESPHome after trying a lot of different ways, more on that later.

I have a Dooya DC90 remote control that’s paired to a awning motor. The idea is that I can control it in Home assistant using the Sonoff RF Bridge that’s been hardware hacked and flashed with ESPHome. After writing some yaml code and getting the receiver and transmitter set up in the ESPHome config, I can see codes that’s being sent to the motor, so far so good.

The problem now is that nothing happens when I send the codes back to the motor in HA. This is how my transmitter and switches are currently set up,

remote_transmitter:
  pin: 5
  carrier_duty_percent: 100%

switch:
  - platform: template
    name: Awning Out Remote
    turn_on_action:
      remote_transmitter.transmit_rc_switch_raw:
        code: '1011010100010001000001001100000100010001'
        protocol: 6
        repeat:
          times: 3

  - platform: template
    name: Awning In Remote
    turn_on_action:
      remote_transmitter.transmit_rc_switch_raw:
        code: '1011010100010001000001001100000100110011'
        protocol: 6
        repeat:
          times: 3


  - platform: template
    name: Awning Stop Remote
    turn_on_action:
      remote_transmitter.transmit_rc_switch_raw:
        code: '1011010100010001000001001100000101010101'
        protocol: 6
        repeat:
          times: 3

The code length is 40 numbers, but at first, using protocol 1, it only sent out 39 numbers, the last one was missing. After trying different custom settings and all the protocols it managed to send the whole code when used with protocol 6.

I’ve made switches in Home assistant that I can use to set off the code.

The problem now is that nothing happens with the motor when I press the switch in HA. I can see that the entire code has been sent using the ESPHome log but nothing happens to the motor.

So, after all this, does someone have any idea of what could be going on? Do I need to try different settings in the protocol or something else in the code. Or maybe hardware related?

yes, the rc_switch protocol 6 is similar enough to dooya that it picks it up, but to transmit is a tiny bit different. i copied the remote_base component and added a protocol definition for dooya, also I dont know how important it is, but in my blinds i need to send two codes for moving up and two for moving down, an a single code to stop

I just bought an RF bridge from Aliexpress. And it works fine with the Dooya remote for Dooya curtain motors I have, so presumably it will work with other Dooya motors. The remote model is DC2760AC 433MHz. The RF bridge is from the Aliexpress store Go Relax Life Store. Cost was $NZ32 including shipping. Admittedly I’m just using it with Google Assistant and Google Home via the ewelink app. Not yet with HA. I’ve attached a photo of the device so you can find it on Ali in case the link below no longer works.

RF Bridge Roller Shutter Remote
https://a.aliexpress.com/_mL1bkxi

Hello, did you make an esphome custom_component that is able to send Dooya Code with Quad bits encoding ?

@cocotugo could you share the code that made it work?

dooya RF code is not in rc_switch library.
so the RF signal recived and decode by rc_switch is wrong.
but there is a another way to simulate the RF signal no matter decode and encode.
use the following dump to recive the raw data but not the decode data:

remote_receiver:
  dump: raw
  pin:
    number: D1
  tolerance: 50%
  filter: 200us
  idle: 6ms
  buffer_size: 3kb

and there is the log:

[11:09:47][I][remote.raw:028]: Received Raw: 4890, -1618, 363, -774, 361, -774, 729, -409, 356, -774, 729, -408, 725, -410, 724, -418, 356, -786, 366, -760, 362, -775, 729, -409, 725, -409, 724, -408, 358, -774, 728, -408, 357, -787, 363, -771, 363, -772, 361, -773, 362, -769, 364, 
[11:09:47][I][remote.raw:041]:   -775, 730, -405, 359, -770, 367, -786, 360, -773, 361, -774, 733, -406, 723, -407, 358, -774, 360, -771, 362, -776, 727, -421, 357, -778, 726, -407, 360, -771, 730, -412, 353, -776, 727, -409, 357, -774, 728
[11:09:47][I][remote.raw:028]: Received Raw: 4938, -1581, 363, -773, 362, -774, 727, -407, 359, -776, 725, -407, 727, -419, 725, -412, 354, -776, 362, -772, 370, -766, 727, -407, 726, -410, 724, -409, 356, -778, 725, -408, 356, -787, 363, -772, 363, -772, 361, -784, 360, -765, 360, 
[11:09:47][I][remote.raw:041]:   -772, 729, -407, 359, -772, 352, -795, 331, -818, 360, -762, 717, -429, 719, -410, 365, -768, 366, -762, 361, -772, 730, -423, 358, -772, 728, -410, 357, -776, 725, -409, 358, -775, 727, -409, 358, -773, 729

sometimes raw data is not accurately ,try to find the right one.
and use the following code to send RF signal:

remote_transmitter:
  pin: D2
  # RF uses a 100% carrier signal
  carrier_duty_percent: 100%

button:
  - platform: template
    name: collapse
    icon: "mdi:arrow-expand-right"
    on_press:
      - remote_transmitter.transmit_raw:
          code: [4942, -1579, 366, -770, 365, -772, 731, -405, 360, -774, 729, -407, 726, -409, 729, -405, 359, -782, 366, -770, 360, -779, 728, -406, 728, -409, 725, -408, 358, -773, 730, -406, 359, -785, 364, -769, 366, -770, 358, -780, 367, -766, 365, -770, 731, -407, 360, -769, 366, -784, 366, -770, 361, -777, 729, -411, 724, -407, 357, -771, 367, -770, 362, -778, 726, -420, 361, -772, 363, -772, 368, -766, 731, -407, 725, -411, 728, -409, 722, -408, 356]
          repeat:
            times: 2
            wait_time: 15ms

more detail in this page https://bbs.hassbian.com/thread-14331-1-1.html
[/quote]

Hi @zhaoxinchen007 !

Thank you for the detailed explanation and website full of useful info! I’m happy to report that it works!

So just for future people trying to do this, here’s what I did to make it work.

  1. Hardware hack the Sonoff RF Bridge. There are a few different types of the hack depending on what version of the RF Bridge you have. I have the latest one.

  2. Flash the RF Bridge with ESPHome. For some reason it didn’t work using the ESP online flasher tool so had to do it using esptool on my windows machine. I got the .bin file from the esphome addon in HA using the manual method.

  3. Now to where I got stuck. I tried all the different libraries with not luck, rc_switch and raw mainly. When I used raw I got several [remote.raw:028]: code snippets, probably 3-5. And then one [remote.raw:041]: code snippet. For some reason I tried either just the [remote.raw:041]: code or with just 1 the 028 code when trying to send a code. But after looking at the code snippet from @zhaoxinchen007 and counted all the numbers in the send code I realized that I need ALL the codes. So lo and behold, after putting in all the [remote.raw:028]: codes and the one [remote.raw:041]: code in to the send code, it worked!

So anyways, thanks again!

Now to just add a weather station to make some automations!