我的云麦mini2也是没有数据,已经将大佬的压缩包、on_ble_advertise都烧写进去了,还是不行
这个是logs:
[22:12:54][D][ble_adv:047]: New BLE device
[22:12:54][D][ble_adv:048]: address: 34:15:13:E7:B7:C6
[22:12:54][D][ble_adv:049]: name: YUNMAI-ISMW2
[22:12:54][D][ble_adv:050]: Advertised service UUIDs:
[22:12:54][D][ble_adv:052]: - 0x1310
[22:12:54][D][ble_adv:052]: - 0x5A05
[22:12:54][D][ble_adv:054]: Advertised service data:
[22:12:54][D][ble_adv:058]: Advertised manufacturer data:
[22:12:54][D][ble_adv:060]: - 0xB7C6: (length 6)
[22:12:54][D][yunmai_scale:062]: parse_message(): payload has wrong size (6)!
这个是yaml文件
esphome:
name: esp
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "oQTt7A/cdMVFNuigTBhM9QKpSEK751gM3Htn6X92Nko="
ota:
password: "9696703bd284b42e5c2fab06ea778c04"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sff Fallback Hotspot"
password: "OubaslR50RvM"
captive_portal:
external_components:
- source: mine
sensor:
- platform: yunmai_scale
mac_address: '34:15:13:E7:B7:C6'
weight:
name: "Yunmai Scale Weight"
impedance:
name: "Yunmai Scale Impedance"
esp32_ble_tracker:
on_ble_advertise:
- mac_address: 34:15:13:E7:B7:C6
then:
- lambda: |-
ESP_LOGD("ble_adv", "New BLE device");
ESP_LOGD("ble_adv", " address: %s", x.address_str().c_str());
ESP_LOGD("ble_adv", " name: %s", x.get_name().c_str());
ESP_LOGD("ble_adv", " Advertised service UUIDs:");
for (auto uuid : x.get_service_uuids()) {
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
}
ESP_LOGD("ble_adv", " Advertised service data:");
for (auto data : x.get_service_datas()) {
ESP_LOGD("ble_adv", " - %s: (length %i)", data.uuid.to_string().c_str(), data.data.size());
}
ESP_LOGD("ble_adv", " Advertised manufacturer data:");
for (auto data : x.get_manufacturer_datas()) {
ESP_LOGD("ble_adv", " - %s: (length %i)", data.uuid.to_string().c_str(), data.data.size());
}
|