I just bought a couple new ZigBee contact sensors and when they are discovered they show as generic devices. I can change the driver type to the Generic ZigBee contact sensor and the open/close seem to work fine, but the temp doesn't appear to be working and no Tamper alert. I am no stranger to coding so I figured this is as good time as any to start learning to create custom ZigBee drivers. I have read the Hubitat and Smartthings documentation and I have downloaded the ZigBee Cluster Library document.
So based on what the sensor offers I am using these capabilities:
But when I try to trigger and Open/Close action I see this in the log
enroll request endpoint 0x01 : data 0x0015
I know that that cluster is the contact switch, but what am I missing? I have tried binding to that cluster with no luck. Any help with this would be greatly appreciated and if anyone has some helpful tips for along my journey.
OK, I think I have just about everything working now. The contact, tamper, temperature and I think I have the battery working, but not sure. It uses the 0x0020 cluster which is for battery Voltage. I found a couple examples online, but the math is not working out in my head. The ZigBee document says that 0x0020 should be in units of 100mV. Does anyone have a working example of how to get the percent for the battery life?
I also see that all three version I have, has cluster 0x0B05 which I believe is for diagnostics, does anyone have any information on how to implement that?
And the latest version has cluster 0xFD50, but I can't find any information on that one. Any ideas? When I call read attribute I get this in the log:
Thanks for getting back to me so quickly. That's pretty much the same code formula I found. I'll just have to wait for the batteries to wear down a bit. I will definitely check out those other posts. Any information is great.