home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

BTHome: Xiaomi Temperatur Sensors show various nonsens value/ parameters like gas, ppm and more #123552

Open saschaabraham opened 1 month ago

saschaabraham commented 1 month ago

The problem

I have a few xiaomi ble temperature sensors (LYWSD03MMC), flashed with the latestest BTHome firmware.

The temperature/ humidity is shown as expectect, but some sensors also have gas, ppm or energy? This is not correct. The last screen is the model of the temperature sensor showed by the tlink-flasher via bluetooth.

image image image image image

What version of Home Assistant Core has the issue?

core-2024.8.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BTHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bthome/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @ernst79, mind taking a look at this issue as it has been labeled with an integration (bthome) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bthome` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bthome` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bthome documentation bthome source (message by IssueLinks)

saschaabraham commented 1 month ago

I have removed the devices and readded them. Now the wrong entities are gone. Maybe it depends on the false encryption messages i received a few days before from other ble sensors (MI pland sensors). I don't now, if a corrupted ble package can create something like this...

Ernst79 commented 1 month ago

In theory, that can happen, yes. Never actually seen it happen though.

saschaabraham commented 1 month ago

Well, it happend again. I got a message, that a plant sensor had an encryption error image

and one of the temperature sensors now has one more entity (gas), which is wrong...

image

How can i support, to get this done?

pvvx commented 2 weeks ago

ATC_MiThermometer already includes extended versions of alternative firmware. For example, connecting a pressure sensor, 2 x MY18B20, INA226 and similar... Such variants can be compiled from source code by specifying additional parameters.

Add 2 x MY18B20: image

Water tank sensor: image

...


In theory, that can happen, yes. Never actually seen it happen though.

This always occurs when the firmware is changed to a new one, with additional parameters. How to delete old displayed parameters from the database?

image

No new parameters for other devices were added. Only in case of firmware update with advanced capabilities with constant use of more than 60 BLE devices with reception on two USB-BT adapters. One on BT4.2, the second in LE Long Range mode for reception from distant sensors...