ESPHome on Sonoff RFBridge

I’ve installed ESPHome on an RFBridge (I have another one in production with tasmota, but want to swap).
When I look in the log, I see this warning:

[17:55:14][C][remote_receiver.esp8266:060]:   Pin: GPIO4 (Mode: INPUT)
[17:55:14][W][remote_receiver.esp8266:063]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' in the pin schema!
[17:55:14][C][remote_receiver.esp8266:065]:   Buffer Size: 1000

My config looks like this:

substitutions:
  device_name: sonoff_rfbridge_1

esphome:
  name: ${device_name}
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "BH"
  password: "nathalie2016"
    
# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "XXX"
  
web_server:
  port: 80
  
# Text Sensor with general information
text_sensor:
  - platform: version
    name: '${device_name} ESPHome Version'
  - platform: wifi_info
    ip_address:
      name: '${device_name} ip'
    ssid:
      name: '${device_name} ssid'

sensor:
  - platform: wifi_signal
    name: '${device_name} WiFi Signal'
    update_interval: 60s
    accuracy_decimals: 0
  - platform: uptime
    name: '${device_name} Uptime'
    unit_of_measurement: days
    update_interval: 300s
    accuracy_decimals: 1
    filters:
      - multiply: 0.000011574

binary_sensor:
  - platform: status
    name: Sonoff RF Bridge Status

remote_receiver:
  pin: 4
  dump: rc_switch
  tolerance: 50
  filter: 4us
  idle: 4ms

remote_transmitter:
  pin: 5
  carrier_duty_percent: 100%

status_led:
  pin:
    number: GPIO13
    inverted: yes

So should I add the inverted: yes for receiver?

Yes, that’s what the warning message suggested that you should add the inverted

remote_receiver:
 pin: 4
 dump: rc_switch
 tolerance: 50
 filter: 4us
 idle: 4ms
 inverted: True

Hmm yes, I thought so too, but if I do that, I get this error:

image

I tried placing the ‘inverted’ statement directly under the pin, and also indent it, but I still get errors.

Not sure why log suggested that, but according to the source at https://esphome.io/components/remote_transmitter.html#remote-setting-up-rf

“inverted” should be place under protocol:

EDIT: Found a tutorial by Dr.Zzs for Sonoff RF, but he use ESPeasy, worth checking out tho. http://drzzs.com/sonoff-rf-bridge/

It should look like this:

Ahh, ok, got it.
Though I still get:
[21:36:14][W][remote_receiver.esp8266:063]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' in the pin schema!

I removed the inverted: true again, as all my door sensor went silent with that set.
Weird. I don’t know much about the 433 MHz protocol, so I havce no idea why.