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?
Documentation wrong
the Command Class 20 [0x14]
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.
The documentation is correct. You can chekc the demo UI to see that it works.
So you're saying that on the
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.
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.
Excuse for the late answer.
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...
Same problem with my fresh install on raspbian (31/07/2013)
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?
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?
Solution
Ok i have find a solution with PE ZANSTRA, Please see that : http://www.openremote.org/display/forum ... t-22874248