Page 1 of 1

Direct HTTP API to Z-Wave device nodes?

Posted: Saturday 26 March 2016 14:21
by Ben0it
Hello,

For example, I am trying to change the color of the light ring on my Fibaro FGWPE sockets. A JSON API would be very convenient to automate commands to Z-Wave nodes. Today, I'm using the Open-Z-Wave control panel indirectly, which does not give repeatable results.

This would be a line like this:

http://127.0.0.1:8080/ozapi.htm?command ... value=0x02

Result would be a JSON set like { "status": "OK" }

Best Regards,

Re: Direct HTTP API to Z-Wave device nodes?

Posted: Saturday 26 March 2016 15:49
by Egregius
You want to change the color of the ring by script?
The commands are available in OZWCP. should look in my code but I think I have a PHP function for that.

Re: Direct HTTP API to Z-Wave device nodes?

Posted: Saturday 26 March 2016 17:05
by Ben0it
Hi Egregius,

Thanks for your reply, and indeed, you helped me with it there :)

However, the process fails randomly, the authentication part returns a "ERR" and I cannot send commands anymore, despite me putting a sleep(1) between each url.

I think a more global Open Z-Wave API would be helpful to talk to Z-Wave nodes directly via URLs.

Best Regards,

Re: Direct HTTP API to Z-Wave device nodes?

Posted: Saturday 26 March 2016 17:09
by Egregius
Have a look at my github, functions are improved/added.

Re: Direct HTTP API to Z-Wave device nodes?

Posted: Saturday 26 March 2016 21:47
by Egregius
Will respond in that topic then ;)