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.
nickrout
(Nick Rout)
November 27, 2020, 9:28pm
2
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"
nickrout
(Nick Rout)
November 27, 2020, 9:48pm
6
Sorry about that I fixed my code.
nickrout
(Nick Rout)
November 27, 2020, 10:14pm
8
Is an entity created in ha?
Anyone has success on this night light?
nickrout
(Nick Rout)
July 25, 2021, 9:59pm
11
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?
nickrout
(Nick Rout)
July 25, 2021, 10:13pm
13
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.
Passively monitors BLE messages from Xiaomi Mijia BLE MiBeacon, Qingping, ATC, Xiaomi Scale, Govee, Kegtron, iNode and Thermoplus sensors - GitHub - custom-components/ble_monitor: Passively monitor...