esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

Nodemcu-32s: unable to get 2 Bluetooth sensor with 1.16.2 #1922

Closed chemelli74 closed 3 years ago

chemelli74 commented 3 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

HomeAssistant core 2021.3.4

ESP (ESP32/ESP8266, Board/Sonoff):

ESP32 dev board

ESPHome version (latest production, beta, dev branch)

v1.16.2

Affected component:

esp32_ble_tracker / xiaomi_hhccjcy01

Description of problem: I have 2 sensors, but receive data only for 1.

Using Mobile app I can see both sensors updating their value.

Problem-relevant YAML-configuration entries:

esp32_ble_tracker:

sensor:

  - platform: xiaomi_hhccjcy01
    mac_address: 'C4:7C:8D:xx:xx:xx'
    temperature:
      name: "Xiaomi Sensore 1 Temperature"
    moisture:
      name: "Xiaomi Sensore 1 Moisture"
    illuminance:
      name: "Xiaomi Sensore 1 Illuminance"
    conductivity:
      name: "Xiaomi Sensore 1 Soil Conductivity"

  - platform: xiaomi_hhccjcy01
    mac_address: 'C4:7C:8D:yy:yy:yy'
    temperature:
      name: "Xiaomi Sensore 2 Temperature"
    moisture:
      name: "Xiaomi Sensore 2 Moisture"
    illuminance:
      name: "Xiaomi Sensore 2 Illuminance"
    conductivity:
      name: "Xiaomi Sensore 2 Soil Conductivity"

Logs (if applicable):

[07:41:56][D][sensor:092]: 'Xiaomi Sensore 2 Soil Conductivity': Sending state 537.00000 µS/cm with 0 decimals of accuracy
[...]
[07:46:09][D][sensor:092]: 'Xiaomi Sensore 2 Illuminance': Sending state 1697.00000 lx with 0 decimals of accuracy
[...]
[07:47:45][D][sensor:092]: 'Xiaomi Sensore 2 Moisture': Sending state 29.00000 % with 0 decimals of accuracy
[...]
[07:48:07][D][sensor:092]: 'Xiaomi Sensore 2 Temperature': Sending state 22.70000 °C with 1 decimals of accuracy
[...]
[07:50:33][D][sensor:092]: 'Xiaomi Sensore 2 Soil Conductivity': Sending state 523.00000 µS/cm with 0 decimals of accuracy
[...]
[07:51:33][D][sensor:092]: 'Xiaomi Sensore 2 Illuminance': Sending state 1937.00000 lx with 0 decimals of accuracy
[...]
[07:52:21][D][sensor:092]: 'Xiaomi Sensore 2 Moisture': Sending state 31.00000 % with 0 decimals of accuracy
[...]
[07:53:10][D][sensor:092]: 'Xiaomi Sensore 2 Soil Conductivity': Sending state 516.00000 µS/cm with 0 decimals of accuracy

Additional information and things you've tried:

chemelli74 commented 3 years ago

Seems that battery change create some issues to esp32_ble_tracker components somehow. Another report: https://github.com/esphome/esphome/pull/1288#issuecomment-711024953

In the end, was able to get it back again.

Closing.