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,
Direct HTTP API to Z-Wave device nodes?
Moderators: leecollings, remb0
- Ben0it
- Posts: 17
- Joined: Sunday 31 January 2016 21:22
- Target OS: Linux
- Domoticz version: 3.6745
- Location: France
- Contact:
Direct HTTP API to Z-Wave device nodes?
-
Benoît.
Benoît.
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Direct HTTP API to Z-Wave device nodes?
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.
The commands are available in OZWCP. should look in my code but I think I have a PHP function for that.
- Ben0it
- Posts: 17
- Joined: Sunday 31 January 2016 21:22
- Target OS: Linux
- Domoticz version: 3.6745
- Location: France
- Contact:
Re: Direct HTTP API to Z-Wave device nodes?
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,
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,
-
Benoît.
Benoît.
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Direct HTTP API to Z-Wave device nodes?
Have a look at my github, functions are improved/added.
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Direct HTTP API to Z-Wave device nodes?
Will respond in that topic then 

Who is online
Users browsing this forum: No registered users and 1 guest