Sleep time

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
BjornWater
Posts: 3
Joined: 27 Feb 2013 13:37

Sleep time

Post by BjornWater »

Hi,

We are trying to set the sleeptime of a zwave device with the folowing command.
/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x84].Set(255

But it always fails even when we try it on the software that runs with the zwave-me server setting sleeptime fails.

Is there any fix for this?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

You need to specify Set

Post by PoltoS »

You need to specify Set(notifiedNodeId, sleepInterval). Fist argument should usually by controller (or bradcast 255)
krambriw
Posts: 46
Joined: 03 Apr 2013 18:14

Are you sure? When reading

Post by krambriw »

Are you sure? When reading the api doc it says:Command Wakeup SetSyntax: Set(interval, noticationNodeId, successCallback = NULL, failureCallback= NULL)Description: Send Wakeup SetParameter interval: Wakeup interval in secondsParameter noticationNodeId: Node Id to be notied about wakeupReturn: data holder "interval" and "nodeId" is updated
BjornWater
Posts: 3
Joined: 27 Feb 2013 13:37

Poltos which one is the

Post by BjornWater »

Poltos which one is the correct one?
BjornWater
Posts: 3
Joined: 27 Feb 2013 13:37

We just got it working.

Post by BjornWater »

We just got it working.
its indeed what you say krambriw we changed the value of one but because his sleeptime was really high we had to manually wake up the device to get it to load the new config
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

You are right, it is interval

Post by PoltoS »

You are right, it is interval and then notificationId.

Note, that documentation is made automatically from the code, so here only the human (me in this case) can be wrong ;)
Post Reply