zway_cc_user_code_get does nothing?

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
novalis
Posts: 13
Joined: 29 Jun 2016 22:34

zway_cc_user_code_get does nothing?

Post 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).
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: zway_cc_user_code_get does nothing?

Post 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?
novalis
Posts: 13
Joined: 29 Jun 2016 22:34

Re: zway_cc_user_code_get does nothing?

Post 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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: zway_cc_user_code_get does nothing?

Post 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 ?)
novalis
Posts: 13
Joined: 29 Jun 2016 22:34

Re: zway_cc_user_code_get does nothing?

Post by novalis »

It returns 0, and nothing appears in the debug log.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: zway_cc_user_code_get does nothing?

Post by PoltoS »

Please issue in your browser /JS/Run/zway.devices[NN].UserCode.data (change NN to Id)
novalis
Posts: 13
Joined: 29 Jun 2016 22:34

Re: zway_cc_user_code_get does nothing?

Post 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}}
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: zway_cc_user_code_get does nothing?

Post by PoltoS »

This info is correct. Sure there are no logs when you execute this command? Can you show your code?
Post Reply