OpenZwave start/stop

Moderator: leecollings

Post Reply
pluggin
Posts: 45
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Argentina
Contact:

OpenZwave start/stop

Post 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
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor
pluggin
Posts: 45
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Argentina
Contact:

Re: OpenZwave start/stop

Post 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
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor
stanim
Posts: 1
Joined: Thursday 11 February 2016 20:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenZwave start/stop

Post 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
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: OpenZwave start/stop

Post 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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest