Having some issues setting this up. I can flash ESPHome, and see it as a device just fine - but I’m not getting any output on my esphome.rf_code_received
My YAML look OK? Am I missing something? For my board, I have tried both esp01_1m and esp8285.
Does the board need any physical mods for ESPHome?
esphome:
name: rf-bridge
friendly_name: rf-bridge
esp8266:
board: esp01_1m
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: !secret api_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 password
wifi:
ssid: !secret wifi_ssid_iot
password: !secret wifi_password
manual_ip:
static_ip: 192.168.88.60
gateway: 192.168.88.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Rf-Bridge Fallback - abcd1234"
password: "abcd1234"
button:
# Restart the ESP
- platform: restart
name: "Restart"
uart:
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 19200
captive_portal:
# 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