esphome / issues

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

Xiaomi Miscale v1 not sending weight values anymore #5967

Open Marco4223 opened 4 months ago

Marco4223 commented 4 months ago

The problem

Hi, I build up the "Xiaomi Miscale Sensors" project from ESPHome and it work great. But now it stops working.

I tried to rewrite the code for a single person. See details:

Which version of ESPHome has the issue?

ESPHome version 2024.6.2 compiled on Jun 25 2024, 07:40:20

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.6.4

What platform are you using?

ESP32

Board

ESP32-S3-WROOM-1

Component causing the issue

No response

Example YAML snippet

`...
esp32_ble_tracker:
  scan_parameters:
    # default is 320ms:
    interval: 160ms
    # default is 30ms:
    window: 60ms

binary_sensor:
  - platform: ble_presence
    mac_address: 'MAC address of scale'
    name: "Presence"

xiaomi_ble:

sensor:
  - platform: xiaomi_miscale
    mac_address: 'MAC address of scale'
    weight:
      name: "Xiaomi Mi Waage"
      id: weight_miscale
      on_value:
        then:
          - lambda: return id(weight_user1).publish_state(x);

  - platform: template
    name: Gewicht
    id: weight_user1
    unit_of_measurement: 'kg'
    icon: mdi:weight-kilogram
    accuracy_decimals: 2
`

Anything in the logs that might be useful for us?

I only can see this in my logs when someone steps on the scale:
`[09:30:48][D][esp32_ble_tracker:270]: Starting scan...
[09:30:48][D][binary_sensor:036]: 'Presence': Sending state ON
[09:30:48][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:30:49][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:30:49][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:30:50][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:31:00][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:31:02][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):
[09:31:57][D][xiaomi_miscale:154]: Got Xiaomi Miscale v1 (MAC address of scale):`

Additional information

No response

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.