Page 1 of 1
URL problem
Posted: 12 May 2013 16:29
by Pitt13
Hello,
from the beginning I can not seem to control my device with the URL.
The device 3 is fibaro FDG211
I run this command :
"
http://Raspberry IP: 8083/ZWaveAPI/Run/devices[3].instances[0].commandClasses[0x20].Set (255)"
or
"
http://Raspberry IP: 8083/ZWaveAPI/Run/devices[3].instances[0].commandClasses[0x20].Set (0)"
the result is :
"Uncaught TypeError: Can not read property 'instances' of undefined"
and the light does not illuminate
I tried all the API documentation razberry but nothing works.
Is this normal?
How to solve the problem?
Thank you
Have you tried...
Posted: 12 May 2013 16:29
by krambriw
...this syntax?
(The FGD 211 is a dimmer, rigth?)
/ZWaveAPI/Run/devices[2].instances[1].SwitchMultiLevel.Set(255)
/ZWaveAPI/Run/devices[2].instances[1].SwitchMultiLevel.Set(0)
hello,
Posted: 12 May 2013 16:29
by Pitt13
hello,
ok thank you, I'll test it tonight.
yes it's true the FDG221 is a dimmer, why did not I think ???

Why write "Instances [1]" ?
May be special Fibaro. I know
Posted: 12 May 2013 16:29
by pz1
May be special Fibaro. I know from the dual switch FGS 221, that they use instances[1] for the first channel, and instances[2] for the second. I suggest just try both 1 and 0.
Here is the return message
Posted: 12 May 2013 16:29
by Pitt13
Here is the return message google chrome with
/ZWaveAPI/Run/devices[3].instances[1].SwitchMultiLevel.Set(255) :
"Uncaught TypeError: Cannot read property 'instances' of undefined"
I do not understand why it does not work even with instances 0 or 2
Try first
Posted: 12 May 2013 16:29
by krambriw
Try first
/ZWaveAPI/Run/devices[3]
and check what is the result
If successful, try then
/ZWaveAPI/Run/devices[3].instances[1]
and then
/ZWaveAPI/Run/devices[3].instances[1].commandClasses
to check what command classes it supports
hello, Thank you for your
Posted: 12 May 2013 16:29
by Pitt13
hello, Thank you for your help
With /ZWaveAPI/Run/devices[3] return google chrome is lots of data
with /ZWaveAPI/Run/devices[3].instances[1] return google chrome is "null"
but when instances is [0] return google chrome is lots of data with commandsClasses
And /ZWaveAPI/Run/devices[3].instances[0].commandsClasses return ggolge chrome is "null"
but /ZWaveAPI/Run/devices[3].instances[1].commandsClasses return ggolge chrome is "Uncaught TypeError: Cannot read property 'commandsClasses' of undefined"
My Razberry also tells me expert commands mode:
"Error: expert_commands_list_not_provided_by_server"
thank you
u have to type
commandClasses
Posted: 12 May 2013 16:29
by krambriw
u have to type
commandClasses
Hello,
Posted: 12 May 2013 16:29
by Pitt13
Hello,
everything works! : D: D: D
/ ZWaveAPI / Run / devices [3]. Instances [0]. SwitchMultilevel.Set ("value")
and not
/ ZWaveAPI / Run / devices [3]. Instances [0]. SwitchMultiLevel.Set ("value")
big difference between "L" and "l" of "level"
A big thank you for your help
Pitt13
Wonderful, good to hear
Posted: 12 May 2013 16:29
by krambriw
Wonderful, good to hear