tsaaek
January 19, 2023, 3:47pm
1
I am trying to change the autolock attribute on my Nimly lock but I can't get it to work.
(Door lock cluster 0x0101, attribute 0x0023)
I can read the attribute with
def cmd = [
"he rattr 0x${device.deviceNetworkId} 0x${device.endpointId} 0x0101 0x0023{}",
]
But i can't figure out how to change it. I have tried:
def cmd = [
"he wattr 0x${device.deviceNetworkId} 0x${device.endpointId} 0x0101 0x0023 0x01{}",
]
Am I doing it wrong?
try return zigbee.writeAttribute(0x0101, 0x0023, 0x23, 0x01, [:],0)
1 Like
tsaaek
January 19, 2023, 4:34pm
3
Thank you! This works!
Can you please explain what the added parts is for? 0x23 and [:],0
0x23 is the data type, which is required and missing from your wattr example
[:] are optional attributes, 0 is an intra command delay value tacked to the end, used when multiple commands are sent together.
tsaaek
January 19, 2023, 4:49pm
5
Thank you for clearing that up for me!
1 Like
system
Closed
January 19, 2024, 4:50pm
6
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.