<!-- Fibaro: FGK101 Door Opening Sensor --><Product Revision="5" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/010F:1000:0702</MetaDataItem>
    <MetaDataItem name="ProductPic">images/fibaro/fgdw2.png</MetaDataItem>
    <MetaDataItem id="1000" name="ZWProductPage" type="0702">https://products.z-wavealliance.org/products/2181/</MetaDataItem>
	<MetaDataItem id="2000" name="ZWProductPage" type="0702">https://products.z-wavealliance.org/products/2279/</MetaDataItem>
    <MetaDataItem name="Name">FIBARO Door/Window Sensor 2</MetaDataItem>
    <MetaDataItem name="Description">FIBARO Door/Window Sensor 2 is a wireless, battery powered, Z-Wave Plus compatible magnetic contact sensor. Changing the device’s status will automatically send signal to the Z-Wave controller and associated devices. In addition the FIBARO Door/Window Sensor 2 is equipped with a built-in temperature sensor.
Sensor can be used to trigger scenes and wherever there is a need for information about opening or closing of doors, windows, garage doors, etc. Opening is detected by separating the sensor’s body and the magnet.
</MetaDataItem>
    <MetaDataItem id="1000" name="Identifier" type="0702">FGDW-002</MetaDataItem>
	<MetaDataItem id="2000" name="Identifier" type="0702">FGDW-002-1</MetaDataItem>
    <MetaDataItem name="InclusionDescription">1)	Place the Door/Window Sensor 2 within the direct range of your Z-Wave controller.
2)	Set the main controller in (security/non-security) add mode (see the controller’s manual).
3)	Click the Button at least six times.
4)	Quickly, three times press one of the TMP buttons (while the other button is pressed).
5)	Wait for the adding process to end.
6)	Successful adding will be confirmed by the Z-Wave controller’s message.
</MetaDataItem>
    <MetaDataItem name="ProductManual">https://Products.Z-WaveAlliance.org/ProductManual/File?folder=&amp;filename=Manuals/2181/FGDW-002-EN-T-v0.3.2.pdf</MetaDataItem>
    <MetaDataItem name="ExclusionDescription">1)	Place the Door/Window Sensor 2 within the direct range of your Z-Wave controller.
2)	Set the main controller into remove mode (see the controller’s manual).
3)	Quickly, three times press one of the TMP buttons (while the other button is pressed). 
4)	Wait for the removing process to end.
5)	Successful removing will be confirmed by the Z-Wave controller’s message.

</MetaDataItem>
    <MetaDataItem name="WakeupDescription">The Door/Window Sensor 2 needs to be woken up to receive informa¬tion about the new configuration from the controller, like parameters and associations. 
1)	To wake up the sensor manually, click one of the TMP buttons (while the other button is pressed).
</MetaDataItem>
    <MetaDataItem name="ResetDescription">Reset procedure allows to restore the device back to its factory settings, which means all information about the Z-Wave controller and user configuration will be deleted. In order to reset the device:
1)	Open the cover. 
2)	Remove the battery. 
3)	Install the battery while holding both TMP buttons. 
4)	Release the TMP button within 5 seconds. 
5)	Visual indicator will blink 3 times to confirm launching of reset procedure. 
6)	Wait around 30s for the resetting process to end, do not remove the battery. 
7)	Visual LED indicator will blink 6 times to confirm the reset. 

