Glass Sensor, trigger on sensorState

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
jhmartin
Posts: 29
Joined: 14 Apr 2015 02:52

Glass Sensor, trigger on sensorState

Post by jhmartin » 22 May 2016 00:21

I have a new ZWave glass sensor (http://www.lowes.com/pd_567900-78427-GB ... d=50217433). It interviews fine as a Routing Alarm Sensor. However when I try to set a If->Then trigger on it, nothing happens.

In the server log I see it log:

Code: Select all

[2016-05-21 14:08:44.119] [D] [zway] SETDATA devices.66.data.lastReceived = 0 (0x00000000)
[2016-05-21 14:08:44.120] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.srcId = 66 (0x00000042)
[2016-05-21 14:08:44.122] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorState = 255 (0x000000ff)
[2016-05-21 14:08:44.123] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorTime = 0 (0x00000000)
[2016-05-21 14:08:44.125] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0 = Empty
[2016-05-21 14:08:44.179] [D] [zway] RECEIVED: ( 01 0D 00 04 00 42 07 9C 02 42 00 00 00 00 6F )
[2016-05-21 14:08:44.180] [D] [zway] SENT ACK
[2016-05-21 14:08:44.182] [D] [zway] SETDATA devices.66.data.lastReceived = 0 (0x00000000)
[2016-05-21 14:08:44.183] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.srcId = 66 (0x00000042)
[2016-05-21 14:08:44.184] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorState = 0 (0x00000000)
[2016-05-21 14:08:44.186] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorTime = 0 (0x00000000)
[2016-05-21 14:08:44.196] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0 = Empty
The sensorState=255 is the activation. How do I trigger an event based on sensorState? This is on v2.0.2-rc10.

User avatar
PoltoS
Posts: 5286
Joined: 26 Jan 2011 19:36

Re: Glass Sensor, trigger on sensorState

Post by PoltoS » 22 May 2016 03:15

Please try to upgrade first to 2.2.2. There were a lot of fixes about Alarm devices in this version. May be your problem was solved

jhmartin
Posts: 29
Joined: 14 Apr 2015 02:52

Re: Glass Sensor, trigger on sensorState

Post by jhmartin » 22 May 2016 05:26

Just updated. I created an IfTHen based on the 'Routing Alarm Sensor' such that it should turn off a light switch when the sensor is 'on'. No effect. Logs say:

Code: Select all

[2016-05-21 19:23:12.890] [I] [core] Instantiating module 71 from class IfThen
[2016-05-21 19:23:12.897] [I] [core] --- Starting module If -> Then
[2016-05-21 19:23:22.875] [D] [zway] RECEIVED: ( 01 0D 00 04 00 42 07 9C 02 42 00 FF 00 00 90 )
[2016-05-21 19:23:22.876] [D] [zway] SENT ACK
[2016-05-21 19:23:22.877] [D] [zway] SETDATA devices.66.data.lastReceived = 0 (0x00000000)
[2016-05-21 19:23:22.879] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.srcId = 66 (0x00000042)
[2016-05-21 19:23:22.880] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorState = 255 (0x000000ff)
[2016-05-21 19:23:22.882] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorTime = 0 (0x00000000)
[2016-05-21 19:23:22.883] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0 = Empty
[2016-05-21 19:23:22.938] [D] [zway] RECEIVED: ( 01 0D 00 04 00 42 07 9C 02 42 00 00 00 00 6F )
[2016-05-21 19:23:22.940] [D] [zway] SENT ACK
[2016-05-21 19:23:22.941] [D] [zway] SETDATA devices.66.data.lastReceived = 0 (0x00000000)
[2016-05-21 19:23:22.942] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.srcId = 66 (0x00000042)
[2016-05-21 19:23:22.944] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorState = 0 (0x00000000)
[2016-05-21 19:23:22.945] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0.sensorTime = 0 (0x00000000)
[2016-05-21 19:23:22.957] [D] [zway] SETDATA devices.66.instances.0.commandClasses.156.data.0 = Empty
The export ui calls it a 'General Purpose Alarm'.

The ZDDK Generator says:

Code: Select all

<?xml version="1.0"?>
<ZWaveDevice xmlns="http://www.pepper1.net/zwavedb/xml-schemata/z-wave" schemaVersion="2">
  <descriptorVersion>1</descriptorVersion>
  <deviceData>
    <manufacturerId value="014f"/>
    <productType value="4742"/>
    <productId value="3030"/>
    <libType value="06"/>
    <protoVersion value="03"/>
    <protoSubVersion value="43"/>
    <appVersion value="01"/>
    <appSubVersion value="02"/>
    <basicClass value="04"/>
    <genericClass value="a1"/>
    <specificClass value="02"/>
    <optional value="true"/>
    <listening value="false"/>
    <routing value="true"/>
    <beamSensor>0</beamSensor>
  </deviceData>
  <deviceDescription>
    <description>
      <lang xml:lang="en"/>
    </description>
    <wakeupNote>
      <lang xml:lang="en"/>
    </wakeupNote>
    <inclusionNote>
      <lang xml:lang="en"/>
    </inclusionNote>
    <productName/>
    <brandName/>
    <productVersion>1.2</productVersion>
  </deviceDescription>
  <commandClasses>
    <commandClass id="0020" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="005a" version="0" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0072" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0080" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0082" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0084" version="2" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0085" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0086" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="0087" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
    <commandClass id="009c" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
  </commandClasses>
  <assocGroups>
    <assocGroup number="1" maxNodes="1">
      <description>
        <lang xml:lang="en">Group 1</lang>
      </description>
    </assocGroup>
  </assocGroups>
</ZWaveDevice>

Post Reply