OpenZWave command via curl

All kinds of 'OS' scripts
Post Reply
hamster
Posts: 21
Joined: Friday 28 April 2017 19:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

OpenZWave command via curl

Post by hamster » Sunday 22 July 2018 22:56

Trying to figure out how to tell openzwave to 'test & heal' a node via curl. See screenshot for what I'm talking about. It shows the ozw control panel in domoticz.

I found this post, which partially explains it, but it tells how to set a function on a node, not how to execute a command on the controller itself.

If you're wondering "why," it's because I have an RGBW controller that will only get used during holidays for outdoor lighting, so I turn it off otherwise to save power. When I turn it back on, test & heal is the only thing I've found that works to bring the node out of the "dead" state immediately.

Let me know if I can give any more info to help solve.
Thanks!
testheal.png
testheal.png (52.81 KiB) Viewed 219 times

hamster
Posts: 21
Joined: Friday 28 April 2017 19:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: OpenZWave command via curl

Post by hamster » Monday 23 July 2018 4:56

After posting I was able to figure it out. I'll leave it here for anyone searching later.

In domoticz/www/ozwcp/cp.js you can find all the functions. I ended up doing:

Code: Select all

curl -d "fun=test&num=9&cnt=1" -X POST http://192.168.2.240:8080/ozwcp/thpost.html
for reviving the node after i power on the device and

Code: Select all

curl -d "fun=refreshnode&node=9" -X POST http://192.168.2.240:8080/ozwcp/admpost.html
for refreshing the node after powering it off, so ozw will mark it dead again and not attempt to route through it.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests