Command API dans script PHP

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
valdoison
Posts: 7
Joined: 04 Mar 2015 20:22

Command API dans script PHP

Post by valdoison »

Hello,
I need help to continue my discovery of Zway.
I installed Zway on a Raspberry + Razberry and included a Everspring outlet.
Using: 192.168.1.40: 8083 / ZWaveAPI / Run / devices [3] .instances [0] .commandClasses [0x20] .SET (255) on my browser, change this fact.
How to integrate this command in a script in PHP? script that will be on raspberry.
valdoison
Posts: 7
Joined: 04 Mar 2015 20:22

Re: Command API dans script PHP

Post by valdoison »

I found for control ..... commandclasses[0x20].Set (x).
By cons, when I send .....commandClasses[0x25] .Get(), I always get "null" whichever the status of my outlet.
What should we send to get the status of my outlet? I tried with "0x20" but I have the same answer.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Command API dans script PHP

Post by pz1 »

Read the Developers Documentation first, so you understand what you are doing.
(In your example you could use:
http://raspberry_IP:8083/ZWaveAPI/Run/devices[3].SwitchBinary.data.level.value)
valdoison
Posts: 7
Joined: 04 Mar 2015 20:22

Re: Command API dans script PHP

Post by valdoison »

thank you
I started in the use of an API, and I deciphered poor English.
If I do not find my answers in the "Developers Documentation" to manage a thermostat, a motion detector, a Minimote and keyboard PIR I would come back to forum
thank you in advance
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Command API dans script PHP

Post by pz1 »

valdoison wrote:I started in the use of an API, and I deciphered poor English.
It is a bit harsh indeed. In addition it is not yet complete either
I would come back to forum
You should definitely do so if you get stuck further down the road.
I did not intend to scare you off ;)
valdoison
Posts: 7
Joined: 04 Mar 2015 20:22

Re: Command API dans script PHP

Post by valdoison »

Thank you, for my power socket is perfect.
I attack now a motion detector SP814 Everspring.
I do not understand how to write orders, even after reading "Developers Documentation". I understand the importance of using "class sensorBinary 0x30" But with what instance and what parameters?
I have 2 problems:
Know the status of my detector (true / false).
Have the posibility to change some parameters that are inactive for changes directly in GUI Zway.

Is there a website somewhere where I could find examples of commands for Zway API?

I would like to know the process because after I have instaler an ST814 probe, a remote control and a PIR Minimote keyboard.
valdoison
Posts: 7
Joined: 04 Mar 2015 20:22

Re: Command API dans script PHP

Post by valdoison »

I found to display the JSON file to a device and to select my way to consult a value.
By cons, I have a problem running my motion detectors. This will be another post.
Post Reply