# Battery alarm does not respect specific alarm threshold

**URL:** <https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062>\
**Category:** Questions & Help\
**Tags:** zigbee, homey-pro\
**Created:** [August 28, 2022, 7:07pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062 "2022-08-28T19:07:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remi\_J](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remi_j/32/12753_2.png) [@Remi\_J](https://community.homey.app/u/Remi_J)\
**Post date:** [August 28, 2022, 7:07pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/1 "2022-08-28T19:07:14Z")

</div>

On a zigbee aqara vibration sensor I changed the battery alarm threshold from 20% to 5%. (advanced parameters)

Battery level currently oscillates between 22 and 18% and I get the alarms each time the value goes bellow or over 20%.

Why ?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 28, 2022, 7:11pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/2 "2022-08-28T19:11:29Z")

</div>

Did you change the alarm threshold while keeping the device awake? Sensors sleep most of the time and I don’t think that Homey queues up commands for devices that are asleep (so when you set the threshold while it was sleeping Homey may _think_ it was updated when, in fact, it wasn’t).

To keep the device awake, short-press the pairing button once every few seconds.

---

<div class="post-metadata">

**Author:** ![Remi\_J](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remi_j/32/12753_2.png) [@Remi\_J](https://community.homey.app/u/Remi_J)\
**Post date:** [August 28, 2022, 7:21pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/3 "2022-08-28T19:21:39Z")

</div>

No, the device was not awake when I changed the value. I thought the alarm was a pure Homey threshold…

I’ll try that tomorrow.

Thanks.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 29, 2022, 5:57am UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/4 "2022-08-29T05:57:02Z")

</div>

> [@Remi\_J](#):
>
> I thought the alarm was a pure Homey threshold…

Good point. If that turns out the case, you should post an issue [here](https://github.com/TedTolboom/com.xiaomi-mi-zigbee/issues).

---

<div class="post-metadata">

**Author:** ![Remi\_J](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remi_j/32/12753_2.png) [@Remi\_J](https://community.homey.app/u/Remi_J)\
**Post date:** [August 30, 2022, 12:01pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/5 "2022-08-30T12:01:40Z")

</div>

I tried yesterday to change the threshold value while regularly clicking on the pairing button.  
The only result was loosing the device ☹. Homey has not been receiving data for 18 hours.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 30, 2022, 12:20pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/6 "2022-08-30T12:20:18Z")

</div>

Did you short-press or long-press? Long-pressing puts the device in pairing mode.

Try pairing it again with Homey (don’t remove it from Homey first).

---

<div class="post-metadata">

**Author:** ![Remi\_J](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remi_j/32/12753_2.png) [@Remi\_J](https://community.homey.app/u/Remi_J)\
**Post date:** [August 30, 2022, 12:31pm UTC](https://community.homey.app/t/battery-alarm-does-not-respect-specific-alarm-threshold/68062/7 "2022-08-30T12:31:50Z")

</div>

it was multiple short-press… may be it drained the battery and it is now too low to transmit the data to the Homey.

I also opened an issue. A rapid look at the code makes me guess that the value is hard coded to 20 (but I don’t know where to find the configuration value…)
