INFO Reading configuration /config/esphome/xiaomi_ble.yaml...
INFO Starting log output from xiaomi_ble.local using esphome API
WARNING Error resolving IP address of xiaomi_ble.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -2] Name or service not known). Re-Trying in 1 seconds
WARNING Error resolving IP address of xiaomi_ble.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname). Re-Trying in 1 seconds
WARNING Error resolving IP address of xiaomi_ble.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname). Re-Trying in 2 seconds
WARNING Error resolving IP address of xiaomi_ble.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname). Re-Trying in 3 seconds
esphome:
name: 'xiaomi_ble'
platform: ESP32
board: mhetesp32devkit
wifi:
ssid: "xxx"
password: "xxx"
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.1.180
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.1.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
# Enable Home Assistant API
api:
web_server:
port: 80
logger:
ota:
# Enable Bluetooth scanning for this ESP32
esp32_ble_tracker:
sensor:
- platform: xiaomi_lywsd03mmc
mac_address: A4:C1:38:3C:EE:9B
bindkey: "c9f8575d0e7d6976f3338869c39a69fd"
temperature:
name: "Ble Temperature"
humidity:
name: "Ble Humidity"
battery_level:
name: "Ble Battery Level"