*Resetting the device is not the recommended way of removing the device from the Z-Wave network. Use reset procedure only if the primary controller is missing or inoperable.</MetaDataItem>
    <MetaDataItem id="1000" name="FrequencyName" type="0702">CEPT (Europe)</MetaDataItem>
	<MetaDataItem id="2000" name="FrequencyName" type="0702">U.S. / Canada / Mexico</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="02 Jun 2019" revision="4">Initial Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/2181/xml</Entry>
      <Entry author="Justin Dybedahl - madj42@gmail.com" date="12 July 2020" revision="5">Add support for US Model.</Entry>
	</ChangeLog>
  </MetaData>
  <!-- Configuration -->
  <CommandClass id="112">
    <Value genre="config" index="1" instance="1" label="Door/window state" size="1" type="list" value="0">
      <Help>This parameter allows to set in what state is door/window when the magnet is close to the sensor.</Help>
      <Item label="Closed" value="0"/>
      <Item label="Opened" value="1"/>
    </Value>
    <Value genre="config" index="2" instance="1" label="Visual LED indications" max="7" min="1" size="1" type="byte" value="6">
      <Help>This parameter defines events indicated by the visual LED indicator.
                Disabling events might extend battery life.
                0 - no indications
                1 - indication of opening/closing status change (input IN)
                2 - indication of wake up (1 x click or periodical)
                4 - indication of device tampering
            </Help>
    </Value>
    <Value genre="config" index="3" instance="1" label="Associations in Z-Wave network Security Mode" max="3" min="0" size="1" type="list" value="3">
      <Help>This parameter defines how commands are sent in specified association groups: as secure or non-secure.
                Parameter is active only in Z-Wave network security mode. It does not apply to 1st group Lifeline
            </Help>
      <Item label="None" value="0"/>
      <Item label="Group 2" value="1"/>
      <Item label="Group 3" value="2"/>
      <Item label="Group 2 and 3" value="3"/>
    </Value>
    <Value genre="config" index="11" instance="1" label="2nd association group triggers" size="1" type="list" value="0">
      <Help>Parameter defines events which result in sending on/off commands to devices added to the 2nd association group.
                These commands are sent alternately to switch the devices on and off.
            </Help>
      <Item label="Switch after opening and closing" value="0"/>
      <Item label="Switch after opening" value="1"/>
      <Item label="Switch after closing" value="2"/>
    </Value>
    <Value genre="config" index="12" instance="1" label="Association for opening - value sent" max="255" min="0" size="2" type="short" value="255">
      <Help>Value sent to devices in 2nd association group when opening is detected.
                The value of 0 turns OFF the device, 255 turns it On.
                In case of associating devices allowing smooth control, values 1-99 allow to set an associated device to a specified level.
            </Help>
    </Value>
    <Value genre="config" index="13" instance="1" label="Association for closing - value sent" max="255" min="0" size="2" type="short" value="0">
      <Help>Value sent to devices in 2nd association group when closing is detected.
                The value of 0 turns OFF the device, 255 turns it On.
                In case of associating devices allowing smooth control, values 1-99 allow to set an associated device to a specified level.
            </Help>
    </Value>
    <Value genre="config" index="14" instance="1" label="Association for opening - time delay" max="32400" min="0" size="2" type="short" units="seconds" value="0">
      <Help>Time that must elapse from opening to send the command frame to to devices in 2nd association group.</Help>
    </Value>
    <Value genre="config" index="15" instance="1" label="Association for closing - time delay" max="32400" min="0" size="2" type="short" units="seconds" value="0">
      <Help>Time that must elapse from closing to send the command frame to devices in 2nd association group.</Help>
    </Value>
    <Value genre="config" index="30" instance="1" label="Tamper - alarm cancellation delay" max="32400" min="0" size="2" type="short" units="seconds" value="5">
      <Help>Time period after which a tamper alarm will be cancelled.</Help>
    </Value>
    <Value genre="config" index="31" instance="1" label="Tamper - reporting alarm cancellation" max="1" min="0" size="1" type="list" value="0">
      <Help>Reporting cancellation of tamper alarm to the controller and 3rd association group.</Help>
      <Item label="Do not send tamper cancellation report" value="0"/>
      <Item label="Send tamper cancellation report" value="1"/>
    </Value>
    <Value genre="config" index="50" instance="1" label="Interval of temperature measurements" max="32400" min="0" size="2" type="short" units="seconds" value="300">
      <Help>This parameter defines how often the temperature will be measured.
                The shorter the time, the more frequently the temperature will be measured, but the battery life will shorten.
                0 - temperature measurements disabled
                5-32400 - time in seconds
            </Help>
    </Value>
    <Value genre="config" index="51" instance="1" label="Temperature reports threshold" max="300" min="0" size="2" type="short" value="10">
      <Help>This parameter defines the change of temperature in comparison with last reported, resulting in temperature report being sent to the main controller.
                0 - temperature reports based on threshold disabled
                1-300 - temperature threshold (0.1-30C, 0.1C step)
            </Help>
    </Value>
    <Value genre="config" index="52" instance="1" label="Interval of temperature reports" max="32400" min="0" size="2" type="short" units="seconds" value="0">
      <Help>This parameter determines how often the temperature reports will be sent to the main controller.
                0 - periodic temperature reports disabled
                5-32400 - time in seconds
            </Help>
    </Value>
    <Value genre="config" index="53" instance="1" label="Temperature offset" max="1000" min="-1000" size="2" type="short" value="0">
      <Help>The value to be added to the actual temperature, measured by the sensor (temperature compensation). (0.1C steps)
            </Help>
    </Value>
    <Value genre="config" index="54" instance="1" label="Temperature alarm reports" size="1" type="list" value="0">
      <Help>Temperature alarms reported to the Z-Wave controller.
                Thresholds are set in parameters 55 and 56.
            </Help>
      <Item label="Disabled" value="0"/>
      <Item label="High temperature" value="1"/>
      <Item label="Low temperature" value="2"/>
      <Item label="High and low temperature" value="3"/>
    </Value>
    <Value genre="config" index="55" instance="1" label="High temperature alarm threshold" max="600" min="0" size="2" type="short" value="350">
      <Help>If temperature is higher than set value, overheat notification will be sent and high temperature scene will be triggered (if activated).
                0-600 (0-60C, 0.1C step).
            </Help>
    </Value>
    <Value genre="config" index="56" instance="1" label="Low temperature alarm threshold" max="599" min="0" size="2" type="short" value="100">
      <Help>If temperature is lower than the set value, underheat notification will be sent and low temperature scene will be triggered (if activated).
                0-599 (0-59.9C, 0.1C step)
            </Help>
    </Value>
  </CommandClass>
  <!-- Association Groups -->
  <CommandClass id="133">
    <Associations num_groups="3">
      <Group index="1" label="Lifeline" max_associations="1"/>
      <Group index="2" label="On/Off" max_associations="5"/>
      <Group index="3" label="Sabotage" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
