Hiya Geniuses!
I’ve been struggling for a bit to try and get a Sonoff RF Bridge device running ESPHome firmware. I’ve successfully flashed the hardware and all the sensors work, but I’m not seeing the RF-Bridge.
I’m following the quite comprehensive guide provided at - https://www.irrgang.dev/how-to-flash-the-sonoff-rf-bridger2-with-esphome/
Looking at the ESPHome device, it is active and I’m seeing a bunch of things under the Diagnostic heading.
But compared to the screen shot in the post, there should also be something labelled as rf-bridge.
I’ve cross checked my ESPHome config to the webpage a number of times. But maybe I’ve made an error somewhere.
esphome:
name: rf-bridge-1
friendly_name: RF Bridge 1
esp8266:
board: esp01_1m
# Enable logging
logger:
baud_rate: 0
api:
encryption:
key: !secret api_encryption_key
services:
- service: send_rf_code
variables:
sync: int
low: int
high: int
code: int
then:
- rf_bridge.send_code:
sync: !lambda 'return sync;'
low: !lambda 'return low;'
high: !lambda 'return high;'
code: !lambda 'return code;'
- service: learn
then:
- rf_bridge.learn
rf_bridge:
on_code_received:
then:
- homeassistant.event:
event: esphome.rf_code_received
data:
sync: !lambda 'return format_hex(data.sync);'
low: !lambda 'return format_hex(data.low);'
high: !lambda 'return format_hex(data.high);'
code: !lambda 'return format_hex(data.code);'
ota:
platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
button:
# Restart the ESP
- platform: restart
name: "Restart"
uart:
tx_pin: 1
rx_pin: 3
baud_rate: 19200
# Sensors for ESP version and WIFI information
text_sensor:
# ESPHome version
- platform: version
hide_timestamp: true
name: "ESPHome Version"
# IP address and connected SSID
- platform: wifi_info
ip_address:
name: "IP Address"
icon: mdi:wifi
ssid:
name: "Connected SSID"
icon: mdi:wifi-strength-2
sensor:
# WiFi signal
- platform: wifi_signal
name: "WiFi Signal"
update_interval: 120s
- platform: uptime
name: Sonoff RF Bridge Uptime
binary_sensor:
- platform: status
name: Sonoff RF Bridge Status
light:
- platform: status_led
name: "Switch state"
pin: GPIO13
I’m assuming if I’d done something really basic like screwing up the indents, then the ESPHome compile would fail?
Appreciate anyone who can nudge me in the right direction. Thanks