<Product Revision="11" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/010F:1000:0403</MetaDataItem>
    <MetaDataItem name="ProductPic">images/fibaro/fgs213.png</MetaDataItem>
    <MetaDataItem id="1000" name="ZWProductPage" type="0403">https://products.z-wavealliance.org/products/2730/</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)           Switch off the mains voltage (disable the fuse).
2)           Remove the Switch 2 from the wall switch box.
3)           Switch on the mains voltage.
4)           Press and hold the B-button to enter the menu.
5)           Wait for the visual LED indicator to glow yellow.
6)           Quickly release and click the B-button again.
7)           After few seconds the device will be restarted, which is signalled with the red LED indicator colour.

Use reset procedure only if the primary controller is missing or inoperable.
</MetaDataItem>
    <MetaDataItem id="1000" name="Identifier" type="0403">FGS-213</MetaDataItem>
    <MetaDataItem name="InclusionDescription">1)           Switch off the mains voltage (disable the fuse).
2)           Make sure the Switch 2 is within the direct range of your Z-Wave controller. 
3)           Connect the device in accordance with one of the diagrams included in the manual.
4)           After verifying correctness of the connection switch on the mains voltage.
5)           Identify the S1 switch or the B-button (located on the device’s housing). 
6)           Set the main controller in (security/non-security) add mode (see the controller’s manual). 
7)           Quickly, three times press the S1 switch or the B-button. 
8)           Wait for the adding process to end. 
9)           Successful adding will be confirmed by the Z-Wave controller’s message. 
</MetaDataItem>
    <MetaDataItem name="WakeupDescription">The FIBARO Single Switch 2 is powered with the mains voltage so it is always awake.</MetaDataItem>
    <MetaDataItem name="Description">The remotely operated FIBARO Single Switch 2 is designed to turn electrical devices on and off and to measure their power and energy consumption. The compact size of the device makes it the world's smallest of its type and allows for the product to be installed in wall switch boxes or housings. FIBARO Single Switch 2 can be controlled either via Z-Wave network or with a wall switch through a direct connection.</MetaDataItem>
    <MetaDataItem id="1000" name="FrequencyName" type="0403">CEPT (Europe)</MetaDataItem>
    <MetaDataItem name="ExclusionDescription">1)           Make sure the Switch 2 is within the direct range of your Z-Wave controller.
