Documentation wrong

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
PerM
Posts: 16
Joined: 21 Jun 2013 20:38

Documentation wrong

Post by PerM » 26 Jun 2013 21:57

The document at http://razberry.z-wave.me/docs/zway.pdf states:

This executes zway. in JavaScript engine of the server. As an example to switch
ON a device no 2 using the command class BASIC (0x20) its possible to write:
/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x20].Set(255)

However, the RaZberry does not accept the request; /ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x20] is undefined. If you instead call

/ZWaveAPI/Run/devices[2].instances[0].commandClasses[20].Set(255) (without the "0x") the command is accepted.

Bug or documentation error?

User avatar
PoltoS
Posts: 5081
Joined: 26 Jan 2011 19:36

the Command Class 20 [0x14]

Post by PoltoS » 26 Jun 2013 21:57

the Command Class 20 [0x14] does not exist in Z-Wave, so I'm surprised to read that it worked for you. Please provide logs from your RaZberry.

The documentation is correct. You can chekc the demo UI to see that it works.

PerM
Posts: 16
Joined: 21 Jun 2013 20:38

So you're saying that on the

Post by PerM » 26 Jun 2013 21:57

So you're saying that on the field commandClasses[NNN], NNN should be written in hex, i.e. 0x20 ?

When I do that the RaZberry doesn't accept the calls. Example:

http://192.168.10.153:8083/ZWaveAPI/Run ... ].Set(255)
results in: "Uncaught TypeError: Cannot call method 'Set' of undefined"
while http://192.168.10.153:8083/ZWaveAPI/Run ... ].Set(255) results in "null" (and the device is turned on.

What log is it you want? The one I can find is /var/log/z-way-server.log but it doesn't contain any informatiion from the JSON API as far as I can see (and when calling the API with [0xNN], nothing is logged while calling just [NN] the log shows the transactions for the executed command.

User avatar
PoltoS
Posts: 5081
Joined: 26 Jan 2011 19:36

Excuse for the late answer.

Post by PoltoS » 26 Jun 2013 21:57

Excuse for the late answer. you can write NN in hex or in decimal. Basic is 0x20 or 32, SwitchMultilevel is 0x26 or 38, and so on...

metrem
Posts: 2
Joined: 31 Jul 2013 03:44

Same problem with my fresh install on raspbian (31/07/2013)

Post by metrem » 26 Jun 2013 21:57

Hi all

I have the same probem. My CommandClass[0x20] don't work and i can't work openremote because they use BASIC commands
My Razberry software version is 1.3.1.

POST :
http://x.x.x.x:8083/ZWaveAPI/Run/device ... ].Set(255)
RESULT :
Work great and my light is up (FGD211 V1.9)

POST :
http://x.x.x.x:8083/ZWaveAPI/Run/device ... ].Set(255)
RESULT :
"Uncaught TypeError: Cannot call method 'Set' of undefined"

POST :
http://x.x.x.x:8083/ZWaveAPI/Run/device ... ].Set(255)
RESULT :
"Uncaught TypeError: Cannot call method 'Set' of undefined"

POST:
http://x.x.x.x:8083/ZWaveAPI/Run/device ... c.Set(255)
RESULT :
"Uncaught TypeError: Cannot call method 'Set' of undefined"

So...

In /var/log/z-way-server.log i can see when i start /etc/init.d/Z-Way :

[2013-07-31 00:55:21.990] Error returned from zway_fc_enable_suc(zway, TRUE, TRUE, NULL, NULL, NULL): Function class not supported by the hardware (-4)

It's normal?

metrem
Posts: 2
Joined: 31 Jul 2013 03:44

Solution

Post by metrem » 26 Jun 2013 21:57

Ok i have find a solution with PE ZANSTRA, Please see that : http://www.openremote.org/display/forum ... t-22874248

Post Reply