<!-- Philio: PST02-A 4 in 1 Multi-Sensor --><Product Revision="6" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/013C:000C:0002</MetaDataItem>
    <MetaDataItem name="ProductPic">images/philio/pst02.png</MetaDataItem>
    <MetaDataItem id="000C" name="ZWProductPage" type="0002">https://products.z-wavealliance.org/products/1087/</MetaDataItem>
    <MetaDataItem name="ExclusionDescription">There are two tamper keys in the device, one is in the back side, another is in the front side.  Both of them  can add,  remove, reset or association from Z-Wave network.
To remove the device from a Z-Wave network: 
1. Have Z-Wave  Controller entered exclusion mode.
2. Pressing tamper key three times within 1.5 seconds to enter the exclusion mode.
Node ID has been excluded.</MetaDataItem>
    <MetaDataItem name="WakeupDescription">There are two tamper keys in the device, one is in the back side, another is in the front side.  Both of them  can add,  remove, reset or association from Z-Wave network.
Press any key once, the device will awake 10 seconds.</MetaDataItem>
    <MetaDataItem name="Description">The slim multisensor PST02 has PIR, door/window, temperature and illumination, 4 sensors function in one,based on Z-Wave technology.</MetaDataItem>
    <MetaDataItem name="Name">Slim Multisensor</MetaDataItem>
    <MetaDataItem name="InclusionDescription">There are two tamper keys in the device, one is in the back side, another is in the front side.  Both of them  can add,  remove, reset or association from Z-Wave network.
To add into a Z-Wave network: 
1. Have Z-Wave  Controller entered inclusion mode.
2. Pressing tamper key three times within 1.5 seconds to enter the inclusion mode.
3. After add successful, the device will wake to receive the setting command from Z-Wave Controller about 20 seconds.</MetaDataItem>
    <MetaDataItem name="ProductManual">https://Products.Z-WaveAlliance.org/ProductManual/File?folder=&amp;filename=Manuals/1087/PST02_Manual-2014-08-15B.pdf</MetaDataItem>
    <MetaDataItem id="000C" name="FrequencyName" type="0002">CEPT (Europe)</MetaDataItem>
    <MetaDataItem name="ResetDescription">There are two tamper keys in the device, one is in the back side, another is in the front side.  Both of them  can add,  remove, reset or association from Z-Wave network.
