-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readds the battery level for xiaomi_hhccjcy01 #1288
Readds the battery level for xiaomi_hhccjcy01 #1288
Conversation
@ahpohl Was there a specific reason for removing the |
Does this device broadcast the battery level? If it does, than the battery level was removed by mistake and I do apologise. I do not have such a device for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
I also do not have one but others have said it was working before 1.15.0 which is when this was finally released. |
HHCCJCY01 has no battery info since firmware v3.2.1 |
Thanks for clarifying. In that case it is better to continue supporting the battery level info for the older firmware. |
Thanks @javicalle |
Just to keep original reference: esphome/issues#107 (comment) |
Hi all, It seems that these sensor no longer work with esphome, friend and I purchase a few at the beginning of the year that work perfectly which was listed under the HHCCJCY0. We recently purchase new units same make and model but the different was in the mac address with starting digits C4:7C:8D:xx:xx:xx, previous ones were 80:EA:CA:xx:xx:xx. the new unit get detected by the BLE tracker show up as Flower Care but no date is transmitted or seen by esphome. All 4 new units same make model different supplier. |
@pablobolomey Could you please enable verbose logging output so I can see what the new HHCCJCY0 sensors are broadcasting. It could be that Xiaomi has changed something in the device firmware which makes it incompatible with esphome. If possible use current esphome-dev so we have the same version.
|
Hi @ahpohl , I have same sort of problems with Mi Flora ESPHome as @pablobolomey but come to different experience : I have 5 Mi Floras (Xiaomi_hhccjcy01 devices) with a esp32doit-devkit-v1 connected and they were working fine till recently. One with 80:EA:CA:xx:xx:xx and 4 with C4:7C:8D:xx:xx:xx addresses, also with 2 different firmwares (versions 3.2.2 and 3.2.4). Working fine although battery didn't last a year (as promised by Mi Flora adds) but only 2-3 months. There my problems start; after battery changes in some of the Mi Flora's, they (some) didn't came back in the ESPHome setup (two with C4:7C:8D:xx:xx:xx addresses). I also could not trace them in the ESPhome log. Strange thing: I see 4 of my 5 Mi Flora's back in original Android App "Flower Care" and in an open source app "Watchflower". The one with address 80:EA:CA:xx:xx:xx is not available ("Offline") in the apps but is present in ESPHome!! And two others (as told above) not in ESPhome. In a "BLE Scanner" app I can see all 5 of them alive with some sort of advertising! I drives me nuts!! It looks like a battery change is sometimes lethal for BLE communication, or Mi Flora devices change BLE communication parameters for some reason. So I also would like to test the ESPHome setup and BLE behaviour further, as I want to expand my range of Mi Flora's and use ESPHome with this (already made an order for Mi Floras before all of this happened). My question; I tried to reflash my esp32doit-devkit-v1 in ESPHome (dev version) with "logger: level: VERY_VERBOSE" but it gives compile errors. I can use (compile) with level: VERBOSE (and this works) but not with VERY_VERBOSE (compile errors) and no working firmware. Are you sure VERY_VERBOSE works with current dev level? Other question: would it be helpfull to change some of the "esp32_ble_tracker: scan_parameters:" ? The BLE communication between devices seems to me much more complicated then first expected. Sorry for my long message, but thanks for any help! EDIT: The "logger: level: VERY_VERBOSE" does not work in the non dev version also. |
Hi, I have the same problem with my Mi Flora also with c4: in the beginning of the MAC. |
Still having compile issues with VERY_VERBOSE logging? Link to esphome-dev documentation preview: https://deploy-preview-777--esphome.netlify.app/components/sensor/xiaomi_ble.html
For testing purposes you could just add one of the sensors which do not show up anymore and paste the relevant parts of the debug output here. Having just one sensor improves stability with VERBOSE_LOGGING. You could also try to lower the window parameter to 60 or 30 ms and see if that helps improving stability. |
Hi! I fix my problem with the MAC of C4:... by upgrading the Firmware to 3.2.1. Than I get it both in the Flower Care and in the HA. |
How did you upgrade the firmware
Pablo
…On Tue, 20 Oct 2020 at 18:04, 4xJ ***@***.***> wrote:
Hi! I fix my problem with the MAC of C4:... by upgrading the Firmware to
3.2.1. Than I get it both in the Flower Care and in the HA.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1288 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4LSXIKR2JY7S5ARLKDY5LSLUY65ANCNFSM4RS4ZTHA>
.
|
Hi, I use the Flower Care app. The app found the C4 without problem and than you can Hardware settings and Upgrade. |
Will try that
Thanks
…On Tue, 20 Oct 2020 at 18:58, 4xJ ***@***.***> wrote:
How did you upgrade the firmware Pablo
… <#m_8752914555772500506_>
Hi, I use the Flower Care app. The app found the C4 without problem and
than you can Hardware settings and Upgrade.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1288 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4LSXJCIKJSHLTV6ZX7D6LSLU7JDANCNFSM4RS4ZTHA>
.
|
Hi @ahpohl, seems I use a different esp board (DOIT ESP32) , mine here. Followed your advise so my yaml is:
When I compile this (dev and current version) with VERY_VERBOSE my compile error is this Without VERY_VERBOSE it compiles and runs without problem.
EDIT: I tried to compile it with "board: nodecmu-32s" in the .yaml but this gives the same error. Error in the line "compiling/..../esp32-hal-i2c.c.o". |
Mine are firmware versions 3.2.2 and 3.2.4. I see 4 of 5 in Flower Care (no relation to mac address it seems), but I cannot upgrade them using Flower Care > Hardware > Upgrade. Recently I started using the Watchflower app (in Android) which is open source and doesn't use any cloud service in China. I really like this app as it gives IMHO a better view and less hassle. But of course there is no upgrade possibility. My experiences with firmware 3.2.4 are so far (they behave flakey) that I really would like to downgrade Mi Floras to 3.2.2 but that seems impossible. I also tried to write the company (for help) on it's email adres (which is in playstore: kefu@) but it doesn't exist (anymore?). So be carefull to upgrade as there is no way back (never found a way to reset the Mi Flora's). BTW, my Mi Flora's are international ones and bought here. |
All this experimentation seems to have awakened the 2 'sleeping' (in ESPHome) Mi Floras more or less. To add some info... (for insight) Perhaps this histogram gives some idea about the behaviour. It's a temp. histogram of plants in the same room. You can see that some advertise very often (Cal Roseopicta, Epipremnum), one advertises incendental (Spathiphyllum), some switch from often to incidental (Cal. crocata, Zamioculcas). The last ones where the sleeping ones (disappeared in ESPHome). I've addes the firmware versions to the names, and the only one with mac 80:ea;ca, others have C4:7C:8D addresses. It is quite difficult for me to pinpoint what is going on from the data, and it all started after few battery changes (e.g. the Epipremnum, the other battery changes I forgot). And to add to this is that ESPHome listens passively to the BLE advertisements, but the apps Flower Care and Watchflower do interactions with the devices and request info. |
The compilation output looks fine and the firmware file was produced and uploaded correctly. It couldn't connect directly afterwards due to wifi not fully connected yet. Sometimes it will take some time until wifi is connected after firmware upload. To get the debug output later you just do
and select the serial console (if connected) or via network. Altenatively, you could use any terminal program (picocom or minicom with 115200 baud) where you are able to dump the output to a file. |
Sorry, I'm not sure how to do that in the ESPHome add-on in HASSIO. Thanks for the reaction. |
Can you guys please move this chat to an issue |
Description:
battery_level
was removed in #1027 with no explanation. It was never removed from the docs though. This adds the option back.I am unable to test as I do not have the device.
Related issue (if applicable): fixes esphome/issues#1485
Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#
Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: