I’m trying to improve on a device handler written for the Philips Hue Motion Sensor. I’d like to try and get the sensitivity adjustment support worked into it.
I think I should be able to do a zigbee.writeAttribute to adjust the appropriate sensitivity attribute. The motion sensing part of the device is against attribute 0x0406 I believe, but I can’t work out how to find out what attributes are available to set. Is this just something that Philips keeps secret to make it hard for people to integrate with the device? Or is there a way of discovering available attributes and getting their value?
When I do a readAttribute on the device, it’s not clear to me what type I get back. The documentation on the zigbee object isn’t clear what it is meant to return: http://docs.smartthings.com/en/latest/ref-docs/zigbee-ref.html#zigbee-readattribute
When I log the return value I get something like this: Sensitivity: [st rattr 0xCF91 0x02 0x0406 0x2683, delay 2000]
But I get that back no matter the attribute I request at the 0x0406 level:
zigbee.readAttribute(0x0406,0x0001) = [st rattr 0xCF91 0x02 0x0406 0x0001, delay 2000]
zigbee.readAttribute(0x0406,0x0002) = [st rattr 0xCF91 0x02 0x0406 0x0002, delay 2000]
Any help much appreciated if anyone knows how to get more info out of the device or what documentation I can look at to better understand querying an undocumented device?