In this video I will show you how to send an RF Signal with a Sonoff RF Bridge running Tasmota via MQTT. We’ll connect this to a “dumb” doorbell
I take a normal RF doorbell and make it smart with Home assistant and Node Red applying logic on when I want the doorbell to ring (and not wake up the kids).
Configuration.yaml
Find the configuration for both the receiving signal and the sending signals here.
binary_sensor:
#RF Door Bell Receive Signal
- platform: mqtt
name: "Front Door Bell"
state_topic: "tele/rf-bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "0C7F42"
payload_off: "0C7F42_off"
off_delay: 5
device_class: motion
qos: 1
switch:
#RF Door Bell Send Signal
- platform: mqtt
name: "Ring Door Bell"
command_topic: "cmnd/rf-bridge/Backlog"
availability_topic: "tele/rf-bridge/LWT"
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/rf-bridge/RESULT"
value_template: '{{value_json.RfCode}}'
payload_on: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #000001"
payload_off: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #000001_off"
state_on: "#000001"
state_off: "#000001_off"
optimistic: true
retain: false
qos: 2
Node Red Flow
Import the flow directly into node red with the Menu Button (Top Right) and import:
[{"id":"af18eb8c.bbb698","type":"server-state-changed","z":"83910fd7.19f61","name":"Door Bell","server":"e53e7ab2.787fe8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.your_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":280,"wires":[["2d34d364.42e68c"],[]]},{"id":"2516f6b1.4f7f4a","type":"api-call-service","z":"83910fd7.19f61","name":"Ring Door Bell","server":"e53e7ab2.787fe8","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"switch.ring_door_bell","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":610,"y":280,"wires":[[]]},{"id":"2d34d364.42e68c","type":"time-range-switch","z":"83910fd7.19f61","name":"8 till 8","lat":"51.3","lon":"-1.9","startTime":"08:00","endTime":"20:00","startOffset":0,"endOffset":0,"x":340,"y":220,"wires":[["2516f6b1.4f7f4a"],[]]},{"id":"e53e7ab2.787fe8","type":"server","z":"","name":"Home Assistant","addon":true}]