MUE4094RT Philips Xiaomi Motion Sensor

I’m having trouble getting this to work. I have two and ESPhome is not detecting them. Any idea how to get them to work? I’m pretty sure I have the correct mac addresses because I use bluetooth sniffer and able to detect mac address with -30 RSSI.

I’m using ESP32 and my other sensors (temp and humidity) work fine without any problem.

Without your esphome yaml or your esphome logs, it is hard (impossible?) to say.

[D][esp32_ble_tracker:544]: Found device F9:3A:19:EB:0E:77 RSSI=-81e
[D][esp32_ble_tracker:565]: Address Type: RANDOMe

That’s the only significant log I see related to the device. It’s detecting it as a ble device, but not as a sensor.

esphome:
  name: mastertemp
  platform: ESP32
  board: mhetesp32devkit

wifi:
  networks:
  - ssid: "**redacted**"
    password: "**redacted**"

#MQTT
mqtt:
  broker: **redacted**
  username: mosquitto
  password: **redacted**

captive_portal:

# Enable logging
logger:

web_server:
  port: 80
  auth:
    username: admin
    password: "**redacted**"

# Enable Home Assistant API
#api:

ota:
  password: "**redacted**"

# Enable Bluetooth scanning for this ESP32
esp32_ble_tracker:

sensor:
  - platform: xiaomi_lywsdcgq
    mac_address: **redacted**
    temperature:
      name: "Master Bedroom Temperature"
    humidity:
      name: "Master Bedroom Humidity"
    battery_level:
      name: "Master Bedroom Battery Level"

  - platform: xiaomi_lywsdcgq
    mac_address: **redacted**
    temperature:
      name: "Kitchen Temperature"
    humidity:
      name: "Kitchen Humidity"
    battery_level:
      name: "Kitchen Sensor Battery Level"

binary_sensor:
  - platform: xiaomi_mue4094rt
    name: "Night Light 01"
    mac_address: F9:3A:19:EB:0E:77
    timeout: "5s"

Please post your code properly How to help us help you - or How to ask a good question

Sorry about that I fixed my code.

Is an entity created in ha?

Yes, it’s created.

Anyone has success on this night light?

The sample code in the docs has the night light’s mac address in quotes "mac address"

I tried both, unfortunately still not working.

In the documentation, the sensor: section is blank, right?

yes it is blank. I suggest you post your full esphome log, perhaps to pastebin.

Hi @nickrout, there’s really nothing glaring in the log. I think the ESPHOME support for this device needs improvement, unfortunately I don’t know what could be causing the issue.

I went to a different route, I’m now using BLE monitor component and it works flawlessly on the first try without any issues. Thanks so much for your willingness to assist.