Yes, you are right, both get job done. My approach is to simulate standard behavior of switch (On / Off) in case any other control system (not only HA) will require visibility of switch status.
It is good example of HA flexibility…number of ways how you can achieve same results
I just received from Banggood a 433MHz learning remote keyfob device, with 4 buttons. It doesn’t seem to have anything useful programmed into it, so I think I’ll need to poke at the sonoff rf bridge to get it to transmit some random codes for the keyfob to learn.
Then, I’ll have another small device to do… well, I’m not sure what at this point! For $8.00, it seemed like something interesting to try.
I had bought a couple of Z-Wave 4-button remotes that have been handy, but they were cheap at the time, I think, because they were very old inventory with LiPo batteries that didn’t hold a charge real well. It wasn’t hard to desolder the old batteries and replace them with some small batteries I found on ebay, but it’s not really a reproducible solution.
I’m hoping that the little 433MHz keyfob will have enough range to work from the car as its sitting outside the house… That might be a fun application for a more immediate action before the WiFi presence thing sniffs that my phone has come home.
this is exactly my user case. Big house many places with little recepotion, and some non critical switches (I don’t care if somebody sniffs my 433 signal)
Just received my sonoff rf bridge and I flashed it with Tasmota. Tried with a PIR sensor and worked at first try!
Now I am trying to fix the transmitting part. I can program the Bridge for up to 16 433 signals correct? Didn’t find a way to put it in learn mode yet, will investigate.
Just to make sure I understood correctly, a way to integrate it with HASS is the following
For receiving signals (PIR, door sensors and so on)
binary_sensor:
- platform: mqtt
name: "Motion sensor"
payload_on: "FFFFF" # the code that you see in the Tasmota log when the sensor is activated
payload_off: "FFFFFoff"
device_class: motion
state_topic: "tele/sonoff_bridge/RESULT"
value_template: '{{ value_json.RfReceived.Data }}' # Data here?
While for the SENDING part, I am a bit more confused. Did I understand correctly the following:
I can use, for example, a 433 Key, put the Bridge in learn mode and associate the number 1 (for example) to that code. So now if I click the number 1 in tasmota interface or click the switch switch.rf_bridge_key_1_pressed
it will send the 433 signal learned. But that signal is also received? I mean if I want to press the 433 remote key 1, the Bridge will RECEIVE that signal (like it does with a PIR sensor activated), correct?
For sending using the memories what you need to do is bring the device you want to control close to the gateway, put that device in learning mode and then press 1 in the sonoff rfbridge. Test it. if it works go to the console and get the code for your switch
You can use the default codes by just pressing the number on the Tasmota webui, if you put the remote key on learning mode it will learn that code.
Or you can make the RF Bridge in learn mode and then press a remote key (that is already programmed) next to the RF Bridge (in this case the default code will be lost)
You put the Sonoff RF Bridge in learn mode writing in console RFkeyx 2 (x can vary from 1 to 16)
For me this is all a kind of new.
I achieved already a lot.
The switches at home are working good but now i am testing with the sonoff bridge with tasmota on it.
What i now want to do os to turn on and off the light what is already working and can be switched on and off by the handy.
I don’t believe i have to create a new switch or not?
Is it a line what needs to be added to this switch so it listen also to the commands from the bridge with the correct data what belongs to the bridge?
I’m trying to use ur code and it doesn’t work, can you please show in more details?
I have an RF plug, that have ‘on’ and ‘off’ codes controlled by remote control, I know both codes, I also have ‘Key 1’ and ‘key 2’ on the ‘rf bridge’ learn the codes and they can turn it on and off. However, when i’m trying to make a ‘switch’ in HA, no response.
Did you make a binary_sensor? Can you show the ymal? All that is related to the rf in ur settings?
Really appriciated if you could help.
i’ve set it up as an automation, with an input boolean. I have an RF plug hooked up to my 12 inch fan inside my electric cabin (where gas and electricity comes in the house) and there’s a hole in the door where a PI with a 3.5 inch TFT is sticking out. (overclocked so there’s a huge fan behin it.
You could change the trigger to the input boolean you create for the switch.
Hi, my Sonoff RF Breidsge works fine and well integrated in HASS, for RECEIVING signals.
Noiw I am trying to SEND signal: I have an RF Siren 433, which I want to trigger when the alarm goes ON.
The siren comes with an RF sender, that when you press (send signal) the siren goes ON. Reading the code in Tasmota consolle is
Now I want to trigger the siren from HASS SENDING (not receiving) the code to the RF Bridge which then should send the RF signal, but which is the configuration??
script:
###########################################
#### TRIGGER SIREN THREE (RF SEND)
###########################################
rf_bridge_turn_on_siren_three:
alias: 'Turn on siren three'
sequence:
- service: mqtt.publish
data_template:
topic: 'cmnd/send' # WHAT HERE?
payload: '980000'
I know I can use Sonoff RF Bridge to LEARN the signal, and then use the Keys for SENDing the signal (also this I do not know how to integrate in HASS with mqtt.publish), but I do not need to use one of the 16 signal keys