SonOff RF bridge with HomeAssistant
From Eric
(Created page with "= Access the Tasmota device = To access the Rfbridge, simply open a web page to the appropriate ip address. = Tasmota installation = To install the Tasmota firmware on the...")
Newer edit →
Revision as of 09:30, 26 September 2021
Contents |
Access the Tasmota device
To access the Rfbridge, simply open a web page to the appropriate ip address.
Tasmota installation
To install the Tasmota firmware on the SonOff Rf bridge, please refer to ...
Once the Tasmota firmware is installed, you can also update the RF firmware. Please look here.
MQTT configuration
In the MQTT configuration panel of Tasmota, use your Home Assistant's user and password
Identifying remote control code
- 1st solution Send command "rfkey 2" The bridge beeps briefly Click on the remote controler The bridge beeps again: the code has been learnt Send command "Rfkey 1" to emulate pressing the remote controller button
- 2nd solution Send command "rfraw 177" Press several times on the remote controller Use the frame that seems the most common For instance : {"RfRaw":{"Data":"AA B1 21 03 08 0186 03DE 299A 28190819090908181819090908190818190908190908181818 55"}} Use the online bitbucket converter (here https://bbconv.hrbl.pl/) to translate the B1 code to a B0 code : Send the command using backlog to emulate the controller: Topic is : "cmnd/rfbridge/Backlog" Payload is : "Rfraw AA B0 21 03 08 0186 03DE 299A 28190819090908181819090908190818190908190908181818 55; RfRaw "
- With my other remote controllers (Qiachip with EV1527 code), TASMOTA returns messages such as:
09:04:59.092 MQT: tele/rfbridge/RESULT = {"Time":"2021-09-04T09:04:59","RfReceived":{"Sync":12020,"Low":430,"High":1270,"Data":"038104","RfKey":"None"}}
Sending remote control codes
From HomeAssistant
For the first category of remote controlled switches, I use the following configuration, but without success
- platform: mqtt name: "RFPlug-1" command_topic: "cmnd/rfbridge/Backlog" availability_topic: "tele/rfbridge/LWT" payload_available: "Online" payload_not_available: "Offline" payload_on: "Rfraw AA B0 21 03 08 0186 03DE 299A 28190819090908181819090908190818190908190908181818 55; RfRaw 0 " payload_off: "Rfraw 0" optimistic: true
For the second category of remote controlled switches (Qiachip with EV1527 encoding), I ue the following configuration:
- platform: mqtt name: "Light 1" state_topic: "cmnd/rfbridge/RESULT" command_topic: "cmnd/rfbridge/Backlog" payload_on: "RfSync 12020; RfLow 430; RfHigh 1270; RfCode #038104" payload_off: "RfSync 12020; RfLow 430; RfHigh 1270; RfCode #038108" optimistic: true icon: mdi:lightbulb
To fnd the codes, I bought some cheap Qiachip EV1527 modules, sniffed the code sent using the RF bridge console, and used them to "teach" the remote controlled switches. Then, I simply copied the code in the HomeAssistant configuration (see above).
Executing commands in the console
Connect to the WebUi of the Tasmotized Rf bridge.
Open the console panel:
The list of Tasmota commands can be found at https://tasmota.github.io/docs/Commands/
For instance, to generate a beep:
cmnd/rfbridge/RfRaw 192