To reset the device: 
Notice: Use this procedure only in the event that the primary controller is lost or otherwise inoperable.
1. Pressing tamper key four times within 1.5 seconds and do not release the tamper key in the 4th  pressed, and the LED will light ON.
2. After 3 seconds the LED will turn OFF, after that within 2 seconds, release the tamper key. If successful, the LED will light ON one second. Otherwise, the LED will flash once.
3. IDs are excluded and all settings will reset to factory default.</MetaDataItem>
    <MetaDataItem id="000C" name="Identifier" type="0002">PST02-1A</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="03 May 2019" revision="6">Initial Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/1087/xml</Entry>
    </ChangeLog>
  </MetaData>
  <!-- Configuration Parameters -->
  <CommandClass id="112">
    <Value genre="config" index="2" label="Basic Set Level" max="100" min="-1" size="1" type="byte" value="255">
      <Help>
          Setting the BASIC command value to turn on the light. The 0xFF (-1) means turn on the light. 
          For dimmer equipment 1 to 100 means the light strength. 0 means turn off the light.
	  </Help>
    </Value>
    <Value genre="config" index="3" label="PIR Sensitivity" max="99" min="0" size="1" type="byte" value="80">
      <Help>
          PIR sensitivity settings. 
          0 means disable the PIR motion. 
          1 means the lowest sensitivity, 
          99 means the highest sensitivity. 
          High sensitivity means can detected long distance, but if there is more noise signal in the environment, it will re-trigger too frequency.
       </Help>
    </Value>
    <Value genre="config" index="4" label="Light threshold" max="100" min="0" size="1" type="byte" value="99">
      <Help>
          Setting the illumination threshold to turn on the light. When the event triggered and the environment illumination lower than 
          the threshold, the device will turn on the light.
          0 means turn off illumination detected function and never turn on the light.
          1 means darkest.
          99 means brightest.
          100 means turn off illumination detected function. And always turn on the light.
          * Notice * in none test mode, only the value in 1 to 99 will enable the illumination detected function and update the illumination value.
       </Help>
    </Value>
    <Value genre="config" index="5" label="Operation Mode" max="127" min="0" size="1" type="byte" value="0">
      <Help>
          Bit 0: Reserve. 
          Bit 1: 1 means enable test mode, 0 means disable normal mode. Notice: This bit only effect by the DIP Switch setting to program mode. 
          Bit 2: Disable the door/window function (1: Disable, 0: Enable). 
          Bit 3: Setting the temperature scale. 0: Fahrenheit, 1:Celsius. 
          Bit 4: Disable the illumination report after event triggered (1: Disable, 0: Enable). 
          Bit 5: Disable the temperature report after event triggered (1: Disable, 0: Enable). 
          Bit 6: Reserve. 
          Bit 7: Disable the back key release into test mode (1: Disable, 0: Enable).
       </Help>
    </Value>
    <Value genre="config" index="6" label="Multi-Sensor Function Switch" max="127" min="0" size="1" type="byte" value="4">
      <Help>
          Multi-Sensor Function switch. Using bit to control.
          Bit 0: Disable magnetic integrate illumination to turn ON the lighting nodes in the association group 2 (1: Disable, 0: Enable). 
          Bit 1: Disable PIR integrate Illumination to turn ON the lighting nodes in the association group 2 (1: Disable, 0: Enable). 
          Bit 2: Disable magnetic integrate PIR to turn ON the light the nodes in the association group 2 (1: Disable, 0: Enable) (Default is Disable).
          Bit 3: When Bit 2 is 0 (Enable), Are the device and the lighting in the same room? 0: In the same room (Default), 1: In the different room. Notice: If this bit is 1, it is recommended also set the Bit1 to 1, cause the PIR triggered, doesn't mean the people in that room. 
          Bit 4: Disable delay 5 seconds to turn off the light, when door/window closed. 
          Bit 5: Disable auto turn off the light, after door/window opened to turn on the light. Notice: If bit2 is zero, this setting is useless. Notice: If the configuration No.9 is zero, this setting is useless. 
          Bit 6: Reserve. 
          Bit 7: Reserve. 
	  </Help>
    </Value>
    <Value genre="config" index="7" label="Customer Function" max="127" min="0" type="byte" value="4">
      <Help>
          Customer function switch, using bit control. 
          Bit 0: Reserve. 
          Bit 1: Enable sending motion OFF report (0:Disable, 1:Enable). 
				 Note: Depends on the Bit4, 0: Report Notification CC, Type: 0x07, Event: 0xFE 1: Sensor Binary Report, Type: 0x0C, Value: 0x00. 
          Bit 2: Enable PIR super sensitivity mode (0:Disable, 1:Enable).
          Bit 3: Disable send out BASIC OFF after door closed (1:Disable, 0:Enable). 
          Bit 4: Notification Type (0: Notification Report, 1: Sensor Binary Report).
          Bit 5: Disable Multi CC in auto report (1:Disable, 0:Enable). 
          Bit 6: Disable to report battery state when the device triggered (1:Disable, 0:Enable) 
          Bit 7: Reserve.
		  ozw recommended setting: 00010110 : 22
       </Help>
    </Value>
    <Value genre="config" index="8" label="PIR re-detect interval time" max="127" min="1" size="1" type="byte" units="8 sec" value="3">
      <Help>
          In the normal mode, after the PIR motion detected, setting the re-detect time. 8 seconds per tick, default tick is 3 (24 seconds). 
          Setting the suitable value to prevent received the trigger signal too frequency. Also can save the battery energy. 
          Notice: If this value bigger than the configuration setting NO. 9. There is a period after the light turned off and the PIR not start detecting.
       </Help>
    </Value>
    <Value genre="config" index="9" label="Turn Off Light Time" max="127" min="0" size="1" type="byte" units="8 sec" value="4">
      <Help>
          After turn on the lighting, setting the delay time to turn off the lighting when the PIR motion is not detected. 
          8 seconds per tick, default tick is 4 (32 seconds). 0 means never send turn off light command.
       </Help>
    </Value>
    <Value genre="config" index="10" label="Auto Report Battery Time" max="127" min="0" size="1" type="byte" units="30 min" value="12">
      <Help>
          The interval time for auto report the battery level. 0 means turn off auto report battery. The default value is 12. The tick time can setting by the configuration No.20.
      </Help>
    </Value>
    <Value genre="config" index="11" label="Auto Report Door/Window State Time" max="127" min="0" size="1" type="byte" units="30 min" value="12">
      <Help>
          The interval time for auto report the door/window state. 0 means turn off auto report door/window state. The default value is 12. The tick time can setting by the configuration No.20.
      </Help>
    </Value>
    <Value genre="config" index="12" label="Auto Report Illumination Time" max="127" min="0" size="1" type="byte" units="30 min" value="12">
      <Help>
          The interval time for auto report the illumination. 0 means turn off auto report illumination. The default value is 12. The tick time can setting by the configuration No.20.
      </Help>
    </Value>
    <Value genre="config" index="13" label="Auto Report Temperature time" max="127" min="0" size="1" type="byte" units="30 min" value="12">
      <Help>
          The interval time for auto report the temperature. 0 means turn off auto report temperature. The default value is 12. The tick time can setting by the configuration No.20.
      </Help>
    </Value>
    <Value genre="config" index="20" label="Auto Report Tick Interval" max="255" min="0" type="byte" value="30">
      <Help>
          The interval time for auto report each tick. Setting this configuration will effect configuration No.10, No.11, No.12 and No.13. Caution: Setting to 0 means turn off all auto report function.
      </Help>
    </Value>
    <Value genre="config" index="21" label="Temperature Differential Report" max="255" min="0" type="byte" value="1">
      <Help>
          The temperature differential to report. 0 means turn off this function. The unit is Fahrenheit. Enable this function the device will detect every minutes. And when the temperature is over 140 degree Fahrenheit, it will continue report. Enable this functionality will cause some issue please see the detail in the "Temperature Report" section.
      </Help>
    </Value>
    <Value genre="config" index="22" label="Illumination Differential Report" max="255" min="0" type="byte" value="0">
      <Help>
          The illumination differential to report.0 means turn off this function. The unit is percentage. Enable this function the device will detect every minutes. Enable this functionality will cause some issue please see the detail in the "Illumination Report" section.
      </Help>
    </Value>
  </CommandClass>
  <!-- Basic set as report -->
  <!-- <CommandClass id="32" setasreport="true" ignoremapping="true"/> -->
  <CommandClass id="48">
    <Instance index="1"/>
    <Value genre="user" index="0" instance="1" label="Motion Sensor" max="0" min="0" read_only="true" type="bool" value="false" write_only="false"/>
    <Value genre="user" index="1" instance="1" label="Door/Window Sensor" read_only="true" type="bool" value="false" write_only="false"/>
    <Value genre="user" index="2" instance="1" label="Tamper Sensor" max="0" min="0" read_only="true" type="bool" value="false" write_only="false"/>
    <SensorMap index="0" type="12"/>
    <SensorMap index="1" type="10"/>
    <SensorMap index="2" type="8"/>
    <Compatibility>
      <CreateVars>false</CreateVars>
    </Compatibility>
  </CommandClass>
  <!-- Association Groups -->
  <CommandClass id="133">
    <Associations num_groups="2">
      <Group index="1" label="Lifeline" max_associations="8"/>
      <Group index="2" label="Light Control" max_associations="8"/>
    </Associations>
  </CommandClass>
</Product>
