433Mhz newbie question: multiple door sensors

Thanks all. As I mentioned, the sensor I have (a Garosa unit from Amazon, which according to the internal PCB pics I’ve seen, is also known as a GS-WDS07) does do separate codes for open and close.

My question was really about how the sensors are identified uniquely. For example, a BT / BLE device has a unique MAC address, so it’s easy to target a specific device. I wasn’t sure if there was a similar mechanism used for 433Mhz. There must be, right?

I went ahead and ordered a second door sensor (they’re pretty darn cheap). I’ll see what it squawks as a code when it comes in. I’d imagine it should be different than the other somehow…

Also, here’s my ESPHome code for the Sonoff RF Gateway. I had to play around with some of the timings (tolerance, filter, idle) to read the sensor reliably. I haven’t added any binary sensors yet, just reading codes for now.

I ended up with the 2.2 version of the Sonoff RF board, which is quite different than the previous versions. Broke out the soldering iron and wire and modified according to this:

New Sonoff RF Bridge Board - Need Flashing Help - Configuration - Home Assistant Community (home-assistant.io)

esphome:
  name: rfbridge-1

esp8266:
  board: esp8285

logger:

api:

ota:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

web_server:

status_led:
  pin:
    number: GPIO13
    inverted: yes

# USBRX = GPIO4 ---> receiver
# USBTX = GPIO5 ---> trasmitter

# receiver = pin 5 of the 8-legged chip (the one closer to the wifi antenna)
# transmitter = pin 4 of the 6-legged chip (closest to r12)

remote_receiver:
  pin:
    number: GPIO4
  dump: rc_switch
  # Modified these to get stability
  tolerance: 50%
  filter: 4us
  idle: 4ms

remote_transmitter:
  pin: GPIO05
  carrier_duty_percent: 100%