I installed three of these Aqara door sensors a little over a week ago: Aqara Door and Window Sensor, Requires Aqara Hub, Not Support Hubs from Other Brands, Zigbee Connection, Wireless Mini Contact Sensor, Compatible with Apple HomeKit, Alexa, Works with IFTTT (3 Pack) - Amazon.com
My HA network is running only ZHA starting from a SMLIGHT SLZB-06M and a mesh of about a dozen of these SONOFF smart plugs: SONOFF Zigbee Smart Plug with ETL Certified, S40 Lite 15A Smart Outlet, Zigbee Repeater, Works with SmartThings and Amazon Echo Plus, Hub Needed for Amazon Alexa 4-Pack - Amazon.com . I moved to channel 25 because the coordinator showed quite a bit less RF energy there than around ch 15. Scans this morning show that continuing with ch 15 just touching yellow (whatever that means) and 25 deeper into the green.
The door sensors paired pretty easily, and worked as expected. Really, everything I have tried so far seems to be pairing and working pretty easily including an Inovelli switch, a Moes remote and a Jinvocloud outlet strip.
The first problem: after about 36 hours, one of the door sensors went “unavailable.” I waited 24 hours and it didn’t come back spontaneously, so I pressed it’s button until the light flashed, it reconnected and ran fine for another 36-ish hours. The other two door sensors were working fine, 100% as expected.
Now, this morning, about 6 days after initially installing the door sensors, two of them are Unavailable and so far at least, pushing their buttons causes the lights to flash, but neither one is reconnecting. They were working as expected last night, but “went missing” around 3:20am according to the logs.
Looking in the SLZB-06M coordinator logs, I see this:
[02:20:04] taskZB | Client disconnected, id: 0
[02:20:06] taskZB | New client: 192.168.67.70 id: 0
[02:20:06] EventSender | [_handleNewClient] new client: 192.168.67.70
which corresponds with its Z2M/ZHA uptime of about 8 hours. The device uptime is over 20 hours, I did a manual firmware update on the SLZB-06M about 2pm yesterday, everything seemed to be working fine after the restart.
All I can guess is that the ZHA restart at 2:20am somehow lost the door sensors and they didn’t show up as missing until about an hour later?
But why, then, don’t they reconnect?
Somewhere, in Home Assistant I think, there’s a timeout interval for battery devices (and a shorter one for wired devices) - would it be worth extending that time to hopefully prevent dropping connection in the event of a missed “heartbeat”?
Any other suggestions are most welcome… I just want working door sensors.