emericg / WatchFlower

A plant monitoring application that reads and plots data from compatible Bluetooth sensors and thermometers like Xiaomi 'Flower Care' or Parrot 'Flower Power'
https://emeric.io/WatchFlower
GNU General Public License v3.0
195 stars 29 forks source link

[Feature Request] Show battery level #80

Closed howels closed 11 months ago

howels commented 1 year ago

Please add battery status for the Xiaomi flower care devices. These have monitoring of the internal CR2032 battery status.

Would be very useful to know when to replace batteries.

Using the Android app on Android 13

emericg commented 1 year ago

By the way, sorry I never responded but I didn't understand your request. Battery levels have always been in the app, in the main screen and in the sensor infos?!

Screenshot_2023-09-28-18-22-58-569_com emeric watchflower

Screenshot_2023-09-28-18-23-16-230_com emeric watchflower

howels commented 1 year ago

By the way, sorry I never responded but I didn't understand your request. Battery levels have always been in the app, in the main screen and in the sensor infos?!

Screenshot_2023-09-28-18-22-58-569_com emeric watchflower

Screenshot_2023-09-28-18-23-16-230_com emeric watchflower

I do see the battery level on one device but only one out of 4 identical devices shows the battery level. Also, on Android the app somehow overlaps with my status bar which nothing else does. Screenshot_20230928-174550 Screenshot_20230928-174537 Screenshot_20230928-174451

emericg commented 1 year ago

I do see the battery level on one device but only one out of 4 identical devices shows the battery level.

I'm not sure what to say about that, the battery level won't show if the value from the flower care is really weird (not in the 0-100% range), so it's possible the problem is on the sensors.

Also, on Android the app somehow overlaps with my status bar which nothing else does.

Damn I'm really sorry about that, it's been a really tricky issue on the last couple release. I guess your phone has no notch? I'll be doing a release in the next couple days.

howels commented 1 year ago

I do see the battery level on one device but only one out of 4 identical devices shows the battery level.

I'm not sure what to say about that, the battery level won't show if the value from the flower care is really weird (not in the 0-100% range), so it's possible the problem is on the sensors.

Also, on Android the app somehow overlaps with my status bar which nothing else does.

Damn I'm really sorry about that, it's been a really tricky issue on the last couple release. I guess your phone has no notch? I'll be doing a release in the next couple days.

Hmm. I used to get erroneous low battery readings just after replacing the CR2032 cells, possible that the sensor is incorrectly calibrated.

I run a Sony Xperia 1 III, no cutout here.

emericg commented 1 year ago

Hmm. I used to get erroneous low battery readings just after replacing the CR2032 cells, possible that the sensor is incorrectly calibrated.

Yeah that would certainly make sense, either the FlowerCares are not reading the battery voltages correctly, or the CR2032 cells you are using are not working in the usual range (but that would be weird though).

I run a Sony Xperia 1 III, no cutout here.

Ok I've pushed a new version to Android beta channel, it will be published as soon as it passes the store automated checks, can you take a look at it and see if it fixes your issue?

howels commented 11 months ago

Apologies for not replying - I see a battery warning now on one device. I think my units have inaccurate voltage sensors or something.

emericg commented 11 months ago

No problem, the battery problem probably wasn't like we discussed, and the header problem has been solved by the 5.3 release a while ago, that's why I closed this issue.