artomka
(Artomka)
January 17, 2020, 8:44pm
1
Hi, I am trying to solve switch configuration for Tasmota RF Bridge. However, this configuration does not send Turn On and Turn Off commands. Can someone help me, please?
Switch config:
- platform: mqtt
name: "Outlet"
command_topic: "cmnd/sonoff_RF/RFcode"
availability_topic: "tele/sonoff_RF/LWT"
payload_available: "Online"
payload_not_available: "Offline"
payload_on: "#E23B04"
payload_off: "#E23B03"
optimistic: true
qos: 1
This is the log from Tasmota Console:
21:43:28 MQT: stat/sonoff_RF/RESULT = {"Command":"Unknown"}
21:43:30 MQT: stat/sonoff_RF/RESULT = {"Command":"Unknown"}
wolfer4004
(wolfer4004)
January 17, 2020, 9:09pm
2
Remove the #, also optimistic: true needs to be removed, it throws up a flag.
Here is mine for a door sensor:
- platform: mqtt
state_topic: "Bridge/tele/RESULT"
name: 'Garage Door'
value_template: '{{value_json.RfReceived.Data}}'
payload_on: '04ADEE' #Kerui Door
payload_off: '04ADE7'
device_class: door
qos: 1
Mr.Art
(Artom)
January 18, 2020, 6:38am
3
It still does not work. Now it shows:
07:28:40 MQT: stat/sonoff_RF/RESULT = {"RfCode":0}
07:28:44 MQT: stat/sonoff_RF/RESULT = {"RfCode":0}
With ”#” in the beginning of codes iT shows:
07:36:01 MQT: stat/sonoff_RF/RESULT = {"RfCode":"#E23B04"}
07:36:04 MQT: stat/sonoff_RF/RESULT = {"RfCode":"#E23B03"}
Still does not work.
This is what works for me:
- platform: mqtt
name: Colorful Lights
state_topic: "sonoff_rf_bridge/cmnd/RfCode"
command_topic: "sonoff_rf_bridge/cmnd/RfCode"
payload_on: "#3ACC13#"
payload_off: "#3ACC17#"
optimistic: false
retain: true
artomka
(Artomka)
January 18, 2020, 10:47am
6
I still can’t send the commands to the Bridge RF.
10:55:16 MQT: stat/sonoff_RF/RESULT = {"RfCode":"#E23B04"}
10:55:17 MQT: stat/sonoff_RF/RESULT = {"RfCode":"#E23B03"}
Do you have some other configurations for the switch, maybe a script or automation?
- platform: mqtt
name: "Pokus"
command_topic: "cmnd/sonoff_RF/rfcode"
availability_topic: "tele/sonoff_RF/LWT"
payload_available: "Online"
state_topic: "cmnd/sonoff_RF/rfcode"
payload_not_available: "Offline"
payload_on: "#F06104#"
payload_off: "#F06103#"
optimistic: false
retain: true
Have you tied with the # at the beginning and the end of payload on/off?
Are you sure? I am not able to see it on the log output you posted.
Mr.Art
(Artom)
January 18, 2020, 4:45pm
10
Yes, I am sure, it does not show the last # in the LOG.
I’ve just took a look on my RF Bridge console and this is what I can see:
19:36:01 SRC: MQTT
19:36:01 RSL: Group 0, Index 1, Command RFCODE, Data #3ACC17#
19:36:01 MQT: sonoff_rf_bridge/stat/RESULT = {"RfCode":"#3ACC17"}
19:36:02 DMP: A0 55
It is also cutting the # from the end of the RFCode but the receiver get it, and do the necessary action.
artomka
(Artomka)
January 19, 2020, 12:45pm
12
It is weird. I have learned the keys 3 and 4 to send these commands and it works, but when I use “send RfCode” command, it does not work. Is there somebody, who has or had the same problem as me?
13:39:11 MQT: stat/sonoff_RF/RESULT = {"RfKey3":"Learned sent"}
13:39:13 MQT: stat/sonoff_RF/RESULT = {"RfKey4":"Learned sent"}
Mr.Art
(Artom)
January 20, 2020, 2:56pm
13
Finally! I have solved it! Yeah :))
This works for me:
- platform: mqtt
name: "Outlet"
command_topic: "cmnd/sonoff_RF/Backlog"
availability_topic: "tele/sonoff_RF/LWT"
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/sonoff_RF/RESULT"
value_template: '{{value_json.RfCode}}'
payload_on: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #F06104"
payload_off: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #F06103"
state_on: "#F06104"
state_off: "#F06103"
optimistic: true
retain: false
qos: 2
6 Likes
hemuni
February 9, 2020, 2:50pm
14
Congrats! and thanks for sharing. This got me up and running as well, Thank you!
I’ve mainly been using the Broadlink RM Pro+ but I’m having issues with it losing connectivity and I’m planning to switch to the Sonoff RF Bridge with Tasmota flashed.
So my question is, how does one format a script to send a string of RF command through the RF Bridge?
atv
(atv)
December 9, 2021, 12:58pm
16
Are you sending that payload_on string to the backlog topic ?
laca75tn
(My Home)
November 1, 2022, 7:52pm
17
Any idea of why mine is not working? I have many RF sensors and they all work with the topic: Home/RF_Bridge/RESULT
However this switch does not send the RF code. Thanks in advance
- name: "TestRF"
state_topic: "Home/RF_Bridge/RESULT"
command_topic: "cmnd/RF_Bridge/Backlog"
availability_topic: "Home/RF_Bridge/LWT"
payload_on: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #000001"
payload_off: "RfSync 12220; RfLow 440; RfHigh 1210; RfCode #00000E"
state_on: "#000001"
state_off: "#00000E"
value_template: "{{ value_json.RfCode }}"
payload_available: "Online"
payload_not_available: "Offline"
optimistic: true
retain: false
qos: 2
radskin
(Radskin)
November 30, 2022, 9:10pm
18
Try this.
mqtt:
switch:
- name: TestRF
icon: mdi:power-socket-eu
command_topic: "cmnd/RF_Bridge/Backlog"
payload_on: "RfSync 4650; RfLow 180; RfHigh 430; RfCode #000001"
payload_off: "RfSync 4650; RfLow 180; RfHigh 430; RfCode #00000E"
state_on: "#000001"
state_off: "#00000E"
qos: 1
retain: false