Page 1 of 1

zway_cc_user_code_get does nothing?

Posted: 11 Feb 2017 23:38
by novalis
When I call zway_cc_user_code_get() it returns 0, but does nothing. With debugging turned on I see no messages at all (i.e., no notification of a send command being queued up or anything).

Re: zway_cc_user_code_get does nothing?

Posted: 13 Feb 2017 14:58
by PoltoS
Can you share DH content of your UserCode CC (part of log with all DH set is ok) and show how you invoke it?

Re: zway_cc_user_code_get does nothing?

Posted: 19 Feb 2017 05:11
by novalis
Hmm... My apologies but I don't understand the terminology (I'm not very fluent with the zWave terminology). What do you mean by "DH"? I did a search through some log files and the string "DH" doesn't show up anywhere. Also, to be clear, when I submit the zway_cc_user_code_get() request, *nothing* appears in the log.

The call is made thusly:
zway_cc_user_code_get(zway, node_id, instance_id, user_id, NULL, NULL, NULL);

For what it's worth, I've read that the device being queried does not support retrieval of the user codes, so I didn't really expect this to work, but the zway library reports the device as supporting CC 99, so... Either way, if zway is just choosing to ignore my request, I would have expected a failure return code.

Re: zway_cc_user_code_get does nothing?

Posted: 27 Feb 2017 23:17
by PoltoS
Excuse, DH is Z-Way specific - DataHolder - a value in the Z-Way data tree. Call it "variable" So we need to have a look on zway.devices[NN].UserCode.data tree.

If nothing happens in the log, first check what it returns (may be it is != NoError ?)

Re: zway_cc_user_code_get does nothing?

Posted: 04 Mar 2017 23:26
by novalis
It returns 0, and nothing appears in the debug log.

Re: zway_cc_user_code_get does nothing?

Posted: 05 Mar 2017 13:44
by PoltoS
Please issue in your browser /JS/Run/zway.devices[NN].UserCode.data (change NN to Id)

Re: zway_cc_user_code_get does nothing?

Posted: 06 Mar 2017 00:23
by novalis

Code: Select all

{"invalidateTime":1486690068,"updateTime":1486690069,"type":"empty","value":null,"supported":{"invalidateTime":1486690068,"updateTime":1486690069,"type":"bool","value":true},"version":{"invalidateTime":1486690069,"updateTime":1486690070,"type":"int","value":1},"security":{"invalidateTime":1486690068,"updateTime":1486690069,"type":"bool","value":true},"interviewDone":{"invalidateTime":1486690068,"updateTime":1486690076,"type":"bool","value":true},"interviewCounter":{"invalidateTime":1486690068,"updateTime":1486690074,"type":"int","value":9},"maxUsers":{"invalidateTime":1486690074,"updateTime":1486690076,"type":"int","value":30}}

Re: zway_cc_user_code_get does nothing?

Posted: 06 Mar 2017 23:15
by PoltoS
This info is correct. Sure there are no logs when you execute this command? Can you show your code?