2)           Identify the S1 switch or the B-button (located on the device’s housing).
3)           Set the main controller in remove mode (see the controller’s manual).
4)           Quickly, three times press the S1 switch or the B-button.
5)           Wait for the removing process to end.
6)           Successful removing will be confirmed by the Z-Wave controller’s message
</MetaDataItem>
    <MetaDataItem name="Name">FIBARO Single Switch 2</MetaDataItem>
    <MetaDataItem name="ProductManual">https://Products.Z-WaveAlliance.org/ProductManual/File?folder=&amp;filename=Manuals/2750/FGS-2x3-EN-T-v1.2.pdf</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="24 May 2019" revision="8">Initial Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/1734/xml</Entry>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="24 May 2019" revision="9">Updated Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/1871/xml</Entry>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="02 Jun 2019" revision="10">Updated Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/2730/xml</Entry>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="02 Jun 2019" revision="11">Updated Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/2750/xml</Entry>
    </ChangeLog>
    <MetaDataItem id="2000" name="ZWProductPage" type="0403">https://products.z-wavealliance.org/products/2750/</MetaDataItem>
    <MetaDataItem id="2000" name="FrequencyName" type="0403">U.S. / Canada / Mexico</MetaDataItem>
    <MetaDataItem id="2000" name="Identifier" type="0403">FGS-213</MetaDataItem>
  </MetaData>
  <!-- COMMAND_CLASS_SWITCH_MULTILEVEL. This class is in the list reported by the device, but it does not respond to requests -->
  <CommandClass id="38">
    <Compatibility>
      <GetSupported>false</GetSupported>
    </Compatibility>
  </CommandClass>
  <!-- Configuration -->
  <CommandClass id="112">
    <Value genre="config" index="9" instance="1" label="Saving state before power failure" max="1" min="0" size="1" type="list" value="1">
      <Help>Saving state before power failure</Help>
      <Item label="State NOT saved at power failure, all outputs are set to OFF upon power restore" value="0"/>
      <Item label="State saved at power failure, all outputs are set to previous state upon power restore" value="1"/>
    </Value>
    <Value genre="config" index="10" instance="1" label="First channel - operating mode" max="5" min="0" size="1" type="list" value="0">
      <Help>This parameter allows to choose operating for the 1st channel controlled by the S1 switch.</Help>
      <Item label="Standard operation" value="0"/>
      <Item label="Delay On" value="1"/>
      <Item label="Delay Off" value="2"/>
      <Item label="Auto On" value="3"/>
      <Item label="Auto Off" value="4"/>
      <Item label="Flashing Mode" value="5"/>
    </Value>
    <Value genre="config" index="11" instance="1" label="First channel - reaction to switch for delay/auto ON/OFF modes" max="2" min="0" size="1" type="list" value="0">
      <Help>This parameter determines how the device in timed mode reacts to pushing the switch connected to the S1 terminal.</Help>
      <Item label="Cancel mode and set target state" value="0"/>
      <Item label="No reaction to switch - mode runs until it ends" value="1"/>
      <Item label="Reset timer - start counting from the beginning" value="2"/>
    </Value>
    <Value genre="config" index="12" instance="1" label="First channel - time parameter for delay/auto ON/OFF modes" max="32000" min="1" size="2" type="short" value="50">
      <Help>This parameter allows to set time parameter used in timed modes. (s)</Help>
    </Value>
    <Value genre="config" index="13" instance="1" label="First channel - pulse time for flashing mode" max="32000" min="1" size="2" type="short" value="5">
      <Help>
        This parameter allows to set time of switching to opposite state in flashing mode.
        1-32000 (0.1-3200.0s, 0.1s step)
      </Help>
    </Value>
    <Value genre="config" index="15" instance="1" label="Second channel - operating mode" max="5" min="0" size="1" type="list" value="0">
      <Help>This parameter allows to choose operating for the 2st channel controlled by the S2 switch.</Help>
      <Item label="Standard operation" value="0"/>
      <Item label="Delay On" value="1"/>
      <Item label="Delay Off" value="2"/>
      <Item label="Auto On" value="3"/>
      <Item label="Auto Off" value="4"/>
      <Item label="Flashing Mode" value="5"/>
    </Value>
    <Value genre="config" index="16" instance="1" label="Second channel - reaction to switch for delay/auto ON/OFF modes" max="2" min="0" size="1" type="list" value="0">
      <Help>This parameter determines how the device in timed mode reacts to pushing the switch connected to the S2 terminal.</Help>
      <Item label="Cancel mode and set target state" value="0"/>
      <Item label="No reaction to switch - mode runs until it ends" value="1"/>
      <Item label="Reset timer - start counting from the beginning" value="2"/>
    </Value>
    <Value genre="config" index="17" instance="1" label="Second channel - time parameter for delay/auto ON/OFF modes" max="32000" min="1" size="2" type="short" value="50">
      <Help>This parameter allows to set time parameter used in timed modes. (s)</Help>
    </Value>
    <Value genre="config" index="18" instance="1" label="Second channel - pulse time for flashing mode" max="32000" min="1" size="2" type="short" value="5">
      <Help>
        This parameter allows to set time of switching to opposite state in flashing mode.
        1-32000 (0.1-3200.0s, 0.1s step)
      </Help>
    </Value>
    <Value genre="config" index="20" instance="1" label="Switch type" max="2" min="0" size="1" type="list" value="2">
      <Help>Inputs type configuration</Help>
      <Item label="Momentary switch" value="0"/>
      <Item label="Toggle switch (contact closed - On, contact opened - OFF)" value="1"/>
      <Item label="Toggle switch (device changes status when switch changes status)" value="2"/>
    </Value>
    <Value genre="config" index="21" instance="1" label="Flashing mode report" max="1" min="0" size="1" type="list" value="0">
      <Help>Enabled / Disabled reports on Flashing mode</Help>
      <Item label="Disabled" value="0"/>
      <Item label="Enabled" value="1"/>
    </Value>
    <Value genre="config" index="27" instance="1" label="Associations in Z-Wave network security mode" max="15" min="0" size="1" type="byte" value="15">
      <Help>
        This parameter defines how commands are sent to specified association groups: as secure or non-secure.
        Parameter is active only in Z-Wave network security mode.
        This parameter does not apply to 1st lifeline group.
        1 - 2nd group sent as secure.
        2 - 3rd group sent as secure.
        4 - 4th group sent as secure.
        8 - 5th group sent as secure.
        Default setting: 15 (all)
      </Help>
    </Value>
    <Value genre="config" index="28" instance="1" label="S1 switch - scenes sent" max="15" min="0" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions result in sending scene IDs assigned to them.
        1 - Key pressed 1 time.
        2 - Key pressed 2 times.
        4 - Key pressed 3 times.
        8 - Key Hold Down and Key Released.
        Default setting: 0 (none)
      </Help>
    </Value>
    <Value genre="config" index="29" instance="1" label="S2 switch - scenes sent" max="15" min="0" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions result in sending scene IDs assigned to them.
        1 - Key pressed 1 time.
        2 - Key pressed 2 times.
        4 - Key pressed 3 times.
        8 - Key Hold Down and Key Released.
        Default setting: 0 (none)
      </Help>
    </Value>
    <Value genre="config" index="30" instance="1" label="S1 associations sent to 2nd and 3rd association groups" max="15" min="0" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions are ignored when sending commands to devices associated in 2nd and 3rd association group.
        All actions are active by default.
        1 - ignore turning On with 1 click of the switch.
        2 - ignore turning OFF with 1 click of the switch.
        4 - ignore holding and releasing the switch.
        8 - ignore double click of the switch.
        Default setting: 0
      </Help>
    </Value>
    <Value genre="config" index="31" instance="1" label="S1 Switch ON value sent to 2nd and 3rd association groups" max="255" min="0" size="2" type="short" value="255">
      <Help>
        This parameter determines value sent with Switch On command to devices associated in 2nd and 3rd association group.
      </Help>
    </Value>
    <Value genre="config" index="32" instance="1" label="S1 Switch OFF value sent to 2nd and 3rd association groups" max="255" min="0" size="2" type="short" value="0">
      <Help>
        This parameter determines value sent with Switch Off command to devices associated in 2nd and 3rd association group.
      </Help>
    </Value>
    <Value genre="config" index="33" instance="1" label="S1 Switch Double Click value sent to 2nd and 3rd association groups" max="255" min="0" size="2" type="short" value="99">
      <Help>
        This parameter determines value sent with Double Click command to devices associated in 2nd and 3rd association group.
      </Help>
    </Value>
    <Value genre="config" index="35" instance="1" label="S2 associations sent to 4th and 5th association groups" max="15" min="0" size="1" type="byte" value="0">
      <Help>
        This parameter determines which actions are ignored when sending commands to devices associated in 4th and 5th association group.
        All actions are active by default.
        1 - ignore turning On with 1 click of the switch.
        2 - ignore turning OFF with 1 click of the switch.
        4 - ignore holding and releasing the switch.
        8 - ignore double click of the switch.
        Default setting: 0
      </Help>
    </Value>
    <Value genre="config" index="36" instance="1" label="S2 Switch ON value sent to 4th and 5th association groups" max="255" min="0" size="2" type="short" value="255">
      <Help>
        This parameter determines value sent with Switch On command to devices associated in 4th and 5th association group.
      </Help>
    </Value>
    <Value genre="config" index="37" instance="1" label="S2 Switch OFF value sent to 4th and 5th association groups" max="255" min="0" size="2" type="short" value="0">
      <Help>
        This parameter determines value sent with Switch Off command to devices associated in 4th and 5th association group.
      </Help>
    </Value>
    <Value genre="config" index="38" instance="1" label="S2 Switch Double Click value sent to 4th and 5th association groups" max="255" min="0" size="2" type="short" value="99">
      <Help>
        This parameter determines value sent with Double Click command to devices associated in 4th and 5th association group.
      </Help>
    </Value>
    <Value genre="config" index="40" instance="1" label="Reaction to General Alarm" max="3" min="0" size="1" type="list" value="3">
      <Help>This parameter determines how the device will react to General Alarm frame.</Help>
      <Item label="Ignored" value="0"/>
      <Item label="Turn On" value="1"/>
      <Item label="Turn OFF" value="2"/>
      <Item label="Flash" value="3"/>
    </Value>
    <Value genre="config" index="41" instance="1" label="Reaction to Flood Alarm" max="3" min="0" size="1" type="list" value="2">
      <Help>This parameter determines how the device will react to Flood Alarm frame.</Help>
      <Item label="Ignored" value="0"/>
      <Item label="Turn On" value="1"/>
      <Item label="Turn OFF" value="2"/>
      <Item label="Flash" value="3"/>
    </Value>
    <Value genre="config" index="42" instance="1" label="Reaction to CO/CO2/Smoke Alarm" max="3" min="0" size="1" type="list" value="3">
      <Help>This parameter determines how the device will react to CO/CO2/Smoke Alarm frame.</Help>
      <Item label="Ignored" value="0"/>
      <Item label="Turn On" value="1"/>
      <Item label="Turn OFF" value="2"/>
      <Item label="Flash" value="3"/>
    </Value>
    <Value genre="config" index="43" instance="1" label="Reaction to Heat Alarm" max="3" min="0" size="1" type="list" value="1">
      <Help>This parameter determines how the device will react to Heat alarm frame.</Help>
      <Item label="Ignored" value="0"/>
      <Item label="Turn On" value="1"/>
      <Item label="Turn OFF" value="2"/>
      <Item label="Flash" value="3"/>
    </Value>
    <Value genre="config" index="44" instance="1" label="Flashing alarm duration" max="32000" min="1" size="2" type="short" value="600">
      <Help>
        This parameter allows to set duration of flashing alarm mode.
        1-32000 (0.1-32000s, 1s step) Default: 600 (10min)
      </Help>
    </Value>
    <Value genre="config" index="50" instance="1" label="First channel - power reports" max="100" min="1" size="2" type="short" value="20">
      <Help>
        This parameter determines the minimum change in consumed power
        that will result in sending new power report to the main controller.
        1-100 (%) Default 20 (20%)
      </Help>
    </Value>
    <Value genre="config" index="51" instance="1" label="First channel - minimal time between power reports" max="120" min="1" size="2" type="short" value="10">
      <Help>
        This parameter determines minimum time that has to elapse before
        sending new power report to the main controller.
        1-120 (s) Default 10 (10s)
      </Help>
    </Value>
    <Value genre="config" index="53" instance="1" label="First channel - energy reports" max="32000" min="1" size="2" type="short" value="100">
      <Help>
        This parameter determines the minimum change in consumed energy
        that will result in sending new energy report to the main controller.
        1-32000 (0.01-320 kWh) Default 100 (1kWh)
      </Help>
    </Value>
    <Value genre="config" index="58" instance="1" label="Periodic power reports" max="32000" min="1" size="2" type="short" value="3600">
      <Help>
        This parameter determines in what time interval the periodic
        power reports are sent to the main controller.
        1-32000 (s) Default 3600 (1h)
      </Help>
    </Value>
    <Value genre="config" index="59" instance="1" label="Periodic energy reports" max="32000" min="1" size="2" type="short" value="3600">
      <Help>
        This parameter determines in what time interval the periodic
        power reports are sent to the main controller.
        1-32000 (s) Default 3600 (1h)
      </Help>
    </Value>
    <Value genre="config" index="60" instance="1" label="Measuring energy consumed by the device itself" max="1" min="0" size="1" type="list" value="0">
      <Help>
        This parameter determines whether energy metering should include
        the amount of energy consumed by the device itself. Results are
        being added to energy reports for first endpoint.
      </Help>
      <Item label="function inactive" value="0"/>
      <Item label="function active" value="1"/>
    </Value>
  </CommandClass>
  <!-- -->
  <CommandClass id="96">
    <Compatibility>
      <MapRootToEndpoint>true</MapRootToEndpoint>
    </Compatibility>
  </CommandClass>
  <!-- Association Groups -->
  <CommandClass id="133">
    <Associations num_groups="5">
      <Group index="1" label="Lifeline" max_associations="1"/>
      <Group index="2" label="On/Off S1" max_associations="5"/>
      <Group index="3" label="Dimmer S1" max_associations="5"/>
      <Group index="4" label="On/Off S2" max_associations="5"/>
      <Group index="5" label="Dimmer S2" max_associations="5"/>
    </Associations>
  </CommandClass>
  <CommandClass id="142">
    <Compatibility>
      <ForceInstances>true</ForceInstances>
    </Compatibility>
  </CommandClass>
</Product>
