<Product Revision="1" xmlns="https://github.com/OpenZWave/open-zwave">
  <!-- Please refer to https://github.com/OpenZWave/open-zwave/wiki/Adding-Devices for instructions -->
  <MetaData>
    <MetaDataItem name="Name">Motion Sensor</MetaDataItem>
    <MetaDataItem name="Description">Battery powered Z-Wave Plus motion sensor</MetaDataItem>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/017F:0001:0101</MetaDataItem>
    <MetaDataItem name="ProductPage">https://www.wink.com/products/wink-motion-sensor/</MetaDataItem>
    <MetaDataItem name="ProductSupport">https://www.wink.com/help/products/</MetaDataItem>
    <MetaDataItem name="ProductPic">images/wink/wnk-mot1.png</MetaDataItem>
    <MetaDataItem name="ProductManual"><![CDATA[https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/2482/wink-motion-manual.pdf]]></MetaDataItem>
    <MetaDataItem name="WakeupDescription"><!-- Short description on how to wake up the device if its battery powered --></MetaDataItem>
    <MetaDataItem name="InclusionDescription">1. Bring the sensor within range of your controller.
    2. If the devices is new, remove the pull tab.  Otherwise remove, then replace the battery.
    The LED will flash 5 times to indicate inclusion.
    </MetaDataItem>
    <MetaDataItem name="ExclusionDescription">1. Remove the sensor cover by twisting counter clockwise.
    2. Press the connect button (next to the battery) 3 times.
    The LED will flash 5 times to indicate exclustion.
    </MetaDataItem>
    <MetaDataItem name="ResetDescription">
    1. Remove the sensor cover by twisting counter clockwise.
    2. Hold the connect button (next to the battery) for 10 seconds until the LED blinks.
    </MetaDataItem>
    <MetaDataItem id="0001" name="ZWProductPage" type="0101">https://products.z-wavealliance.org/products/2482</MetaDataItem>
    <MetaDataItem id="0001" name="FrequencyName" type="0101">U.S. / Canada / Mexico</MetaDataItem>
    <MetaDataItem id="0001" name="Identifier" type="0101">WNK-MOT1</MetaDataItem>
    <ChangeLog>
      <Entry author="Jeremy M. Johnson" date="21 June 202020" revision="1">Initial information based on Z-Wave alliance database information</Entry>
    </ChangeLog>
  </MetaData>
  <!-- Configuration Command Class - All Configuration Parameters should be entered into the section below -->
  <CommandClass id="112">

    <Value genre="config" index="1" label="Sensitivity" max="255" min="8" type="byte" units="" value="255">
      <Help>Motion sensor sensitivity Level. Valid values 8 to 255.</Help>
    </Value>
    <Value genre="config" index="2" label="Motion Cleared Time Delay" max="600" min="5" type="int" units="seconds" value="255">
      <Help>Valid values 5 to 600 seconds (10 mins).</Help>
    </Value>
    <Value genre="config" index="3" label="Basic Set Level" max="255" min="0" type="byte" units="" value="255">
      <Help>0: Turn Off
      1 to 99: Dim Level
      255: On
      </Help>
    </Value>
    <Value genre="config" index="4" label="Enable/Disable Motion Detection" max="1" min="0" type="bool" units="" value="1">
      <Help>On = Enable Motion Detection.</Help>
    </Value>
    <Value genre="config" index="5" label="Group 2 Ambient Light Threshold" max="1000" min="5" type="int" units="lux" value="1000">
      <Help>Ambient Light Threshold for the Group 2 Association trigger.  Vaid values 5 to 1000 lux.</Help>
    </Value>
    <Value genre="config" index="6" label="Retrigger Interval" max="8" min="1" type="byte" units="seconds" value="8">
      <Help>Prevent retriggering within the specified time period.  Valid values 1 to 8 seconds.</Help>
    </Value>
    <Value genre="config" index="7" label="Light Sensing Interval" max="3600" min="60" type="byte" units="seconds" value="3600">
      <Help>Valid values 60 to 3600 seconds.</Help>
    </Value>
    <Value genre="config" index="8" label="Enable/Disable Group 2 Ambient Light Threshold" max="1" min="0" type="bool" units="" value="0">
      <Help>On = Enable the Ambient Light Threshold when using the Group 2 Association.</Help>
    </Value>
    <Value genre="config" index="9" label="Ambient Light Sensitivity Level" max="255" min="0" type="byte" units="lux" value="255">
      <Help>Valid values 0 to 255 lux.</Help>
    </Value>
    <Value genre="config" index="10" label="LED Indicator" max="1" min="0" type="bool" units="" value="1">
      <Help>On = Enable the LED Indicator.</Help>
    </Value>

  </CommandClass>
  <!-- A Example of Setting a Compatibility Flag on a CommandClass - In this case the Device Doesn't support Get for Alarm Class -->
  <CommandClass id="113">
    <Compatibility>
      <GetSupported>false</GetSupported>
    </Compatibility>
  </CommandClass>
  <!-- The Association Group Information -->
  <CommandClass id="133">
    <Associations num_groups="4">
      <Group index="1" label="LifeLine" max_associations="5"/>
      <Group index="2" label="BASIC_SET" max_associations="5"/>
      <Group index="3" label="NOTIFICATION_REPORT" max_associations="5"/>
      <Group index="4" label="SENSOR_BINARY_REPORT" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
