<Product Revision="4" xmlns="https://github.com/OpenZWave/open-zwave">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/010F:2000:1701</MetaDataItem>
    <MetaDataItem name="ProductPic">images/fibaro/fgwpg111.png</MetaDataItem>
    <MetaDataItem id="2000" name="ZWProductPage" type="1701">https://products.z-wavealliance.org/products/2854/</MetaDataItem>
    <MetaDataItem name="ProductManual">https://Products.Z-WaveAlliance.org/ProductManual/File?folder=&amp;filename=Manuals/2899/FGWPG-111-EN-T-v.0.2.pdf</MetaDataItem>
    <MetaDataItem name="ExclusionDescription">To remove the device from the Z-Wave network:
1.	Plug the device into a socket nearby the main Z-Wave controller.
2.	The LED frame will glow green signaling being added (removing is not necessary otherwise).
3.	Set the main controller into remove mode.
4.	Quickly, triple click the button located on the casing.
5.	Wait for the removing process to end.
6.	Successful removing will be confirmed by the Z-Wave controller’s message.
</MetaDataItem>
    <MetaDataItem name="WakeupDescription">FIBARO Wall Plug is powered with mains voltage so it is always awake.</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.
1.	Make sure the device is powered.
2.	Press and hold the button.
3.	Wait for the LED frame to glow yellow (3rd menu position).
4.	Release the button.
5.	Click the button once to confirm selection.
6.	After few seconds the device will restart with factory settings, which is signaled with the red frame color.

Resetting the device is not the recommended way of removing the device from the Z-Wave network. Use the reset procedure only if the primary controller is missing or inoperable.</MetaDataItem>
    <MetaDataItem name="Name">Wall Plug UK</MetaDataItem>
    <MetaDataItem name="Description">FIBARO Wall Plug is a remotely controlled plug-in switch with the ability to measure power and energy consumption. It uses a LED frame to visualize the current load and operating mode with color changing illumination. FIBARO Wall Plug makes it possible to control electrical devices in a convenient and maintenance-free way.  
Main features of FIBARO Wall Plug:
- Compatible with any Z-Wave or Z-Wave+ Controller.
- Supports Z-Wave network Security Modes: S0 with AES-128 encryption and S2 with PRNG-based encryption.
- Extremely easy installation - simply plug the device into the mains socket.
- Works as a Z-Wave signal repeater.
- Active power and energy consumption metering for plugged device.
- Current value of the load and operating mode are indicated by the multi-color LED frame.
</MetaDataItem>
    <MetaDataItem id="2000" name="Identifier" type="1701">FGWPB-111</MetaDataItem>
    <MetaDataItem name="InclusionDescription">To add the device to the Z-Wave network:
