Direct HTTP API to Z-Wave device nodes?

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
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?

Post 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,
-
Benoît.
User avatar
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?

Post 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.
User avatar
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?

Post 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,
-
Benoît.
User avatar
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?

Post by Egregius »

Have a look at my github, functions are improved/added.
User avatar
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?

Post by Egregius »

Will respond in that topic then ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest