Skip to content

Instantly share code, notes, and snippets.

@jimsander
Last active August 29, 2015 14:26
Show Gist options
  • Save jimsander/b9a99391b0fa27696d5f to your computer and use it in GitHub Desktop.
Save jimsander/b9a99391b0fa27696d5f to your computer and use it in GitHub Desktop.
isy rest api and z-wave kwikset 961

I can query the z-wave device, but cannot set the status

# curl -v http://admin:REDACTED@192.168.2.107:8090///rest/nodes/ZW011_1/ 2>/dev/null | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<nodeInfo>
  <node flag="144">
    <address>ZW011_1</address>
    <name>ZWFrontDoor</name>
    <family>4</family>
    <type>4.64.3.0</type>
    <enabled>true</enabled>
    <deviceClass>0</deviceClass>
    <wattage>0</wattage>
    <dcPeriod>0</dcPeriod>
    <pnode>ZW011_1</pnode>
    <sgid>1</sgid>
    <devtype>
      <gen>4.64.3</gen>
      <mfg>144.1.1</mfg>
      <cat>111</cat>
      <model>4</model>
    </devtype>
    <ELK_ID>B10</ELK_ID>
    <property id="ST" value="101" formatted="Unknown" uom="11"/>
  </node>
  <properties>
    <property id="ALARM" value=" " formatted=" " uom="15"/>
    <property id="BATLVL" value="90" formatted="90%" uom="51"/>
    <property id="ST" value="101" formatted="Unknown" uom="11"/>
    <property id="USRNUM" value="0" formatted="0 " uom="70"/>
  </properties>
</nodeInfo>

But fails to set status; the following SHOULD set the lock, but does nothing, yet the return is success

# curl -v http://admin:REDACTED@192.168.2.107:8090///rest/nodes/ZW011_1/set/ST/1 2>/dev/null | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<RestResponse succeeded="true">
  <status>200</status>
</RestResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment