Hi, Hopefully someone can help. I would like to try to connect 3 Xiaomi BLE temperature/humidity sensors to MQTT via ESPHOME. However, I do not get it to work.
I have 3 sensors:
- LYWSD03MMC. original firmware
- LYWSD03MMC. custom firmware
- Xiaomi mija (round device).
I have an external MQTT broker. It only receives values of device 1. Temperature/humidity and battery level is received.
The ESP32 is flashed via home-assistant esphome. Works well. all 3 devices are found via the ble-tracker of the esp.
I tried already all names with and without the "… do difference.
I have the following ESPHOME configuration. What am I doing wrong?
esphome:
name: abititer_t_bridge
platform: ESP32
board: mhetesp32devkit
wifi:
ssid: “XX”
password: “XX”
logger:
level: debug
Enable Web
web_server:
port: 80
ota:
password: ‘OTA PASSWORD’
time:
- platform: sntp
on_time:- seconds: 0
minutes: 0
hours: 4
days_of_week: MON-SUN
then:- switch.toggle: restart_switch
- seconds: 0
esp32_ble_tracker:
mqtt:
broker: 192.168.3.200
topic_prefix: xiaomitemperature/sensors
switch:
-
platform: gpio
name: “ESP32-Onboard-LED”
pin: 2
inverted: True -
platform: restart
name: “ESP32-restart”
id: restart_switch
sensor:
-
platform: uptime
name: “ESP32_Uptime Sensor” -
platform: xiaomi_lywsd03mmc
mac_address: A4:C1:38:56:CC:A2
bindkey: “9e15135a2e14eca111ccae47b8e5f4d2”
temperature:
name: extra1_temperature
humidity:
name: extra1_humidity
battery_level:
name: extra1_battery_level -
platform: xiaomi_lywsd03mmc
mac_address: A4:C1:38:86:F5:31
bindkey: “05e04076be48f427f3d90e166d0fbd5e”
temperature:
name: studie_temperature
humidity:
name: studie_humidity
battery_level:
name: studie_Level -
platform: xiaomi_lywsdcgq
mac_address: “B4:4B:17:21:03:D7”
temperature:
name: “Sensor_2_Temperature”
humidity:
name: “Sensor_2_Humidity”
battery_level:
name: “Sensor_2_Battery_Level”