URL problem

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

URL problem

Post 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
krambriw
Posts: 46
Joined: 03 Apr 2013 18:14

Have you tried...

Post 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)


Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

hello,

Post 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 ??? :D
Why write "Instances [1]" ?
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

May be special Fibaro. I know

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

Here is the return message

Post 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
krambriw
Posts: 46
Joined: 03 Apr 2013 18:14

Try first

Post 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
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

hello, Thank you for your

Post 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
krambriw
Posts: 46
Joined: 03 Apr 2013 18:14

u have to type commandClasses

Post by krambriw »

u have to type


commandClasses
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

Hello,

Post 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
krambriw
Posts: 46
Joined: 03 Apr 2013 18:14

Wonderful, good to hear

Post by krambriw »

Wonderful, good to hear
Post Reply