1.	Plug the device into a socket nearby the main Z-Wave controller.
2.	The LED frame will glow red signaling not being added (reset or remove the device otherwise).
3.	Set the main controller in (security/non-security) add mode.
4.	Quickly, triple click the button located on the casing.
5.	If you are adding in S2 authenticated mode, type in the device pin code (underlined part of the public key available on the device or in the manual).
6.	Wait for the adding process to end.
7.	Successful adding will be confirmed by the Z-Wave controller’s message.
</MetaDataItem>
    <MetaDataItem id="2000" name="FrequencyName" type="1701">U.S. / Canada / Mexico</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="02 Jun 2019" revision="3">Initial Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/2854/xml</Entry>
      <Entry author="Justin Hammond - Justin@dynam.ac" date="02 Jun 2019" revision="4">Updated Metadata Import from Z-Wave Alliance Database - https://products.z-wavealliance.org/products/2899/xml</Entry>
    </ChangeLog>
    <MetaDataItem id="1000" name="ZWProductPage" type="1801">https://products.z-wavealliance.org/products/2899/</MetaDataItem>
    <MetaDataItem id="1000" name="Identifier" type="1801">FGWPG-111</MetaDataItem>
    <MetaDataItem id="1000" name="FrequencyName" type="1801">CEPT (Europe)</MetaDataItem>
  </MetaData>
  <!--
    Fibaro FGWPG111 Wall Plug
    https://products.z-wavealliance.org/products/2899
    https://products.z-wavealliance.org/products/2854
    -->

    <!-- COMMAND_CLASS_BASIC supported -->
  <CommandClass action="add" id="32">
    <Compatibility/>
  </CommandClass>
  <!-- Configuration -->
  <CommandClass id="112">
    <Value genre="config" index="2" instance="1" label="Remember device status after a power failure" size="1" type="list" value="1">
      <Help>This parameter determines how the Wall Plug will react in the event of power supply failure (e.g. taking out from the electrical outlet).
                After the power supply is back on, the Wall Plug can be restored to previous state or remain switched off.
                This parameter is ignored in Always On mode - the device automatically turns ON after plugging it into the socket.
                Default setting: 1
            </Help>
      <Item label="Device remains switched off" value="0"/>
      <Item label="Device restores the state from before the power failure" value="1"/>
    </Value>
    <Value genre="config" index="3" instance="1" label="Overload safety switch" max="30000" min="0" size="2" type="short" value="0">
      <Help>This function allows to turning off the controlled device in case of exceeding the defined power.
                Controlled device can be turned back on via button or sending a control frame.
                Available settings: 10 - 30000 (1,0W - 3000,0W step 0,1W).
                Default setting: 0 (function inactive)
            </Help>
    </Value>
    <Value genre="config" index="11" instance="1" label="Power reporting" max="100" min="0" size="1" type="byte" value="15">
      <Help>This parameter determines the minimum percentage change inactive power consumption (in relation to the previously reported) that will result in sending new power report.
                Available settings: 1-100. 0 - power reports inactive.
                Default Setting: 15 (%)
            </Help>
    </Value>
    <Value genre="config" index="12" instance="1" label="Energy reporting threshold" max="500" min="0" size="2" type="short" value="10">
      <Help>This parameter determines the minimum change in energy consumption (in relation to the previously reported), that will result in sending a new report.
                Available settings: 1-500 (0,01kWh - 5kWh). 0 - energy reports inactive.
                Default Setting: 10 (0,1 kWh)
            </Help>
    </Value>
    <Value genre="config" index="13" instance="1" label="Periodic power reporting" max="32400" min="0" size="2" type="short" value="3600">
      <Help>This parameter defines time period between reports sent when changes in power load have not been record if changes are smaller than defined in parameter 11.
                By default reports are sent every hour.
                Available settings: 0 - 32400 (s). 0 - periodic reports inactive.
                Default setting: 3600
            </Help>
    </Value>
    <Value genre="config" index="14" instance="1" label="Periodic energy reporting" max="32400" min="0" size="2" type="short" value="3600">
      <Help>This parameter defines time period between reports sent when changes in power load have not been recorded or if changes are smaller than in paramater 11.
                By default reports are sent every hour.
                Available settings: 0 - 32400 (s). 0 - periodic reports inactive.
                Default setting: 3600
            </Help>
    </Value>
    <Value genre="config" index="15" instance="1" label="Measuring energy consumed by the Wall Plug itself" size="1" type="list" value="0">
      <Help>This parameter determines whether power metering should include the amount of power consumed by the Wall Plug itself.
                Results are being added to the value of power consumed by controlled device.
                Default setting: 0 Inactive
            </Help>
      <Item label="Inactive" value="0"/>
      <Item label="Active" value="1"/>
    </Value>
    <Value genre="config" index="21" instance="1" label="UP value association group 3" max="30000" min="100" size="2" type="short" value="500">
      <Help>Upper power threshold, used in parameter 23. Up value cannot be lower than a value specified in parameter 22.
                Available settings: 100 - 30000 (10,0W - 30000,0W).
                Default setting: 500 (50W)
            </Help>
    </Value>
    <Value genre="config" index="22" instance="1" label="DOWN value association group 3" max="29900" min="0" size="2" type="short" value="300">
      <Help>Lower power threshold, used in parameter 23.
                DOWN value cannot be higher than a value specified in parameter 21.
                Available settings: 0 - 29900 (0,0W - 2990,0W step 0,1W).
                Default setting: 300 (30W)
            </Help>
    </Value>
    <Value genre="config" index="23" instance="1" label="Controlling association group 3" size="1" type="list" value="3">
      <Help>This parameter defines the way that 3rd association group devices are controlled.
                Depends on the actual measured power(according to parameters 21 and 22 settings).
                Default setting: 3
            </Help>
      <Item label="Send frame (with value set in parameter 26) only if power exceeded value of parameter 21 turn the associated devices ON, once the power drops below DOWN value (parameter 21)" value="1"/>
      <Item label="Send frame (with value set in parameter 27) only if power dropped below value of paramater 22" value="2"/>
      <Item label="Send frame in both cases" value="3"/>
    </Value>
    <Value genre="config" index="24" instance="1" label="Switch ON value - association group 2" max="255" min="0" size="2" type="short" value="255">
      <Help>The value of BASIC SET command frame sent to the devices associated in 2nd group On/Off (Button) when turning the device ON using the button.
                Available settings: 0-99 or 255.
                Default setting: 255
            </Help>
    </Value>
    <Value genre="config" index="25" instance="1" label="Switch OFF value - association group 2" max="255" min="0" size="2" type="short" value="255">
      <Help>The value of BASIC SET command frame sent to the devices associated in 2nd group On/Off (Button) when turning the device OFF using the button.
                Available settings: 0-99 or 255.
                Default setting: 0
            </Help>
    </Value>
    <Value genre="config" index="26" instance="1" label="THRESHOLD UP value - association group 3" max="255" min="0" size="2" type="short" value="255">
      <Help>The value of BASIC SET command frame sent to the devices associated in 3rd group On/Off (Power) if power exceeded value of parameter 21.
                Available settings: 0-99 or 255.
                Default setting: 255
            </Help>
    </Value>
    <Value genre="config" index="27" instance="1" label="THRESHOLD DOWN value - association group 3" max="255" min="0" size="2" type="short" value="255">
      <Help>The value of BASIC SET command frame sent to the devices associated in 3rd group On/Off (Power) if power dropped below value of parameter 22.
                Available settings: 0-99 or 255.
                Default setting: 0
            </Help>
    </Value>
    <Value genre="config" index="30" instance="1" label="Active Alarms" max="63" min="1" size="1" type="list" value="63">
      <Help>Define Z-Wave network alarms to which the Wall Plug will respond.</Help>
      <Item label="General alarm" value="1"/>
      <Item label="Smoke alarm" value="2"/>
      <Item label="CO alarm" value="4"/>
      <Item label="CO2 alarm" value="8"/>
      <Item label="High temperature alarm" value="16"/>
      <Item label="Flood alarm" value="32"/>
      <Item label="All alarms" value="63"/>
    </Value>
    <Value genre="config" index="31" instance="1" label="Response to alarm frames" max="50" min="0" size="1" type="byte" value="0">
      <Help>This parameter defines how the Wall Plug will respond to alarms (device's status change).
                In case of values 1 or 2 the Wall Plug is operating normally and LED frame signals an alarm through time defined in parameter 32 or until the alarm is cancelled.
                In case of values 5 to 50 the Wall Plug does not report status change, power changes, ignores BASIC SET command frames.
                After time defined in parameter 32 or after the alarm cancellation, connected device is set to the previous state.
                0 - no reaction 1-turn connected device on 2-turn connected device off 5-50(0,5-50,0s step 0,1s)-cyclically change device state with set period.
                Default setting:0-no reaction
            </Help>
    </Value>
    <Value genre="config" index="32" instance="1" label="Alarm state duration" max="32400" min="1" size="2" type="short" value="600">
      <Help>This parameter specifies the duration of alarm state.
                If a device sending an alarm frame through the Z-Wave network sets alarm duration as well, this settings are ignored.
                Available settings 1-32400(s)
                Default setting: 600
            </Help>
    </Value>
    <Value genre="config" index="40" instance="1" label="Power load for violet colour" max="30000" min="1000" size="2" type="short" value="30000">
      <Help>This parameter determines maximum active power value, which when exceeded, causes the LED frame to flash violet. Function is active only when parameter 41 is set to 1 or 2.
                Available settings: 1000 - 30000 (100,0W - 3000,0W, step 0,1W).
                Default setting: 30000 (3000W)
            </Help>
    </Value>
    <Value genre="config" index="41" instance="1" label="LED frame colour when controlled device is on" size="1" type="list" value="1">
      <Help>When set to 1 or 2, LED frame colour will change depending on active power and parameter 40.
                Other colours are set permanently and do not depend on power consumption
            </Help>
      <Item label="Illumination turned off completely" value="0"/>
      <Item label="Colour changes smoothly depending on active power" value="1"/>
      <Item label="Colour changes in steps depending on active power" value="2"/>
      <Item label="White illumination" value="3"/>
      <Item label="Red illumination" value="4"/>
      <Item label="Green illumination" value="5"/>
      <Item label="Blue illumination" value="6"/>
      <Item label="Yellow illumination" value="7"/>
      <Item label="Cyan illumination" value="8"/>
      <Item label="Magenta illumination" value="9"/>
    </Value>
    <Value genre="config" index="42" instance="1" label="LED frame colour when controlled device is off" size="1" type="list" value="0">
      <Help>This parameter defines the illumination colour after turning off.</Help>
      <Item label="illumination turned off completely" value="0"/>
      <Item label="LED frame is illuminated with a colour corresponding to the last measured power, before the controlled device was turned off" value="1"/>
      <Item label="White illumination" value="3"/>
      <Item label="Red illumination" value="4"/>
      <Item label="Green illumination" value="5"/>
      <Item label="Blue illumination" value="6"/>
      <Item label="Yellow illumination" value="7"/>
      <Item label="Cyan illumination" value="8"/>
      <Item label="Magenta illumination" value="9"/>
    </Value>
    <Value genre="config" index="43" instance="1" label="LED frame colour at the Z-Wave network alarm detection" size="1" type="list" value="2">
      <Help>This parameter defines the illumination colour in case of Z-Wave alarm.</Help>
      <Item label="Illumination turned off completely" value="0"/>
      <Item label="No change in colour. LED frame colour is determined by settings of parameters 41 or 42" value="1"/>
      <Item label="LED frame flashes red / blue / white" value="2"/>
      <Item label="White illumination" value="3"/>
      <Item label="Red illumination" value="4"/>
      <Item label="Green illumination" value="5"/>
      <Item label="Blue illumination" value="6"/>
      <Item label="Yellow illumination" value="7"/>
      <Item label="Cyan illumination" value="8"/>
      <Item label="Magenta illumination" value="9"/>
    </Value>
  </CommandClass>
  <!-- Association Groups -->
  <CommandClass id="133">
    <Associations num_groups="3">
      <Group index="1" label="Lifeline" max_associations="1"/>
      <Group index="2" label="BasicSet forward relay status on local Button event" max_associations="5"/>
      <Group index="3" label="BasicSet base on Plug power" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
