From time to time community posts appear where a hub's Zigbee mesh goes down the toilet so I wanted to create a post about what I did to solve an issue that appeared the past few days.
I have a strong Zigbee mesh of comprised of 99 devices both mains powered switches and outlets and many battery based such as leak, contact, and motion sensors. Yesterday I noticed a few weird cases of lights not turning on or off as they should based on rules I have setup within HE but unfortunately this does happen from time to time so I just let it go. This morning things got a bit worse and I saw a few battery devices hadn't reported their battery level in the past 24 hours. So I reset them and attempted to re-paired them and a few of them wouldn't pair so I knew something was up with my mesh.
I came back to my computer opened the Zigbee logs to see if something was spamming the mesh - Settings \ Zigbee Details \ View logs. I wanted to give it some time to collect data so I left this tab open for several minutes and came back and then clicked on each device to visually see its log entries. One of them had a ton more items than the others.
As @bobbyD frequently posts, a single device can destroy your mesh and that was the case for me. After several minutes I saw one device had created several hundred log entries. The device was an Iris v2 Contact sensor on one of my doors. Inspecting the device details, battery was reporting 62% but I wanted to doublecheck it with my battery tester and low and behold it was almost dead. I installed a new one and boom everything was working well again. The devices that were refusing to pair earlier this morning paired right up.
So lessons learned:
- Don't trust battery levels reported by devices and have a good battery tester available to get a good reading. For example I have leak sensors that will report 0% for 6 months or more before the battery finally dies.
- Utilize the tools available to monitor mesh issues. The Zigbee and Zwave logs are great but you can also export this data to a MySQL database using NodeRed connected to the HE websockets if you have those setup.
- Devices can do strange things when the battery levels get low. I have many Iris v2 contact sensors and I don't remember one spamming the mesh like this situation.
