Sonoff RF Bridge (ESPurna FW) how to add Door Sensor 433Mhz to Home assistant.(HA says Door Sensor Unavailable)

I have a Sonoff RF Bridge running on ESPurna firmware.
I’m able to see the RF signal from 433Mhz Door Sensor.
The Bridge has been setup (via code learning) to detect open & Close for switch #1 ON & switch #1 OFF (Basically Both are the same code as the 433Mhz Door Sensor don’t send any ON or OFF code).

When I Open the Sensor physically I see it works fine in Espurna UI

I see in Espurna UI as Follows:

RF Code details on Espurna UI is as follows:

My Configuration .yaml for sensor is added as follows
binary_sensor:
- platform: mqtt
name: “Window Contact Sensor”
state_topic: “SBRIDGE01/relay/1”
payload_on: 1
payload_off: 0
availability_topic: “SBRIDGE01/status”
payload_available: 1
payload_not_available: 0
qos: 0
device_class: opening
value_template: ‘{{ value.x }}’

Question:

I don’t see Door Door Sensor in Home assistant. It says Door Sensor Unavailable

ED3

Please help me to resolve this

Thanks in advance

You either need to get your firmware to send this topic when it starts ( I don’t have that, so can’t help there), or to remove this section from your HA configuration.

Same code Working fine for Motion sensor (Switch No 0)
But For DW sensor Not working (Switch 1)

What MQTT messages are being sent, and what is the switch configuration?

1 Like
- platform: mqtt
  name: "DWS"
  state_topic: SBRIDGE01/relay/7
  payload_on: 1
  payload_off: 0
  device_class: Door
  optimistic: false
  qos: 1
  retain: false

dws1

This only tells me what you said before. Please use and MQTT client, such as mosquitto_sub to display the actual MQTT message being sent, for instance

mosquitto_sub -v -V mqttv311 -t "#"

See the MQTT Testing page

1 Like