YAML configuration for connecting Sonoff RF 433mhz bridge to HA

Hey to all developpers
I am very new to HA and I try to intergrate all my sonoff devices on HA. I really need helps to establish the right configuration of the config file. I already apologies for my poor english and the fact that I will not use the proper therms …

I have a RF433 bridge flashed with the proper firmware and and manage to get the code transmetted by the bridge to HA (003e0ce when off, 003e0ce2 when on). I tried to implement the template into the configuration file and create the binary sensor witch can show the current state of the sensor. I can see on the dashboard that the sensor is created but it does not show the state of the sensor. Do I have write the right yaml code? Someone can hep me? Here below the code snifet included in the conf file.

template:

  • trigger:
    • platform: event
      event_type: esphome.rf_code_received
      event_data:
      code: 003e0ce2
      variables:
      to_state: off
    • platform: event
      event_type: esphome.rf_code_received
      event_data:
      code: 003e0ce1
      variables:
      to_state: on
      binary_sensor:
    • name: lumière bur
      device_class: door
      state: “”

Please format your code properly. Point 11 here How to help us help you - or How to ask a good question

And I changed your question’s category to configuration, since this isn’t a development question and has nothing to do with templates. You’ll have better luck using the right tags and categories.

Huh thought I did that hours ago :slight_smile:

1 Like

Maybe a connection issue and it didn’t save? The forum has been particularly slow for me today. :person_shrugging: :slight_smile:

1 Like

Ok and sory I am very new to HA ans to this forum I dont know so much about the topics…

I am search of how to control my 433MHz blinds in HA and I found this thread. A legitimate question, but, lo, no solutions, just admonitions. The only link is to how to properly form an HA question.

Look, guys and gals, there are many of us that don’t know diddly about the ins-and-outs of HA. The HA elite have a responsibility, yes, responsibility to link the newbies to the right place.

In not doing so, threads like this end up in a search and wastes the time of the others seeking similar information. Please be genuinely helpful.

If you’re going to come here to make demands, you’re not going to get very far.

What right place? You’re assuming there’s a single answer, but there isn’t.

Did you read it? You wrote a lot, but we’ve learned nothing, except that you have RF-controlled blinds.

You can buy a Sonoff RF bridge, or a Broadlink one, or even make your own ESPHome device. You’ll need to find the right codes to transmit. These things aren’t standardised.

1 Like

See, that wasn’t so hard. You knew I was having trouble connecting my blinds to HA. You made three suggestion, of which I am going to explorer two of them.

SONOFF reports, as of 10 March 2025, the latest version of their bridge is V3.6.0. Will that be the version of the one I will receive? (rhetorical question) V1.0 sounded very promising and not so much V2.2, as reported by Tasmota. @chrisdecarmes30 's question was not answered. Will I have this problem? I will report back my experience with the SONOFF bridge I receive.

I wasn’t thinking not so much as an ESPhome device, but an arduino with transmitter and receiver will be an interesting (and inexpensive) experiment.

And you’re right, I should have written “a link for further enquiry”.

No, it was not a demand, it was a reminder: With great power comes great responsibility (please read the link. I particularly like “All of you are shepherds and each of you is responsible for his flock”)

If you go the arduino route, you might check-out the rflink.

(39) #242 How to Build a Cheap 433 - MQTT Gateway (RFLink, Arduino, ESP8266, Node-Red, Weather Station) - YouTube

Please stop with your personal remarks. It’s completely unnecessary.

I don’t use a Sonoff bridge myself. I use a Broadlink.

ESP chips are very cheap and ESPHome is fairly easy to use if you’ve done any form of embedded programming. Your link doesn’t describe how to integrate your device with HA. Integrating an ESPHome device with HA is trivial.

This is the problem: you’re assuming people here have perfect knowledge — with some having some kind of attitude regarding helping. There are no (super)heroes — and this is the real world. The HA space is vast. There are only people with similar experiences and setups and your goal should be to explain yourself as well as possible and show what you have, tried or are planning. I don’t know why you felt the need to first make remarks and to have withheld the information you gave in this post.

Next time, focus on what you need and drop the preaching and commentary — or take a nice, chillaxing surf before posting.

I was not successful creating a 433MHz radio to connect to my blinds. What was successful for me, though not particularly satisfying, was to design and build an interface board for a remote control.

This seems to be working. You can view the details on github.

1 Like