Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Operating environment/Installation (Hassbian):
Hassbian installed on Raspberry Pi. Version 0.91 of HA installed.
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32 on esp32doit-devkit-v1 board
Xiaomi MiFlora and/or BLE Tracker
Description of problem:
I’ve successfully put the MiFlora sensors into HA before through the core HA component. However, due to the position of the sensors and my RPi, I decided to use an ESP32 as a BLE hub for better connectivity.
I’ve followed the instructions and everything appears to be working. The sensor node is online and it is detecting the MAC address of the MiFlora sensor. It is not however showing up in Home Assistant.
This is my yaml:
Problem-relevant YAML-configuration entries:
esphome: name: blehubtrack platform: ESP32 board: esp32doit-devkit-v1 wifi: ssid: "***********" password: "***********" # Enable logging logger: # Enable Home Assistant API api: ota: esp32_ble_tracker: scan_interval: 300s sensor: - platform: xiaomi_miflora mac_address: C4:7C:8D:67:C0:8B temperature: name: "Xiaomi MiFlora Temperature" moisture: name: "Xiaomi MiFlora Moisture" illuminance: name: "Xiaomi MiFlora Illuminance" conductivity: name: "Xiaomi MiFlora Soil Conductivity" battery_level: name: "Xiaomi MiFlora Battery Level"
Log is as follows:
Traceback (if applicable):
Additional information and things you've tried:
Now, one thing I have noticed from the ESPHome guides. When discovering devices, it has never displayed this:
Which as per the ESP guide for the MiFLora, it should. Is it a case that it can see the device, but isn’t recognising it as a MiFlora device? Running
when run from my Pi.
More detail please. Not showing up at all (no entity) or just not showing any data?
That sounds like it's the issue. If you don't see that message, the MiFlora is not sending the required BLE frames. Please observe log output for some more time.