Closed ChristophCaina closed 4 months ago
Hey there @jc2k, @ernst79, mind taking a look at this issue as it has been labeled with an integration (xiaomi_ble
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
xiaomi_ble documentation xiaomi_ble source (message by IssueLinks)
I am also having this problem. Not a huge deal but would be awesome if there's a way to fix this.
Would love to have battery stats as well. This device is also known as Xiaomi Flower Care Max (HHCCJCY09)
In BLE monitor, I didn't find battery data in the passive BLE advertisements. It might be available by connecting to the device, similar as we now do for the other plant sensor.
In BLE monitor, I didn't find battery data in the passive BLE advertisements. It might be available by connecting to the device, similar as we now do for the other plant sensor.
Let me know how I can assist :)
@Ernst79 anything we can do or test to expedite this?
I'm not familiar with setting up connections to BLE devices. I know there is some code already in xiaomi BLE to get the battery state for the other plant sensor. But I don't have the time and skills to add this, Hopefully someone else can help.
Hi,
I was going through the HA Logs for another issue, and found this information. I don't know, if this is helpful or not, but... maybe.... ?
2024-05-31 10:37:26.533 INFO (MainThread) [xiaomi_ble.parser] MiVer: 2, DevID: 0x3bc : GCLS002, FnCnt: 131, Request timing, Not bound, Old version certification, Capability: 0xd, No encryption, Object data: 0b100100, UNKNOWN dataobject in payload! Adv: 7120bc0383e2586d8d7cc40d0b100100
2024-05-31 10:37:27.528 INFO (MainThread) [xiaomi_ble.parser] MiVer: 2, DevID: 0x3bc : GCLS002, FnCnt: 85, Request timing, Not bound, Old version certification, Capability: 0xd, No encryption, Object data: 0b100100, UNKNOWN dataobject in payload! Adv: 7120bc035546596d8d7cc40d0b100100
2024-05-31 10:37:52.824 INFO (MainThread) [xiaomi_ble.parser] MiVer: 2, DevID: 0x3bc : GCLS002, FnCnt: 136, Request timing, Not bound, Old version certification, Capability: 0xd, No encryption, Object data: 0b100100, UNKNOWN dataobject in payload! Adv: 7120bc0388e2586d8d7cc40d0b100100
2024-05-31 10:40:39.018 INFO (MainThread) [xiaomi_ble.parser] MiVer: 2, DevID: 0x3bc : GCLS002, FnCnt: 95, Request timing, Not bound, Old version certification, Capability: 0xd, No encryption, Object data: 0b100100, UNKNOWN dataobject in payload! Adv: 7120bc035f46596d8d7cc40d0b100100
2024-05-31 10:40:39.838 INFO (MainThread) [xiaomi_ble.parser] MiVer: 2, DevID: 0x3bc : GCLS002, FnCnt: 74, Request timing, Not bound, Old version certification, Capability: 0xd, No encryption, Object data: 0b100100, UNKNOWN dataobject in payload! Adv: 7120bc034a0c606d8d7cc40d0b100100
And many others with the same payload but different FnCnt ...
I'm not familiar with setting up connections to BLE devices. I know there is some code already in xiaomi BLE to get the battery state for the other plant sensor. But I don't have the time and skills to add this, Hopefully someone else can help.
This needs to be done in Bluetooth-Devices/xiaomi-ble, I can probably create a PR over there.
See Bluetooth-Devices/xiaomi-ble#79
Released as 0.30.0 in xiaomi-ble
Released as 0.30.0 in xiaomi-ble
So, now ha needs to use 0.30.0 of the library, right?
Yep
Just a short message confirming that 0.30.0 fixes the issue:
It'll very likely be part of 2024.7, given the time of the merge (I patched my running container to use 0.30.0 for testing)
Curious, did it make 2024.7? Just updated, but see no battery stat yet.
yes, it did and it is working (except, my bt proxy has issues with the traffic...)
It might take some time, until the new sensor will be added.
Jupz
The problem
I have several Plant-Sensors which are working nicely with the Xiaomi Integration and expose their information over Bluetooth (device: HHCCJCY01) ... with Firmware version 3.2.6
I also have a large "Garden-Sensor" - device GCLS002 with Firmware 3.3.6 It can be charged per USB cable, comes with a fixed battery... I can see, that the battery SoC will be shown in the FlowerCare app, but it isn't available within the Xiaomi integration of HomeAssistant.
Any steps I can do to provide required information to implement the Battery Sensor for this device?
What version of Home Assistant Core has the issue?
2024.2.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
Xiaomi_ble
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_ble/
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