Aqara zigbee sensor batteries

I have a question…
when the battery of a Zigbee Aqara sensor runs out of battery and stays for a day in addition to replacing the battery I have to re-pair it with ZHA.
Is this normal?
I thought it would be enough to just change the battery but it seems to just lose the association.

(I use ZHA with Conbee II)

Thanks

I don’t use zha but was replacing battery on one conntact sensor that was dead for a few months. As I replaced battery it reconnected it self to the network.
I know that without looking as it sends me message on my telegram account that is online.
But not all devices are built the same nor every integration work the same. Maybe it is zha problem maybe device problem. It is hard to tell.

and did your connection arrive immediately or did you have to wait some time?

It was immediately. When I changed battery it blinks and seconds after I got message on my phone that device is online.
But again it might be on device it self or zha.

I don’t know if this is a CobeeII, ZHA or Aqara issue. I don’t have any other Zigbee sensors to test at the moment.

thanks anyway

As you don’t have many zigbee devices you can try zigbee2mqtt.
Set it up, pair device to it.
Pull out battery and leave it for few minutes to see that device is offline.
Plug in battery and see will it came back on line.
This is the only way you can test things out.

If your device has a pairing button, press it briefly after changing the battery. That should be enough to trigger a heartbeat message to indicate it’s back on the network.

Otherwise, wait for ZHA to poll the device, but be aware that by default that could take around 25 hours for battery devices.

Really? That seems way too long. Better to ditch zha.

yes already pressed the button briefly… also to confirm that the battery was ok.

next time i’ll wait longer…

It’s configurable in both Z2M & ZHA. I seem to remember Z2M having similar timeouts for battery devices, but I believe the default was lowered.

Either way, it’s not a reason for the OP to switch just yet

And did that make the device update in ZHA?

no, nothing happens if I haven’t paired them first…

Weird. I’d suggest you look in the blueprint exchange section in this forum. There’s at least a couple of blueprints which will alert you when your batteries are running low.

Hopefully they’ll prevent this happening again if you manage to replace your batteries before your devices drop off

1 Like

It have some timeouts for battery devices on reporting status, without looking it up, but nothing as long as 25 hours.
Never the less if you change battery on device that is offline it should came back on line. Do you need to repair it or not it might be on the device it self but I’m not sure.
I replaced battery on some cheap 5 € tuya contact sensor and it came back on line instatly.

I was wrong. it’s Z2M which has a default timeout of 25 hours for battery devices.

ZHA battery devices time out after 6 hours by default.