I just bought a WTRFID Mini RFID Keypad with Z-Wave. The keypad is already in the Zwave database:
I included it successfully into my Zwave network. So far, so good
Question 1: it uses the USER_CODE command class, Chris already added it to the Zwave binding. In the Paper UI it isnāt possible to configure some user codes, the USER_CODE command class doesnāt show up when I edit the thing.
However, in Habmin itās there and I can enter and save user codes. Why isnāt it shown in Paper UI?
Question 2: So I configured a user code in order to disable the alarm. When I enter the code, it doesnāt seem to work, and the debug log of the Zwave binding shows the following.
22:56:00.068 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 28: Incoming command class USER_CODE
22:56:00.068 [DEBUG] [mmandclass.ZWaveUserCodeCommandClass] - NODE 28: Received UserCode Request
22:56:00.068 [DEBUG] [mmandclass.ZWaveUserCodeCommandClass] - NODE 28: USER_CODE_REPORT 0 is AVAILABLE
22:56:00.068 [DEBUG] [mmandclass.ZWaveUserCodeCommandClass] - NODE 28: UserCode(0) length is too long (12 bytes)
22:56:00.068 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 28: Got an event from Z-Wave network: ZWaveUserCodeValueEvent
22:56:00.068 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 28: Got a value event from Z-Wave network, endpoint = 0, command class = USER_CODE, value =
22:56:00.218 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 28: Application Command Request (ALIVE:DONE)
Iām wondering if the log message āUserCode(0) length is too long (12 bytes)ā maybe is the problem⦠I read that the stored user code is only 10 bytes long, but maybe this is a new version of the device, and now the code is 12 bytes long?
Does anybody have an idea how I could proceed with this issue? Or does someone else got that device up and running at home?
public static final int USER_CODE_MAX_LENGTH = 10;
Line 113:
if (size > USER_CODE_MAX_LENGTH) {
logger.debug("NODE {}: UserCode({}) length is too long ({} bytes)", getNode().getNodeId(), id, size);
size = USER_CODE_MAX_LENGTH;
}
This sounds like the source of my problem, right?
Are there some instructions around how to build the binding myself? Do I just have to build a JAR file out of the changed code and put this in the addons directory?
Yep - thanks - this is consistent with the documentation. So I think 10 bytes is the maximum as per the protocol - why do you think this device allows 12 bytes?
Well, when I read the RFID code or enter the user code via the keypad, this log message is generated⦠so I thought it might be the keypad sends 12 bytes instead of 10 bytes.
In this case I entered ā1234ā as the user code, the remaining 6 digits are substituted with
�
But when I press the āHomeā button, enter ā1234ā and press the āEnterā key, the above log message (12 bytes) is displayed⦠same thing when pressing āHomeā and placing the RFID chip in front of the reader.
Well, it is part of a debug log, but you filtered out the parts I need.
No - I started to learn when I was working in Bremen a few years back, but never got far enough. I have a friend who knows German well though (Mr Google Translate!).
No - I donāt need the whole log. Just the part around where youāve already provided is fine, but without the filtering. The filtering is removing information that is needed.