Page 1 of 1

OpenZwave start/stop

Posted: Thursday 24 September 2015 16:08
by pluggin
Hi everyone!!
Some times my zwave network stop responding and I dont want to reboot my PI or restart Domoticz so I want to start or stop only Openzwave driver from a script. Just like we do from webpage Setup/hardware (disable/enable).
Is this posible?
Regards

Re: OpenZwave start/stop

Posted: Thursday 24 September 2015 19:01
by pluggin
Looking and searching I can do it with Json...
Query the Hardware with:
/json.htm?type=hardware&filter=all

{
"Address" : "",
"DataTimeout" : 0,
"Enabled" : "true",
"Mode1" : 0,
"Mode2" : 0,
"Mode3" : 0,
"Mode4" : 0,
"Mode5" : 0,
"Mode6" : 0,
"Name" : "CHome",
"NodesQueried" : true,
"Password" : "",
"Port" : 0,
"SerialPort" : "/dev/ttyUSB20",
"Type" : 21,
"Username" : "",
"idx" : "2",
"version" : "1.3-293-ga4ea66b-dirty"

Then only change Enable values to true or false.
/json.htm?type=command&param=updatehardware&htype=21&port=%2Fdev%2FttyUSB20&address=&name=XX&enabled=XX&idx=2&datatimeout=0&Mode1=0&Mode2=0&Mode3=0&Mode4=0&Mode5=0&Mode6=0

Thats all

Re: OpenZwave start/stop

Posted: Thursday 11 February 2016 20:46
by stanim
Hello,
I would like to do the same, but with a specific protocol (enable/disable FineOffset).
It would be nice if somebody could give me the correct API command to do this.
Thanks in advance

Re: OpenZwave start/stop

Posted: Thursday 11 February 2016 21:30
by nayr
I dont believe I have seen that functionality exposed for the API's, I can see a need to request it though.. for example when I was investigating a fallover setup the ability to restart the hardware via API would be required.