-
Notifications
You must be signed in to change notification settings - Fork 23
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
Battery life #37
Comments
Each Zigbee OTA update requires 20 times more power than BLE OTA. On Xiaomi LYWSD03MMC B1.4 a month ago it was 2.82V. Today 2.79V. Before this, the battery worked for several months in the BLE version. |
OK. Is there some way to influence the update frequency? I did not found in documentation. |
Compared to the BLE version with default settings (transmission every 2.5 seconds, sensor polling 10 seconds), Zigbee consumption (communication step every 10 seconds, sensor polling 10 seconds) is one and a half times 1.5 times higher. Each iteration of transmission and reception in Zigbee requires 4 times more energy than in BLE. And since Zigbee uses a more powerful signal for transmission in dBm, the differences become even greater. In Zigbee firmware, the sensor is polled every 10 seconds to display and analyze measurements. For stable operation in Zigbee 3.0, the communication interval is considered normal up to 7 seconds. If the interval is longer, the connection with the device will be unstable. When using any of the Zigbee chips, significantly more battery power is required to meet the standards and functionality of routers and coordinators on the market than devices operating in the Bluetooth v5. |
I do not have long-term records of CR2032 battery consumption on thermometers with Zigbee firmware. Charts start from the moment of flashing. |
OK, thanks for detailed info. |
I have been using the bluetooth version for a couple of months already. I don't think I ever swapped the preinstalled battery. I flashed 9x LYWSD03MMC with the zigbee version last week. Currently the batteries report (in zigbee2mqtt) as 92%, 88.5%, 100%, 86%, 100%, 100%, 98.5%, 88% and 100% (obviously this is after flashing them with the custom bluetooth firmware to then reflash the zigbee firmware).
Are you saying we should almost always prefer to operate these devices with bluetooth? Personally I'm using a lot of zigbee lamps / switches for cost reasons (although I consider switching buttons to cheap bluetooth camera shutter switches). I also don't want WiFi devices for security/privacy reasons. I reflashed the zigbee version for a number of reasons: If bluetooth is truly better, then I'd probably return to that. I think it would be great if the README explained the actual benefits. Things like:
Personally I don't care too much about the display. I'd rather have a long battery time and the measurements taken every 60 seconds or so. I'd be much more concerned with the accuracy of the displayed values (so I'd like to see 2-point calibration mode so the device displays more accurate values). I think a hybrid mode would also be cool, where it would display the clock for 30 seconds or so, and then when the next temperature measurement is ready, it would display the temperature again.
I'm not sure what you mean here? Doesn't linux support them? Also if they are so good, why wouldn't they be supported in Linux? |
I haven't put much effort into the Zigbee firmware. The example provided to everyone in the Telink SDK is used as a basis. http://wiki.telink-semi.cn/wiki/chip-series/TLSR825x-Series/
And I previously described that this would not be a very correct path for thermometers with CR2032. But there was an advertisement about devbis firmware. And I’m just trying to optimize consumption and expand functions.
This greatly limits the scope of application of these thermometers. According to Lewis Carroll, a clock that does not go at all is better: it shows the correct time twice a day, while a clock that is slow one minute a day shows the correct time only once every two years.
I don't analyze global conspiracies, corporate struggles and other wars. :) I only know that the Bluetoth standard is open, and in stores for almost ten years there have been cheap chips and adapters available to everyone that work in new versions of Bluetooth. But there is no implementation of their support in Linux. This limits the Web bluetooth API in Chrome and much more. Only Android has support for the new Bluetooth standards in its low-level API. There the kernel is fixed by Google. |
Measuring and displaying does not significantly affect battery consumption. And it does not create large pulsed currents, which have a bad effect on the operating life of CR2032 series batteries. Transmission current and response wait in the Zigbee protocol have a much greater impact. Any device with Zigbee was always more expensive, which affected other protocols. Why sell a product cheaper if you can flash Zigbee and increase the cost?
Why are smartphones equipped with a BLE chip that has full Zigbee hardware support, but do not work with Zigbee devices? |
It is impossible to answer these questions unambiguously. Xiaomi specifically does not install a capacitor in the power circuit so that the use of the battery is limited to 60% of its capacity. At a level of 40% of the actual capacity, the battery is discarded, since with a pulse of transmission current there is no longer enough voltage to operate the chips used. Chip manufacturers and thermometer developers provided space for installing a capacitor, but marketing... Measured average consumption on Xiaomi LYWSD03MMC B1.4:
Measurements were taken using the default setting (BLE).
@JayFoxRox - I gave you some of the use cases. The battery capacity is unknown and the effect of pulsed currents on the battery is unknown. Can you write instructions? |
So your zigbee firmware showed almost the same power consumption during normal operations (not including update / flashing) - is that the correct intepretation? |
Not really. 14 µA is obtained if there is practically no transmission between the thermometer and the coordinator. |
I'm seeing around 1mA with all your firmwares after interview with Sonoff CC2652P dongle on all my LYWSD03MMC. |
For measurements, the cheapest nRF Power Profiler II is on sale. Has dynamic measurement errors, but this is enough for tests. |
Have you done trials with adding such a capacitor? Would there actually be a significant improvement? |
https://www.ti.com/lit/wp/swra349/swra349.pdf @tristone-cz - What version of the thermometer?
Not a "Aqara" worked for a year. The limit was 10 months. In other cases - less.
What is your case? |
Aqara lumi.weatherDoes not comply with Zigbee 3.0. Sleep - 1.8 µA When transmitting nothing - Average - 12.5 µA When data is being transferred: The capacitor is installed in the power circuit. But it doesn’t help the outdated nRF chip much, because... small capacity. Xiaomi LYWSD03MMC B1.4Sleeping processor - less than 1.8 µA. In total, depending on the model (B1.4..B2.0), the minimum current is 6..10 µA. Added to this is work. Disable screen display in the options, and the BLE version will consume less battery than the sleeping Aqara. PS: In the "BZdevice" version, consumption reduction is achieved due to the mismatch of intervals between transmissions of a message packet for Zigbee 3.0. Data packets are transmitted without standard intervals, just like LUMI does... |
Based on the measurements taken, you can calculate how much LUMI will consume when transmitting measurements every 180 seconds. |
@pvvx I am using the LYWSD03MMC, version not exactly sure. I think the FW version during flashing was 1.7 or 1.8 |
I have no calculations to show for but I have multiple aqara zigbee temp/humidity sensors running for >1yr (even in the freezer at -18C) |
Freezer with iron walls. BLE: LE Long range: THB2 variant with measurement transmission every 2.5 seconds. The RTL BT adapter can't keep up.
|
@alexw1982 - Tell me how to control heating using the Aqara sensor? Or how to turn on the lighting when a door is opened using a Zigbee sensor? |
I'm wondering the same thing. I currently have just one sensor that I serial flashed with the latest Zigbee firmware, and the battery is draining rather fast; first one was the included chinesium, the second was a Varta. |
|
What's in reality? Z2M and ZHA set their own settings. |
Sorry for the silly question but what is recommended value for both capacitors ? |
4.7..47 uF |
with 0.1.1.8 no more battery drain for me. |
I have Xiaomi LYWSD03MMC for 2 months now on an old battery previously used in the BLE version. All versions of Zigbee and other debugging options were flashed. I tried to turn off the coordinator for a couple of days (the biggest consumption when searching for a coordinator). @muzzy124 - опишите какой используется координатор сети Zigbee. Для отладочных вариантов термометров (про которые описано выше) я использую Xiaomi Gateway 3 в ZHA. |
i got ZHA with sonoff usb dongle cc2652 and a bunch of noname tuya relays and plugs |
Me few cents guys. |
I ordered LYWSD03MMC from several other stores. I hope to get B1.6. Sent by mail. I'll check it when they arrive. |
I can send my LYWSD03MMC HW:B1.5 device from Russia for testing. |
I had another two B1.6 so flashed to ATC 4.6 and placed to the same location at those Zigbee ones. Let's compare. |
Test Xiaomi LYWSD03MMC B1.5. Xiaomi LYWSD03MMC B1.5 has the highest consumption in sleep mode (> 8 µA) and when polling the sensor. In ZigBee mode, consumption depends on the coordinator. If it does not know how to work in Zigbey 3.0 or is terribly slow, then the consumption will be terrible. PS: The topic about consumption in Zigbee mode can be closed. The reasons for the increased consumption are known and do not relate to the thermometer firmware. |
Versions below 0.1.1.8 have all interfaces: Touchlink commissioning, ZCL_GROUP. |
Уже давно понятно, что c sonoff всё плохо. |
It is possible to insert a larger battery into this sensor, it will take a CR2450 battery |
@slingel - what version (B1.4..B2.0) of the thermometer? |
1.6 |
Next test: Firmware ZigbeeTLc version 0.1.1.9, Xiaomi LYWSD03MMC HW: B 1.4. Almost two times less than in the version devbis/z03mmc#11 |
Any advice on settings for firmware 4.7 when it comes to max power savings? |
are there any recommended reporting values for z2mqtt ? default is fine? |
All settings depend on the necessary conditions for solving the problem in which this sensor is used. If you need an indicator that you look at, then there is no need to transmit data from it. B Zigbee Network is not reliable. Zigbee is suitable only for executive devices, where consumption is not particularly important compared to the controlled load. And for sensors is not at all suitable. |
TS0201 - 2xAAA cheapest alkaline batteries. |
Hi all.
I had no troubles to upgrade the LYWSD03MMC to custom BLE and then to 1.1.4.
Z2M works fine, even upgrade to 1.1.7 was relatively smooth.
But what about battery life?
The original battery was depleted in 10 and 12 days (two devices).
Do you have the same experience?
Or there is something wrong with my ones?
Both are placed very near the Zigbee stick, LQI is around 150-200.
The text was updated successfully, but these errors were encountered: